-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
53 lines (45 loc) · 1.16 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
cmake_minimum_required(VERSION 2.8)
project("FBX-G2 Converter")
set(SOURCE_FILES
"src/EntryPoint.cpp"
"src/GLA.cpp"
"src/IO.cpp"
)
set(HEADER_FILES
"src/GLA.h"
"src/GLM.h"
"src/IO.h"
)
if(NOT FBX_ROOT)
if(APPLE)
set(FBX_ROOT "/Applications/Autodesk/FBX\ SDK/2014.2.1")
elseif(WIN32)
set(FBX_ROOT "$ENV{ProgramFiles}\\Autodesk\\FBX\\FBX SDK\\2014.2.1")
endif()
endif()
set(INCLUDE_PATH
${INCUDE_PATH}
${FBX_ROOT}/include
)
if(APPLE)
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-std=c++11 -Wno-reserved-user-defined-literal")
set(LINK_LIBRARIES
${LINK_LIBRARIES}
/System/Library/Frameworks/Carbon.framework
debug ${FBX_ROOT}/lib/clang/ub/debug/libfbxsdk.a
optimized ${FBX_ROOT}/lib/clang/ub/release/libfbxsdk.a
)
elseif(WIN32)
if(MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
add_definitions(-D_SCL_SECURE_NO_WARNINGS)
endif()
set(LINK_LIBRARIES
${LINK_LIBRARIES}
debug ${FBX_ROOT}/lib/vs2012/x86/debug/libfbxsdk-md.lib
optimized ${FBX_ROOT}/lib/vs2012/x86/release/libfbxsdk-md.lib
)
endif()
include_directories(${INCLUDE_PATH})
add_executable(fbx2ghoul2 ${SOURCE_FILES} ${HEADER_FILES})
target_link_libraries(fbx2ghoul2 ${LINK_LIBRARIES})