1: CMAKE_MINIMUM_REQUIRED(VERSION 3.0.0)
2: IF (POLICY CMP0048)
3: CMAKE_POLICY(SET CMP0048 NEW) # Wg. VERSION im project Befehl
4: ENDIF (POLICY CMP0048)
5:
6: PROJECT(Package_Executables VERSION 1.2.3)
7:
8: ADD_EXECUTABLE(tm1 tm.c)
9: INSTALL(TARGETS tm1 DESTINATION bin)
10: ADD_EXECUTABLE(tm2 tm.c)
11: INSTALL(TARGETS tm2 DESTINATION bin)
12: ADD_EXECUTABLE(tm3 tm.c)
13: INSTALL(TARGETS tm3 DESTINATION bin)
14:
15: INSTALL(FILES tm.c DESTINATION src)
16:
17: # Standard ---------------------------------------------------
18: SET(CPACK_WIX_UPGRADE_GUID "9A1FC03D-CE2B-4929-A17B-ED4EC3E82D6B")
19: SET(CPACK_WIX_CULTURES "de-DE")
20: SET(CPACK_GENERATOR WIX)
21: # Standard Ende ---------------------------------------------------
22:
23: SET(CPACK_PACKAGE_EXECUTABLES tm1 "Prog Tm1" tm2 "Prog2" tm3 "Prog3")
24:
25: INCLUDE(CPack)