1. a4z
  2. sbbdep_slk

Source

sbbdep_slk / CMakeLists.txt

cmake_minimum_required(VERSION 2.8)

project(sbbdep_slk )

#set(CMAKE_VERBOSE_MAKEFILE "ON")

if(NOT CMAKE_BUILD_TYPE)

  SET(CMAKE_BUILD_TYPE Release CACHE STRING
      "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
      FORCE )
endif(NOT CMAKE_BUILD_TYPE)


if( ${CMAKE_PROJECT_NAME} STREQUAL ${PROJECT_NAME})
    set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin )
    set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib )
    set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib )
endif( ${CMAKE_PROJECT_NAME} STREQUAL ${PROJECT_NAME})


set( a4sqlt3_INCLUDE_DIR "a4sqlt3/include"  )
set( a4sqlt3_LIBRARY_DIR ${CMAKE_BINARY_DIR}/lib  )
set( a4sqlt3_library a4sqlt3 )

link_directories( ${CMAKE_BINARY_DIR}/lib )

set(SQLITE_TEMP_STORE 2)
set(SQLITE_THREADSAFE 0)

if(NOT DEFINED ALL_A4_TESTING_DISABLED)
  set( ALL_A4_TESTING_DISABLED ON ) 
endif(NOT DEFINED ALL_A4_TESTING_DISABLED)


include_directories(BEFORE ${a4z_INCLUDE_DIR})
include_directories(BEFORE ${a4sqlt3_INCLUDE_DIR})

add_subdirectory(a4sqlt3)
add_subdirectory(sbbdep)

if(NOT CMAKE_DOC_DIR)

  SET(CMAKE_DOC_DIR "doc/sbbdep" CACHE STRING
      "Choose the target directory where documentation files will be installed."
      FORCE )
endif(NOT CMAKE_DOC_DIR)

#CMAKE_DATA_DIR="TODO"
#CMAKE_DOC_DIR="TODO"
#CMAKE_MAN_DIR="TODO"

set(SBBDEP_DOC_FILES 
sbbdep/README.txt sbbdep/README_db.txt sbbdep/AUTHORS sbbdep/COPYING
samples.sql 
)


INSTALL(FILES ${SBBDEP_DOC_FILES} DESTINATION  ${CMAKE_DOC_DIR})
INSTALL(PROGRAMS ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/sbbdep DESTINATION bin)