comparison CmakeLists.txt @ 5:115cfa4a3239 default tip

Added icon upload function for OSTC 4/5 For the upload the same process as the one for the firmware update is used => CRC functionality has been copied from the ostc_pack SW
author Ideenmodellierer
date Tue, 30 Dec 2025 21:41:02 +0100
parents e30f00f760d3
children
comparison
equal deleted inserted replaced
4:e30f00f760d3 5:115cfa4a3239
1 cmake_minimum_required(VERSION 3.21) 1 cmake_minimum_required(VERSION 3.21)
2 2
3 project(OSTCCompanion VERSION 1.0 LANGUAGES CXX) 3 project(OSTCCompanion VERSION 1.0 LANGUAGES CXX C)
4
5 project(OSTCCompanion LANGUAGES CXX)
6 4
7 # ---------------------------------------- 5 # ----------------------------------------
8 # C++ Standard 6 # C++ Standard
9 # ---------------------------------------- 7 # ----------------------------------------
10 set(CMAKE_CXX_STANDARD 17) 8 set(CMAKE_CXX_STANDARD 17)
77 OSTC3Operations.h 75 OSTC3Operations.h
78 OSTC3pOperations.h 76 OSTC3pOperations.h
79 OSTC4Operations.h 77 OSTC4Operations.h
80 OSTC_CR_Operations.h 78 OSTC_CR_Operations.h
81 editlogdialog.h 79 editlogdialog.h
80 crcmodel.h
82 ) 81 )
83 82
84 set(UIS 83 set(UIS
85 LogEditor.ui 84 LogEditor.ui
86 MainWindow.ui 85 MainWindow.ui
100 Translations/companion_RU.ts 99 Translations/companion_RU.ts
101 ) 100 )
102 101
103 set(app_icon_resource_windows "${CMAKE_CURRENT_SOURCE_DIR}/icon.rc") 102 set(app_icon_resource_windows "${CMAKE_CURRENT_SOURCE_DIR}/icon.rc")
104 103
104
105 add_library(crcmodel STATIC
106 crcmodel.c
107 )
108 set_source_files_properties(crcmodel.c
109 PROPERTIES
110 LANGUAGE C
111 )
112 target_include_directories(crcmodel PUBLIC
113 ${CMAKE_CURRENT_SOURCE_DIR}
114 )
105 # ---------------------------------------- 115 # ----------------------------------------
106 # Executable erstellen 116 # Executable erstellen
107 # ---------------------------------------- 117 # ----------------------------------------
108 qt_add_executable(${PROJECT_NAME} 118 qt_add_executable(${PROJECT_NAME}
109 ${SOURCES} 119 ${SOURCES}
110 ${HEADERS} 120 ${HEADERS}
111 ${UIS} 121 ${UIS}
112 ${RESOURCES} 122 ${RESOURCES}
113 Utils/Export.h 123 Utils/Export.h
114 ${app_icon_resource_windows} 124 ${app_icon_resource_windows}
125 ostc45_icon.cpp
126 ostc45_icon.h
127 crc_wrapper.h
128 crc_wrapper.cpp
115 ) 129 )
116 130
117 target_include_directories(${PROJECT_NAME} PRIVATE 131 target_include_directories(${PROJECT_NAME} PRIVATE
118 ${CMAKE_CURRENT_SOURCE_DIR} # Root 132 ${CMAKE_CURRENT_SOURCE_DIR} # Root
119 ${CMAKE_CURRENT_SOURCE_DIR}/Utils 133 ${CMAKE_CURRENT_SOURCE_DIR}/Utils
122 136
123 # ---------------------------------------- 137 # ----------------------------------------
124 # Qt Libraries verlinken 138 # Qt Libraries verlinken
125 # ---------------------------------------- 139 # ----------------------------------------
126 target_link_libraries(${PROJECT_NAME} 140 target_link_libraries(${PROJECT_NAME}
127 PRIVATE Qt6::Core Qt6::Gui Qt6::Widgets Qt6::Network Qt6::Svg Qt6::Xml Qt6::SerialPort 141 PRIVATE Qt6::Core Qt6::Gui Qt6::Widgets Qt6::Network Qt6::Svg Qt6::Xml Qt6::SerialPort crcmodel
128 ) 142 )
129 143
130 # ---------------------------------------- 144 # ----------------------------------------
131 # Plattform-spezifische Anpassungen 145 # Plattform-spezifische Anpassungen
132 # ---------------------------------------- 146 # ----------------------------------------