]> Creatis software - crea.git/blob - cmake/CMakeLists.txt
96da5443e9b6dfd4ee6e607354b940de3158306a
[crea.git] / cmake / CMakeLists.txt
1 # HERE!!
2
3 FILE(GLOB CREA_CMAKE_FILES "*.cmake" "*.in")
4 #MESSAGE(STATUS "cmake files = ${CREA_CMAKE_FILES}")
5
6 FOREACH(file ${CREA_CMAKE_FILES})
7   GET_FILENAME_COMPONENT(filename "${file}" NAME) 
8   CONFIGURE_FILE(
9     ${file}
10     ${CMAKE_CURRENT_BINARY_DIR}/${filename}
11     COPYONLY
12     )
13 ENDFOREACH(file ${CREA_CMAKE_FILES})
14
15 IF(UNIX)
16   SET(PREFIX ${CREA_LIB_PATH}/crea/)
17 ENDIF(UNIX)
18
19 INSTALL(
20   FILES ${CREA_CMAKE_FILES}
21   DESTINATION ${PREFIX}${CREA_CMAKE_REL_PATH}
22   )