-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
51 lines (41 loc) · 1.18 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
cmake_minimum_required(VERSION 2.8.12)
set (CMAKE_CXX_STANDARD 17)
project(Push2Control LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
#sudo apt-get install qtbase5-dev
#sudo apt install qtdeclarative5-dev
#sudo apt install qml-module-qtquick
#sudo apt install libasound2-dev
#sudo apt install libgtest-dev
#sudo apt install libusb-1.0-0-dev
find_package(Qt5 COMPONENTS Core Quick REQUIRED)
#find_package(TimeMeasure CONFIG REQUIRED)
add_subdirectory(3rdparty)
include_directories(3rdparty)
add_subdirectory(FrontPanelIO)
add_subdirectory(QuickViewOnFp)
add_subdirectory(Midi)
add_subdirectory(Util)
add_subdirectory(Push2Device)
add_subdirectory(Base)
add_subdirectory(Push2UI)
add_executable(${PROJECT_NAME}
"main.cpp"
"Resources/resources.qrc"
)
target_link_libraries(${PROJECT_NAME}
Loguru
Base
QuickViewOnFp
Push2UI
usbmidi
QtUnixSignals
)
option(__SIMULATION__MODE__ "use in simulation mode" OFF)
if(${__SIMULATION__MODE__})
target_compile_definitions(${PROJECT_NAME} PRIVATE "__SIMULATION__MODE__")
add_subdirectory(FrontPanelSimulation)
endif(${__SIMULATION__MODE__})
#install(TARGETS ${PROJECT_NAME} DESTINATION "")