-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
49 lines (41 loc) · 1.08 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
cmake_minimum_required(VERSION 3.20)
project(OBTool)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(FbxSdk)
add_subdirectory(libthanatos)
include_directories(libthanatos/include
stb
${FbxSdk_INCLUDE_DIRS}
)
set(SRC
src/main.cpp
src/commands.c
src/tim2.c
src/tim2utils.c
src/tristrip.cpp
src/afs.c
src/imageindexing.cpp
src/convert_to_fbx.cpp
src/convert_to_nbd.cpp
src/extract_scenario_afs.cpp
src/build_scenario_afs.cpp
src/patch_nbd_textures.cpp
src/extract_momo.cpp
src/build_momo.cpp
src/extract_afs.cpp
src/build_afs.cpp
# http://www.codercorner.com/Strips.htm
src/striper/Adjacency.cpp
src/striper/CustomArray.cpp
src/striper/RevisitedRadix.cpp
src/striper/StdAfx.cpp
src/striper/Striper.cpp
)
add_executable(OBTool ${SRC})
target_link_libraries(OBTool thanatos ${FbxSdk_LIBRARIES})
target_compile_options(OBTool PRIVATE
$<$<CXX_COMPILER_ID:MSVC>:/wd4312 /wd4311>
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>: -Wno-sign-conversion -Wno-narrowing>
)