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(lizenz VERSION 1.2.3)
7:
8: ADD_EXECUTABLE(tm tm.c)
9: INSTALL(TARGETS tm DESTINATION bin)
10:
11: INSTALL(FILES tm.c DESTINATION src)
12:
13: # Standard --------------------------------------------------------
14: SET(CPACK_WIX_UPGRADE_GUID "E7511A05-2B91-47C6-973A-23E7827CBEB7")
15: SET(CPACK_WIX_CULTURES "de-DE")
16: SET(CPACK_GENERATOR WIX)
17: # Standard Ende ---------------------------------------------------
18:
19: set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/lizenz.txt")
20: INCLUDE(CPack)