-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
85 lines (68 loc) · 2.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
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
cmake_minimum_required(VERSION 3.13.0)
project(pgmvc)
set(HFS $ENV{HOME}/hfs18.0.416)
set(HOUDINI_VERSION_MAJOR 18)
set(HOUDINI_VERSION_MINOR 0)
set(HOUDINI_VERSION_PATCH 416)
message ("HOUDINI VERSION: " $ENV{HOUDINI_VERSION_MAJOR}.$ENV{HOUDINI_VERSION_MINOR}.$ENV{HOUDINI_VERSION_PATCH})
set (HOUDINI_VERSION $ENV{HOUDINI_VERSION_MAJOR}.$ENV{HOUDINI_VERSION_MINOR}.$ENV{HOUDINI_VERSION_PATCH} )
add_definitions(
-DVERSION=\"${HOUDINI_VERSION}\"
-DHOUDINI_VERSION=${HOUDINI_VERSION}
-DHOUDINI_MAJOR_RELEASE=${HOUDINI_VERSION_MAJOR}
-DHOUDINI_MINOR_RELEASE=${HOUDINI_VERSION_MINOR}
-DHOUDINI_BUILD_VERSION=${HOUDINI_VERSION_PATCH}
-D_GNU_SOURCE
-DLINUX
-DAMD64
-DSIZEOF_VOID_P=8
-DFBX_ENABLED=1
-DOPENCL_ENABLED=1
-DOPENVDB_ENABLED=1
-DSESI_LITTLE_ENDIAN
-DENABLE_THREADS
-DUSE_PTHREADS
-DMAKING_DSO
-D_REENTRANT
-D_FILE_OFFSET_BITS=64
-DGCC4
-DGCC3
)
set(HOUDINI_LIBRARIES
HoudiniUI
HoudiniUT
HoudiniOPZ
HoudiniOP1
HoudiniOP2
HoudiniOP3
HoudiniSIM
HoudiniGEO
HoudiniPRM
HoudiniRAY
hboost_system
tbb
# GLU
# GL
# X11
# Xext
# Xi
# dl
pthread
)
set(CMAKE_CXX_FLAGS "-fopenmp")
add_library(${PROJECT_NAME}_capture_all SHARED
capture_pgmvc.cpp
)
add_library(${PROJECT_NAME}_deform_all SHARED
deform_pgmvc.cpp
)
target_include_directories(${PROJECT_NAME}_capture_all BEFORE PUBLIC ${HFS}/toolkit/include/)
target_include_directories(${PROJECT_NAME}_deform_all BEFORE PUBLIC ${HFS}/toolkit/include/)
target_link_directories(${PROJECT_NAME}_capture_all BEFORE PUBLIC ${HFS}/dsolib)
target_link_directories(${PROJECT_NAME}_deform_all BEFORE PUBLIC ${HFS}/dsolib)
target_link_libraries(${PROJECT_NAME}_capture_all ${HOUDINI_LIBRARIES})
target_link_libraries(${PROJECT_NAME}_deform_all ${HOUDINI_LIBRARIES})
install(TARGETS
${PROJECT_NAME}_capture_all
${PROJECT_NAME}_deform_all
DESTINATION dso)