Fix Loading Zyn-Fusion Demo
[zynaddsubfx-code.git] / CMakeLists.txt
blob898d6b4ec6e0fafc38b581bdf6d7509d018bc093
1 cmake_minimum_required(VERSION 2.8)
2 set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/")
3 project(zynaddsubfx)
4 set(VERSION_MAJOR "2")
5 set(VERSION_MINOR "5")
6 set(VERSION_REVISION "4")
9 #Include RTOSC
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")
18     endif()
19 else()
20     message(STATUS "Found Rtosc Submodule...")
21 endif()
23 set(RTOSC_NO_INSTALL TRUE)
24 include("rtosc/cmake/ColorMessage.cmake")
25 add_subdirectory(rtosc)
26 include_directories(rtosc/include)
28 enable_testing()
29 include(CTestConfig.cmake)
30 #Currently the only directory that uses cmake
31 add_subdirectory(src)
33 install(FILES AUTHORS.txt COPYING HISTORY.txt README.adoc
34         DESTINATION share/doc/zynaddsubfx
35         )
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)