-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
59 lines (44 loc) · 1.33 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
cmake_minimum_required (VERSION 2.6)
project (SuperCollider)
include (common/cmake_modules/FinalFile.cmake)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/common/cmake_modules
${CMAKE_MODULE_PATH})
CONFIGURE_FILE(
"${CMAKE_CURRENT_SOURCE_DIR}/common/cmake_modules/cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY)
ADD_CUSTOM_TARGET(uninstall
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
if(APPLE)
set_property(DIRECTORY
APPEND
PROPERTY COMPILE_DEFINITIONS SC_DARWIN)
elseif(CMAKE_SYSTEM_NAME MATCHES "Linux")
set_property(DIRECTORY
APPEND
PROPERTY COMPILE_DEFINITIONS SC_LINUX)
endif()
option(NOVA_SIMD "Build with nova-simd support." ON)
option(FINAL_BUILD "Build as single source file." OFF)
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
option(SC_EL "Build emacs-based IDE." ON)
else()
option(SC_EL "Build emacs-based IDE." OFF)
endif()
option(SC_ED "Build gedit-based IDE." OFF)
option(SC_VIM "Build vim-based IDE." OFF)
option(SCLANG_SERVER "Build with internal server." ON)
add_subdirectory(common/Source)
add_subdirectory(common/build)
if(APPLE)
add_subdirectory(mac)
endif()
if(SC_EL)
add_subdirectory(editors/scel)
endif()
if(SC_ED)
add_subdirectory(editors/sced)
endif()
if(SC_VIM)
add_subdirectory(editors/scvim)
endif()