${LIBRARY_NAME1}_BUILD_TREE_RELATIVE_INCLUDE_PATHS
${PROJECT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
)
- FILE(RELATIVE_PATH
- CILFC_EXECUTABLE_OUTPUT_REL_PATH
- ${PROJECT_BINARY_DIR} ${EXECUTABLE_OUTPUT_PATH})
+ IF ( ${PROJECT_BINARY_DIR} STREQUAL ${EXECUTABLE_OUTPUT_PATH} )
+ SET(CILFC_EXECUTABLE_OUTPUT_REL_PATH ".")
+ ELSE ( ${PROJECT_BINARY_DIR} STREQUAL ${EXECUTABLE_OUTPUT_PATH} )
+
+ FILE(RELATIVE_PATH
+ CILFC_EXECUTABLE_OUTPUT_REL_PATH
+ ${PROJECT_BINARY_DIR} ${EXECUTABLE_OUTPUT_PATH})
+ ENDIF ( ${PROJECT_BINARY_DIR} STREQUAL ${EXECUTABLE_OUTPUT_PATH} )
+
IF(UNIX)
SET(${LIBRARY_NAME1}_BUILD_TREE_RELATIVE_LIBRARY_PATHS
#MESSAGE("${GTK2_INCLUDE_DIRS}")
# Can I require all my user to have the gl lib on linux, even if they do not really need it...
SET(WXGLCANVASLIBS "gl")
- # GTK2
- # INCLUDE(${CREA_CMAKE_DIR}/FindGTK2_new.cmake)
- # WX
- # LG : Do not force but use what is installed !
- # SET(wxWidgets_USE_LIBS base core gl)
- #FIND_PACKAGE( GTK REQUIRED)
-# FIND_PACKAGE( wxWidgets REQUIRED)
- FIND_PACKAGE(wxWidgets COMPONENTS base core adv ${WXGLCANVASLIBS})
+ # aui ?
+ SET(WXAUILIBS "aui")
+ # LG : These options should be set by the user at top level of crea
+ FIND_PACKAGE(wxWidgets COMPONENTS base core adv
+ ${WXAUILIBS}
+ ${WXGLCANVASLIBS})
#
IF(wxWidgets_FOUND)
MESSAGE(STATUS "Looking for wxWidgets... found ${wxWidgets_CONFIG_EXECUTABLE}")