linked SQLiteCpp to sqlite3

Now there is no need to link each target ot both libs
This commit is contained in:
Yan Pashkovsky 2016-12-28 19:40:33 +03:00 committed by GitHub
parent cb44cca41c
commit 870bb9963f

View File

@ -161,6 +161,7 @@ include_directories("${PROJECT_SOURCE_DIR}/include")
# add sources of the wrapper as a "SQLiteCpp" static library
add_library(SQLiteCpp ${SQLITECPP_SRC} ${SQLITECPP_INC} ${SQLITECPP_DOC} ${SQLITECPP_SCRIPT})
target_link_libraries(SQLiteCpp sqlite3)
target_include_directories(SQLiteCpp PUBLIC "${PROJECT_SOURCE_DIR}/include")
if (UNIX AND (CMAKE_COMPILER_IS_GNUCXX OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang"))