-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
41 lines (32 loc) · 1.28 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
cmake_minimum_required(VERSION 2.8)
project(oscprompt)
find_package(PkgConfig REQUIRED)
pkg_search_module(LIBLO liblo>=0.25 REQUIRED)
mark_as_advanced(LIBLO_LIBRARIES)
pkg_search_module(JACK jack)
find_package(Curses REQUIRED)
mark_as_advanced(CURSES_CURSES_H_PATH)
mark_as_advanced(CURSES_FORM_LIBRARY)
mark_as_advanced(CURSES_HAVE_CURSES_H)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -g -Wall -Wextra")
set(BUILD_EXAMPLE FALSE CACHE BOOL "Build Example Application")
#rtosc
add_subdirectory(rtosc)
include_directories(rtosc/include)
#Main executable
add_executable(oscprompt main.cpp render.cpp)
target_link_libraries(oscprompt ${LIBLO_LIBRARIES}
${CURSES_LIBRARIES}
rtosc-cpp
${LIBRTOSC_LIBRARIES}
m)
#Demo App
if(BUILD_EXAMPLE AND JACK_FOUND)
add_executable(example-backend example.cpp)
target_link_libraries(example-backend ${LIBLO_LIBRARIES}
rtosc-cpp
${LIBRTOSC_LIBRARIES}
m
${JACK_LIBRARIES})
endif(BUILD_EXAMPLE AND JACK_FOUND)
install(TARGETS oscprompt RUNTIME DESTINATION bin)