-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
36 lines (28 loc) · 1.15 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
cmake_minimum_required(VERSION 2.6)
project(jackmix)
add_subdirectory(locals)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -DDIAMOND")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
find_package(Jack REQUIRED)
find_package(Threads REQUIRED)
find_package(Curses REQUIRED)
include_directories(${JACK_INCLUDE_DIR} ${CURSES_INCLUDE_DIR}
${CMAKE_BINARY_DIR} .)
add_definitions(${JACK_DEFINITIONS} -Wall)
set(SOURCES main.cpp tokeniser.cpp tokens.cpp ctrl.cpp value.cpp
parser.cpp save.cpp process.cpp lineedit.cpp stringlist.cpp
channel.cpp diamond.cpp fx.cpp plugins.cpp monitor.cpp screen.cpp
screenmain.cpp screenchan.cpp screenchain.cpp screenhelp.cpp
screenctrl.cpp midi.cpp
)
add_custom_command(
OUTPUT tokens.cpp tokens.h
DEPENDS tokens
COMMAND python ${CMAKE_SOURCE_DIR}/gentoks ${CMAKE_SOURCE_DIR}/tokens tokens)
add_executable(jackmix ${SOURCES})
target_link_libraries(jackmix ${JACK_LIBRARIES} ${CURSES_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
locals
-lm -ldiamondapparatus -lpthread dl)
target_compile_options(jackmix PUBLIC "-pthread")