-
Notifications
You must be signed in to change notification settings - Fork 13
/
CMakeLists.txt
42 lines (32 loc) · 1.11 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
cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
project(DeepC)
cmake_policy(SET CMP0074 NEW)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
find_package(Nuke REQUIRED)
message("Using Nuke ${NUKE_VERSION_MAJOR}.${NUKE_VERSION_MINOR}v${NUKE_VERSION_RELEASE}")
if (UNIX)
add_compile_options(
-DUSE_GLEW -fPIC -msse -msse2 -msse3 -mssse3 -msse4 -msse4.1 -msse4.2 -mavx
)
endif()
find_package(OpenGL)
if (NOT OpenGL_FOUND)
message(WARNING "Couldn't find OpenGL dev libraries, skipping DeepCPMatte Plugin")
endif()
if (NUKE_VERSION_MAJOR VERSION_GREATER_EQUAL 15.0)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_GLIBCXX_USE_CXX11_ABI=1")
set(CMAKE_CXX_STANDARD 17)
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_GLIBCXX_USE_CXX11_ABI=0")
set(CMAKE_CXX_STANDARD 14)
endif()
set(FASTNOISE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/FastNoise)
add_library(FastNoise OBJECT ${FASTNOISE_DIR}/FastNoise.cpp)
# add sub directory
add_subdirectory(src)
# install directory
install(FILES
python/init.py
DESTINATION .)
file(GLOB ICONS "icons/DeepC*.png")
install(FILES ${ICONS} DESTINATION icons)