1: # CMake Grundsätzliches -------------------------------------------
2: CMAKE_MINIMUM_REQUIRED(VERSION 3.0.0)
3: IF (POLICY CMP0048)
4: CMAKE_POLICY(SET CMP0048 NEW) # Wg. VERSION im project Befehl
5: ENDIF (POLICY CMP0048)
6:
7: # Start d. Projekts -----------------------------------------------
8: PROJECT(Simple VERSION 1.2.3)
9:
10: ADD_EXECUTABLE(tm tm.c)
11:
12: INSTALL(TARGETS tm DESTINATION bin)
13: INSTALL(FILES tm.c DESTINATION src)
14:
15: # Standard --------------------------------------------------------
16: # GUID mit MSVC erstellen
17: SET(CPACK_WIX_UPGRADE_GUID "E7511A05-2B91-47C6-973A-23E7827CBEB7")
18: # Sprache
19: SET(CPACK_WIX_CULTURES "de-DE")
20: # WIX Generator
21: SET(CPACK_GENERATOR WIX)
22: # Standard Ende ---------------------------------------------------
23:
24: INCLUDE(CPack)
Die folgenden Skrikt-Zeilen betreffen ausschließlich den WIX-Generator.