1 cmake_minimum_required(VERSION 2.8)
2 set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/")
6 set(VERSION_REVISION "4")
10 if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/rtosc/CMakeLists.txt")
11 message(STATUS "RTOSC NOT FOUND")
12 message(STATUS "Attempting to checkout submodule")
13 find_package(Git REQUIRED)
14 execute_process(COMMAND git submodule update --init)
15 if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/rtosc/CMakeLists.txt")
16 message(FATAL_ERROR "FAILED TO CHECKOUT RTOSC\n"
17 "please check file permissions and your network")
20 message(STATUS "Found Rtosc Submodule...")
23 set(RTOSC_NO_INSTALL TRUE)
24 include("rtosc/cmake/ColorMessage.cmake")
25 add_subdirectory(rtosc)
26 include_directories(rtosc/include)
29 include(CTestConfig.cmake)
30 #Currently the only directory that uses cmake
33 install(FILES AUTHORS.txt COPYING HISTORY.txt README.adoc
34 DESTINATION share/doc/zynaddsubfx
36 install(FILES zynaddsubfx-jack.desktop zynaddsubfx-alsa.desktop
37 DESTINATION share/applications)
38 install(FILES zynaddsubfx.svg
39 DESTINATION share/pixmaps)
40 install(DIRECTORY instruments/banks
41 DESTINATION share/zynaddsubfx)
42 install(DIRECTORY instruments/examples
43 DESTINATION share/zynaddsubfx)
44 install(DIRECTORY instruments/ZynAddSubFX.lv2presets
45 DESTINATION ${PluginLibDir}/lv2)