-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCMakeLists.txt
64 lines (51 loc) · 2.08 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
60
61
62
63
64
# Project mvp-player
include(CPack)
cmake_minimum_required (VERSION 2.8)
project (Kaliscope)
# Boost specific
ADD_DEFINITIONS( -DBOOST_LOG_DYN_LINK )
# Add a variable for production
add_definitions(-DTUTTLE_PRODUCTION)
set(KALISCOPE_PRODUCTION TRUE CACHE BOOL "Fully optimized for production usage.")
if(KALISCOPE_PRODUCTION)
add_definitions(-DKALISCOPE_PRODUCTION)
endif()
set( CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" )
if(CMAKE_COMPILER_IS_GNUCXX)
if("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
endif()
endif()
if(APPLE)
SET(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++11")
SET(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++")
SET(CMAKE_XCODE_ATTRIBUTE_GCC_VERSION "com.apple.compilers.llvm.clang.1_0")
SET(CMAKE_MACOSX_RPATH 0)
endif()
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fPIC -stdlib=libc++")
if(WIN32)
add_definitions(-DUNICODE -D_UNICODE)
set(TARGET_ARCHITECTURE "x86")
endif()
# The install rule does not depend on all, i.e. everything will not be built before installing
set( CMAKE_SKIP_INSTALL_ALL_DEPENDENCY TRUE )
# Create an alias for all OFX plugins.
add_custom_target(ofxplugins)
# Include subdirs
add_subdirectory(libraries/mvp-player/libraries/boost-adds/)
add_subdirectory(libraries/mvp-player/libraries/mvp-player-core/)
add_subdirectory(libraries/mvp-player/libraries/mvp-player-fmod/)
add_subdirectory(libraries/mvp-player/libraries/mvp-player-gui/)
add_subdirectory(libraries/mvp-player/libraries/mvp-player-net/)
add_subdirectory(libraries/mvp-player/libraries/mvp-player-pluger/)
add_subdirectory(libraries/mvp-player/libraries/mvp-player-qtgui/)
add_subdirectory(libraries/sequenceparser/)
add_subdirectory(libraries/terry/)
add_subdirectory(libraries/tuttlePlugin/)
add_subdirectory(libraries/openfxHack/)
add_subdirectory(libraries/kali-core/)
add_subdirectory(plugins)
add_subdirectory(ofxPlugins)
add_subdirectory(applications)
# Add a target to generate API documentation with Doxygen