-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
executable file
·47 lines (29 loc) · 994 Bytes
/
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
cmake_minimum_required(VERSION 3.0)
project(NukeToHydra)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
${CMAKE_CURRENT_SOURCE_DIR}/cmake
$ENV{CMAKE_MODULE_PATH})
set(BOOST_PYTHON_COMPONENT_NAME "python27"
CACHE STRING
"The Boost component name to pass to the `find_package` command.")
set(HDNUKE_LIB_NAME HdNuke)
find_package(Nuke REQUIRED)
find_package(USD 0.20.2 REQUIRED)
find_package(Boost REQUIRED
COMPONENTS ${BOOST_PYTHON_LIBNAME})
find_package(PythonInterp 2.7 REQUIRED)
find_package(PythonLibs 2.7 REQUIRED)
find_package(TBB REQUIRED
COMPONENTS tbb)
include_directories(SYSTEM
${Boost_INCLUDE_DIRS}
${PYTHON_INCLUDE_DIRS}
${TBB_INCLUDE_DIRS})
link_directories(${USD_LIBRARY_DIR})
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_EXTENSIONS OFF)
add_compile_options(-fPIC -msse -Wall -Wno-deprecated)
add_subdirectory(src/hdNuke)
add_subdirectory(src/ops)
install(FILES src/menu.py
DESTINATION plugins)