-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCMakeLists.txt
72 lines (56 loc) · 1.79 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
67
68
69
70
71
72
cmake_minimum_required(VERSION 2.8.9)
project(QuickCollider)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
if(CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
endif()
#set(CMAKE_INCLUDE_CURRENT_DIR ON)
#set(CMAKE_AUTOMOC ON)
find_package(Qt5Quick REQUIRED)
find_package(Dependencies REQUIRED)
if(NOT SC_SOURCE_DIR)
message( FATAL_ERROR
"SuperCollider source directory has not been provided.\n"
"Please set the SC_SOURCE_DIR variable!" )
endif()
# For moc to work properly:
include_directories( ${Qt5Qml_INCLUDE_DIRS} )
include_directories( ${SC_SOURCE_DIR} )
include_directories( "${SC_SOURCE_DIR}/external_libraries/boost" )
include_directories( "${SC_SOURCE_DIR}/external_libraries/TLSF-2.4.6/src" )
include_directories( ${LO_INCLUDE_DIR} )
include_directories( ${SNDFILE_INCLUDE_DIR} )
set( moc_hdr
osc/osc_server.hpp
osc/osc_client.hpp
osc/osc_dispatcher.hpp
osc/qml_osc_interface.hpp
gui/model/slider_model.hpp
gui/model/multi_slider_model.hpp
gui/model/graph_model.hpp
gui/widgets/graph_plotter.hpp
gui/widgets/oscilloscope.hpp
gui/widgets/sf_view.hpp
gui/utility/array_layout.hpp
gui/utility/mapping.hpp
)
set( src
app/main.cpp
osc/osc_server.cpp
osc/osc_client.cpp
osc/osc_dispatcher.cpp
osc/qml_osc_interface.cpp
gui/model/graph_model.cpp
gui/widgets/graph_plotter.cpp
gui/widgets/oscilloscope.cpp
gui/widgets/sf_view.cpp
gui/widgets/sf_cache_stream.cpp
gui/widgets/sf_file_stream.cpp
)
qt5_wrap_cpp( moc_src ${moc_hdr} )
add_executable(quickcollider ${src} ${moc_src})
qt5_use_modules(quickcollider Quick)
target_link_libraries(quickcollider ${LO_LIBRARY} ${SNDFILE_LIBRARY})
if(UNIX)
target_link_libraries(quickcollider rt pthread)
endif()