]> Creatis software - creaContours.git/commitdiff
SQLite (.h) bug
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Wed, 5 Jun 2013 23:57:00 +0000 (01:57 +0200)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Wed, 5 Jun 2013 23:57:00 +0000 (01:57 +0200)
CMakeLists.txt

index dddf791c9e5e908d6652963a90ff1ff17824bdc7..c94e8fd941066e729048400c93b67a388b268b57 100644 (file)
@@ -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