mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-15 03:21:09 +01:00
0ac146cb9e
minimum required CMAKE version is 2.6 from now
40 lines
1.3 KiB
CMake
40 lines
1.3 KiB
CMake
set(LIBNAME "PocoSQLite")
|
|
set(LIBNAMED "${LIBNAME}d")
|
|
|
|
include_directories( include src )
|
|
|
|
set(SRCS "")
|
|
aux_source_directory(src SRCS)
|
|
|
|
add_definitions(-DSQLITE_THREADSAFE=1 -DSQLITE_-DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_COMPLETE -DSQLITE_OMIT_TCL_VARIABLE -DSQLITE_OMIT_DEPRECATED)
|
|
|
|
add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
|
|
set_target_properties( ${LIBNAME}
|
|
PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS}
|
|
VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}
|
|
SOVERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH})
|
|
target_link_libraries( ${LIBNAME} PocoData PocoFoundation)
|
|
|
|
add_library( ${LIBNAMED} ${LIB_MODE} ${SRCS} )
|
|
set_target_properties( ${LIBNAMED}
|
|
PROPERTIES COMPILE_FLAGS "${DEBUG_CXX_FLAGS}"
|
|
VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}
|
|
SOVERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH})
|
|
target_link_libraries( ${LIBNAMED} PocoDatad PocoFoundationd )
|
|
|
|
install(
|
|
DIRECTORY include/Poco
|
|
DESTINATION include
|
|
PATTERN ".svn" EXCLUDE
|
|
)
|
|
|
|
install(
|
|
TARGETS ${LIBNAME} ${LIBNAMED}
|
|
DESTINATION lib
|
|
)
|
|
|
|
if (ENABLE_TESTS)
|
|
add_subdirectory(testsuite)
|
|
endif ()
|
|
|