]> Creatis software - crea.git/blob - cmake/CREAMacro_AddExecutable.cmake
*** empty log message ***
[crea.git] / cmake / CREAMacro_AddExecutable.cmake
1 MACRO(CREA_ADD_EXECUTABLE EXE_NAME)
2
3   IF(CREA_VERBOSE_CMAKE)
4     MESSAGE(STATUS "===============================================")
5     MESSAGE(STATUS "Configuring executable ${EXE_NAME}")
6     MESSAGE(STATUS "   Sources  : ${${EXE_NAME}_SOURCES}")
7     MESSAGE(STATUS "   Link libs: ${${EXE_NAME}_LINK_LIBRARIES}")
8     MESSAGE(STATUS "===============================================")
9   ENDIF(CREA_VERBOSE_CMAKE)
10
11   IF(WIN32)
12     ADD_EXECUTABLE(${EXE_NAME} WIN32 ${${EXE_NAME}_SOURCES})  
13   ELSE(WIN32)
14     ADD_EXECUTABLE(${EXE_NAME} ${${EXE_NAME}_SOURCES})
15   ENDIF(WIN32)
16   
17   TARGET_LINK_LIBRARIES(${EXE_NAME} ${${EXE_NAME}_LINK_LIBRARIES})
18
19   INSTALL_TARGETS(/bin/ ${EXE_NAME})
20
21 ENDMACRO(CREA_ADD_EXECUTABLE)
22
23