From 3c5a59482c041204b6210a901c3c774de5270b42 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Thu, 6 Jun 2013 01:57:00 +0200 Subject: [PATCH] SQLite (.h) bug --- CMakeLists.txt | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dddf791..c94e8fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -102,9 +102,19 @@ MARK_AS_ADVANCED( LIBRARY_OUTPUT_PATH ) +#IF(WIN32) +# INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/win32) +# LINK_DIRECTORIES(${PROJECT_SOURCE_DIR}/win32) +#ENDIF(WIN32) + IF(WIN32) - INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/win32) - LINK_DIRECTORIES(${PROJECT_SOURCE_DIR}/win32) + set (SQLITE_DIR $ENV{SQLITE_DIR}) + IF(DEFINED SQLITE_DIR) + INCLUDE_DIRECTORIES(${SQLITE_DIR}/include) + LINK_DIRECTORIES(${SQLITE_DIR}/lib) + ELSE() + MESSAGE(FATAL_ERROR "System variable SQLITE_DIR not defined") + ENDIF() ENDIF(WIN32) @@ -117,4 +127,4 @@ ADD_SUBDIRECTORY(lib) ADD_SUBDIRECTORY(appli) ADD_SUBDIRECTORY(bbtk) ADD_SUBDIRECTORY(data) -ADD_SUBDIRECTORY(install) +ADD_SUBDIRECTORY(install) \ No newline at end of file -- 2.47.1