-
Notifications
You must be signed in to change notification settings - Fork 95
/
CMakeLists.txt
54 lines (47 loc) · 1.64 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
cmake_minimum_required(VERSION 2.4)
project(dwango_opentoonz_plugins)
if(WIN32)
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
set(PLATFORM1 32)
set(PLATFORM2)
else()
set(PLATFORM1 64)
set(PLATFORM2 _64)
endif()
if(PLATFORM1 EQUAL 64)
add_definitions(-Dx64)
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP /openmp")
set(PLUGIN_UTILITY_LIB "${CMAKE_CURRENT_SOURCE_DIR}/opentoonz_plugin_utility/lib/${CMAKE_CFG_INTDIR}/libopentoonz_plugin_utility")
endif(WIN32)
if(APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++")
set(PLUGIN_UTILITY_LIB "${CMAKE_CURRENT_SOURCE_DIR}/opentoonz_plugin_utility/lib/${CMAKE_CFG_INTDIR}/libopentoonz_plugin_utility.a")
endif(APPLE)
find_package(OpenCV REQUIRED)
set(LIBS ${OpenCV_LIBS} ${PLUGIN_UTILITY_LIB})
include_directories(opentoonz_plugin_utility/include
opentoonz_plugin_utility/plugin_sdk/core
"${OpenCV_INCLUDE_DIRS}")
link_directories("${OpenCV_LIBS}")
add_subdirectory(opentoonz_plugin_utility)
add_subdirectory(BlurChromaticAberration)
add_subdirectory(BlurConvolution)
add_subdirectory(BlurCurlNoise)
add_subdirectory(BlurMaskedC)
add_subdirectory(BlurMaskedD)
add_subdirectory(BlurMaskedR)
add_subdirectory(CoherentNoise)
add_subdirectory(ComposeAdd)
add_subdirectory(ComposeMul)
add_subdirectory(ComposeOptical)
add_subdirectory(Drip)
add_subdirectory(ImageQuilting)
add_subdirectory(Kaleidoscope)
add_subdirectory(LightBloom)
add_subdirectory(LightGlare)
add_subdirectory(LightIncident)
add_subdirectory(Paraffin)
add_subdirectory(PencilHatching)
add_subdirectory(Tiling)
add_subdirectory(Waveglass)