-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
66 lines (55 loc) · 2.04 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
57
58
59
60
61
62
63
64
65
66
cmake_minimum_required(VERSION 3.1)
project(timer VERSION 0.7)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
find_package(Qt5 COMPONENTS Core Network Widgets REQUIRED)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
set(GUI_CLOCK_WIDGET gui/clock_widget.cpp gui/clock_widget.hpp)
set(GUI_CUSTOM gui/custom.hpp)
set(GUI_EVENT_WIDGET gui/event_widget.cpp gui/event_widget.hpp gui/event_widget.ui)
set(GUI_LABEL gui/label.cpp gui/label.hpp)
set(GUI_MAIN_WINDOW gui/main_window.cpp gui/main_window.hpp gui/main_window.ui)
set(GUI_TIME_WIDGET gui/time_widget.cpp gui/time_widget.hpp gui/time_widget.ui)
set(GUI_VIDEO_WIDGET gui/video_widget.cpp gui/video_widget.hpp gui/video_widget.ui)
set(MAIN src/main.cpp)
set(OSC_SERVER osc/server.cpp osc/server.hpp)
set(RESOURCES res/resources.qrc)
set(SRC_CLOCK src/clock.cpp src/clock.hpp)
set(SRC_RANGE src/range.hpp)
set(SRC_TIME src/time.hpp)
########################
# executable
add_executable(${PROJECT_NAME}
${GUI_CLOCK_WIDGET}
${GUI_CUSTOM}
${GUI_EVENT_WIDGET}
${GUI_LABEL}
${GUI_MAIN_WINDOW}
${GUI_TIME_WIDGET}
${GUI_VIDEO_WIDGET}
${MAIN}
${OSC_SERVER}
${RESOURCES}
${SRC_CLOCK}
${SRC_RANGE}
${SRC_TIME}
)
target_link_libraries(${PROJECT_NAME} Qt5::Core Qt5::Network Qt5::Widgets osc++)
########################
include(GNUInstallDirs)
install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR})
install(FILES LICENSE.md README.md DESTINATION ${CMAKE_INSTALL_DOCDIR})
########################
set(CPACK_STRIP_FILES ON)
set(CPACK_GENERATOR DEB)
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Timer application for CasparCG")
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Dimitry Ishenko <dimitry (dot) ishenko (at) (gee) mail (dot) com>")
set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT)
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libosc++ (>=0.8)")
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
include(CPack)