-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
50 lines (40 loc) · 1.54 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
cmake_minimum_required(VERSION 3.20)
project(DeviceTester
VERSION 0.1.0
DESCRIPTION "device tester application"
HOMEPAGE_URL https://github.com/mathisloge/device-tester
LANGUAGES CXX)
set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
find_package(spdlog CONFIG REQUIRED)
find_package(imgui CONFIG REQUIRED)
find_package(Boost REQUIRED COMPONENTS graph)
find_package(DtDataFlow CONFIG REQUIRED)
find_package(DtDataflowEditor CONFIG REQUIRED)
add_library(imgui-club INTERFACE)
target_include_directories(imgui-club INTERFACE imgui_club/imgui_memory_editor)
add_library(imgui::club ALIAS imgui-club)
option(ENABLE_TESTS ON)
set(ENABLE_TESTS ON)
if(ENABLE_TESTS)
include(CTest)
endif()
if(BUILD_TESTING)
find_package(Catch2 REQUIRED)
endif()
set(BUILD_SHARED_LIBS ON)
add_subdirectory(app)
add_subdirectory(docs)
# Package Generator #######################################################
set(CPACK_PACKAGE_DESCRIPTION ${CMAKE_PROJECT_DESCRIPTION})
set(CPACK_PACKAGE_VERSION_MAJOR "${PROJECT_VERSION_MAJOR}")
set(CPACK_PACKAGE_VERSION_MINOR "${PROJECT_VERSION_MINOR}")
set(CPACK_PACKAGE_VERSION_PATCH "${PROJECT_VERSION_PATCH}")
set(CPACK_PACKAGE_VENDOR "mathisloge")
set(CPACK_PACKAGE_CONTACT "https://github.com/mathisloge")
set(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
if(WIN32)
set(CPACK_GENERATOR "WIX")
endif()
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Mathis Logemann")
include (CPack)
#todo: "docking-experimental"