-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
30 lines (21 loc) · 972 Bytes
/
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
project(scsynth-interop C CXX)
if (NOT CMAKE_C_COMPILER)
message(FATAL_ERROR "Could not find prerequisite C compiler")
endif ()
if (NOT CMAKE_CXX_COMPILER)
message(FATAL_ERROR "Could not find prerequisite C++ compiler")
endif ()
########################################################################
## CMake Configuration
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules
${CMAKE_MODULE_PATH})
########################################################################
## Project/Build Configuration
set(SuperCollider_FIND_REQUIRED TRUE)
find_package(SuperCollider)
include_directories(/usr/include)
include_directories(${SuperCollider_INCLUDE_DIR}/SuperCollider/plugin_interface)
include_directories(${SuperCollider_INCLUDE_DIR}/SuperCollider/common)
add_library(scsynth-interop SHARED scsynth-interop.cpp)
target_link_libraries (scsynth-interop ${SuperCollider_LIBS})