]> Creatis software - bbtk.git/blobdiff - kernel/cmake/BBTKKernelConfig.cmake
*** empty log message ***
[bbtk.git] / kernel / cmake / BBTKKernelConfig.cmake
index 4645ed286033817ca38a2b2afea6f6c5bf10eba2..ee211a3986f8edb5d90528dfedde94b5b738b105 100644 (file)
@@ -6,6 +6,7 @@ INCLUDE_DIRECTORIES( ${PROJECT_BINARY_DIR}/kernel/src )
 # SOURCES DIR MUST ALSO BE IN INCLUDE DIRS FOR FILES COMPILED IN BINARY DIR 
 # WHICH NEED TO INCLUDE OTHER FILES OF THE PACKAGE
 INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/kernel/src )
+INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/kernel/src/ThirdParty )
 #----------------------------------------------------------------------------
 
 #----------------------------------------------------------------------------
@@ -29,6 +30,15 @@ SET (LIBRARY_OUTPUT_PATH
   ${PROJECT_BINARY_DIR}/${LIBRARY_OUTPUT_REL_PATH})
 #-----------------------------------------------------------------------------
 
+
+#-----------------------------------------------------------------------------
+IF(WIN32)
+ELSE(WIN32)
+  SET(LD_LIBRARY_PATH "$ENV{LD_LIBRARY_PATH}:${LIBRARY_OUTPUT_PATH}")
+ENDIF(WIN32)
+#-----------------------------------------------------------------------------
+
+
 #-----------------------------------------------------------------------------
 # The var BBTK_BIN_PATH
 # gives the system-dependent path to output binaries
@@ -60,6 +70,10 @@ ENDIF(WIN32)
 
 #-----------------------------------------------------------------------------
 
+#-----------------------------------------------------------------------------
+SET(BBTK_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
+#-----------------------------------------------------------------------------
+
 #-----------------------------------------------------------------------------
 # The vars BBTK_DOC_REL_PATH and BBTK_BBS_REL_PATH
 # store documentation and scripts **RELATIVE** paths