forked from tuttleofx/TuttleOFX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
48 lines (39 loc) · 1.58 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
# Project Tuttle OFX
include(CPack)
cmake_minimum_required (VERSION 2.8)
project (TuttleOFX)
# The install rule does not depend on all, i.e. everything will not be built before installing
set(CMAKE_SKIP_INSTALL_ALL_DEPENDENCY TRUE)
# Add a variable for experimental host/plugins features
if(NOT TUTTLE_EXPERIMENTAL)
set(TUTTLE_EXPERIMENTAL 0)
endif()
add_definitions(-DTUTTLE_EXPERIMENTAL=${TUTTLE_EXPERIMENTAL})
# Add a variable to set a default path to OFX plugins
add_definitions(-DTUTTLE_OFX_PLUGIN_PATH="${CMAKE_INSTALL_PREFIX}/OFX")
# Add a variable to install dependencies with tuttle when deploy
if(NOT TUTTLE_DEPLOY_DEPENDENCIES)
set(TUTTLE_DEPLOY_DEPENDENCIES 0)
endif()
# Diplay commands being ran by CMake
set(CMAKE_VERBOSE_MAKEFILE OFF)
# Include subdirs
set(SEQUENCEPARSER_PYTHON_VERSION ${TUTTLE_PYTHON_VERSION})
add_subdirectory(libraries/sequenceParser)
add_subdirectory(libraries/tuttle)
add_subdirectory(applications)
add_subdirectory(plugins)
# Add a target to generate API documentation with Doxygen
find_package(Doxygen)
if(DOXYGEN_FOUND)
set(doxyfile_in ${PROJECT_SOURCE_DIR}/doc/code/Doxyfile)
set(doxyfile ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
configure_file(${doxyfile_in} ${doxyfile} @ONLY)
FILE(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/share/doc)
add_custom_target(doc
COMMAND ${DOXYGEN_EXECUTABLE} ${doxyfile}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generating TuttleHOST documentation with Doxygen" VERBATIM
)
install(DIRECTORY "${CMAKE_BINARY_DIR}/share/doc" DESTINATION "${CMAKE_INSTALL_PREFIX}/share" OPTIONAL)
endif(DOXYGEN_FOUND)