-
Notifications
You must be signed in to change notification settings - Fork 9
/
CMakeLists.txt
39 lines (33 loc) · 1.04 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
#
# project: fbxc
#
if (NOT FIPS_IMPORT)
cmake_minimum_required(VERSION 2.8)
get_filename_component(FIPS_ROOT_DIR "../fips" ABSOLUTE)
include("${FIPS_ROOT_DIR}/cmake/fips.cmake")
# cpptoml requires exceptions enabled
set(FIPS_EXCEPTIONS ON CACHE BOOL "Enable C++ exceptions" FORCE)
fips_setup()
fips_project(fbxc)
endif()
# find the FBX SDK
include("cmake/find_fbxsdk.cmake")
if (NOT FBXSDK_FOUND)
message(FATAL_ERROR "FBX SDK not found!")
endif()
fips_include_directories(${FBXSDK_INCLUDE_DIR} src)
fips_add_subdirectory(src)
fips_begin_app(fbxc cmdline)
fips_files(main_stub.cc)
fips_deps(fbxc_lib)
fips_libs_debug(${FBXSDK_LIBRARY_DEBUG})
fips_libs_release(${FBXSDK_LIBRARY})
fips_end_app()
# disable some warnings from the FBX SDK headers
if (FIPS_CLANG)
set_target_properties(fbxc_lib PROPERTIES COMPILE_FLAGS "-Wno-missing-field-initializers")
set_target_properties(fbxc PROPERTIES COMPILE_FLAGS "-Wno-missing-field-initializers")
endif()
if (NOT FIPS_IMPORT)
fips_finish()
endif()