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 ()