forked from tuttleofx/TuttleOFX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
33 lines (27 loc) · 1.07 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
# Project Tuttle OFX
include(CPack)
cmake_minimum_required (VERSION 2.8)
project (TuttleOFX)
# Add a variable for production
set(TUTTLE_PRODUCTION TRUE CACHE BOOL "Fully optimized for production usage.")
if(TUTTLE_PRODUCTION)
add_definitions(-DTUTTLE_PRODUCTION)
endif()
# Create an alias for all OFX plugins.
add_custom_target(ofxplugins)
# Include subdirs
add_subdirectory(libraries/tuttle)
add_subdirectory(plugins)
add_subdirectory(applications)
# Add a target to generate API documentation with Doxygen
find_package(Doxygen)
if(DOXYGEN_FOUND)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/doc/code/Doxyfile ${CMAKE_CURRENT_BINARY_DIR}/doc/code/Doxyfile @ONLY)
FILE(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/share/tuttle/doc)
add_custom_target(doc
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/doc/code/Doxyfile
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generating TuttleHOST documentation with Doxygen" VERBATIM
)
# install(DIRECTORY "${CMAKE_BINARY_DIR}/share/tuttle/doc" DESTINATION "${CMAKE_INSTALL_PREFIX}/share/tuttle/doc")
endif(DOXYGEN_FOUND)