forked from jeremytammik/FBX-glTF
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
42 lines (38 loc) · 981 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
42 lines (38 loc) · 981 Bytes
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
set (IOGLTF_MAJOR_VERSION 0)
set (IOGLTF_MINOR_VERSION 1)
set (IOGLTF_PATCH_VERSION 0)
set (IOGLTF_VERSION ${IOGLTF_MAJOR_VERSION}.${IOGLTF_MINOR_VERSION}.${IOGLTF_PATCH_VERSION})
# IO-glTF dynamic libray
file (GLOB_RECURSE IO-glTF-src ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
include_directories (
${FBX_SDK_INCLUDES}
/usr/local/include
)
link_directories (
${FBX_SDK_LIBS}
/usr/local/lib
)
add_library (IO-glTF SHARED ${IO-glTF-src})
target_link_libraries (
IO-glTF
${FBX_SDK_LIBRARY}
${CASABLANCA_LIBRARY}
${Boost_LIBRARIES} ${Boost_FRAMEWORK}
)
# Support Files
file (
COPY ${CMAKE_CURRENT_SOURCE_DIR}/glTF-0-8-defaults.json
DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/
)
file (
COPY ${CMAKE_CURRENT_SOURCE_DIR}/glTF-0-8.json
DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/
)
# Dependencies
if ( ${CMAKE_SYSTEM_NAME} MATCHES "Darwin" )
# Mac OS X specific
file (
COPY ${FBX_SDK_LIBS}/${FBX_SDK_LIBRARY}
DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
)
endif ()