+CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
+#MARK_AS_ADVANCED( FORCE CMAKE_BACKWARDS_COMPATIBILITY )
+
+# for CMake 2.6 corrected behaviour (see "cmake --help-policy CMP0003")
+IF(COMMAND cmake_policy AND ${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4)
+ CMAKE_POLICY(SET CMP0003 NEW)
+ CMAKE_POLICY(SET CMP0005 NEW)
+ENDIF(COMMAND cmake_policy AND ${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4)
+
+
+
PROJECT(crea)
INCLUDE(Version.cmake)
${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(UNIX)
SET(${LIBRARY_NAME1}_BUILD_TREE_RELATIVE_LIBRARY_PATHS
- ${EXECUTABLE_OUTPUT_REL_PATH})
+ ${CILFC_EXECUTABLE_OUTPUT_REL_PATH})
SET(${LIBRARY_NAME1}_INSTALL_TREE_RELATIVE_LIBRARY_PATHS lib)
ELSE(UNIX)
SET(${LIBRARY_NAME1}_BUILD_TREE_RELATIVE_LIBRARY_PATHS
- ${EXECUTABLE_OUTPUT_REL_PATH}/Debug
- ${EXECUTABLE_OUTPUT_REL_PATH}/Release)
+ ${CILFC_EXECUTABLE_OUTPUT_REL_PATH}/Debug
+ ${CILFC_EXECUTABLE_OUTPUT_REL_PATH}/Release)
SET(${LIBRARY_NAME1}_INSTALL_TREE_RELATIVE_LIBRARY_PATHS bin)
ENDIF(UNIX)
SET(${LIBRARY_NAME1}_INSTALL_TREE_RELATIVE_INCLUDE_PATHS include/${LIBRARY_NAME1})
IF(UNIX)
SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_LIBRARY_PATHS
- ${EXECUTABLE_OUTPUT_REL_PATH})
+ .) # ${EXECUTABLE_OUTPUT_REL_PATH})
ELSE(UNIX)
SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_LIBRARY_PATHS
- ${EXECUTABLE_OUTPUT_REL_PATH}/Debug
- ${EXECUTABLE_OUTPUT_REL_PATH}/Release)
+ Debug #${EXECUTABLE_OUTPUT_REL_PATH}/Debug
+ Release) #${EXECUTABLE_OUTPUT_REL_PATH}/Release)
ENDIF(UNIX)
SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_INCLUDE_PATHS include/crea)