-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
56 lines (46 loc) · 1.32 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
cmake_minimum_required(VERSION 3.17)
project(transmitron)
set(PROGRAM_DESCRIPTION "Transmitron MQTT desktop client")
set(TRANSMITRON_VERSION_MAJOR 1)
set(TRANSMITRON_VERSION_MINOR 0)
set(TRANSMITRON_VERSION_PATCH 1)
set(TRANSMITRON_VERSION_POSTFIX "")
string(CONCAT TRANSMITRON_VERSION
${TRANSMITRON_VERSION_MAJOR}
"."
${TRANSMITRON_VERSION_MINOR}
"."
${TRANSMITRON_VERSION_PATCH}
${TRANSMITRON_VERSION_POSTFIX}
)
set(PROJECT_VERSION ${TRANSMITRON_VERSION})
set(TRANSMITRON_NAME "Transmitron")
set(TRANSMITRON_BIN_NAME "transmitron")
if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64")
set(TRANSMITRON_ARCH "amd64")
elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86")
set(TRANSMITRON_ARCH "i686")
else()
set(TRANSMITRON_ARCH ${CMAKE_SYSTEM_PROCESSOR})
endif()
find_package(Threads REQUIRED)
find_package(nlohmann_json REQUIRED)
find_package(PahoMqttCpp REQUIRED)
find_package(tinyxml2 REQUIRED)
find_package(fmt REQUIRED)
find_package(CLI11 REQUIRED)
find_package(spdlog REQUIRED)
find_package(date REQUIRED)
find_package(wxWidgets REQUIRED
COMPONENTS
aui
core
propgrid
richtext
stc
)
include(${CMAKE_SOURCE_DIR}/cmake/clang-tidy.cmake)
include(${CMAKE_SOURCE_DIR}/cmake/git-version.cmake)
add_subdirectory(src)
include(${CMAKE_SOURCE_DIR}/cmake/install.cmake)
include(${CMAKE_SOURCE_DIR}/cmake/cpack.cmake)