-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
88 lines (74 loc) · 2.3 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
86
87
88
cmake_minimum_required(VERSION 3.8)
project("HitmanAbsolutionEditor" C CXX)
set(CMAKE_CXX_STANDARD 23)
set(VCPKG_BUILD_ROOT "${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}")
add_subdirectory(External/imgui-docking-layout)
add_subdirectory(External/imguizmo)
add_subdirectory(External/GLTFSDK)
add_subdirectory(External/HLSLDecompiler)
add_subdirectory(External/ImGuiColorTextEdit)
find_package(directxtex CONFIG REQUIRED)
find_package(directxtk CONFIG REQUIRED)
find_package(RapidJSON CONFIG REQUIRED)
find_package(SFML COMPONENTS audio CONFIG REQUIRED)
find_package(effects11 CONFIG REQUIRED)
file(GLOB_RECURSE SRC_FILES
CONFIGURE_DEPENDS
src/*.cpp
src/*.c
src/*.hpp
src/*.h,
)
file(GLOB_RECURSE HEADER_FILES
CONFIGURE_DEPENDS
include/*.h
)
add_executable(HitmanAbsolutionEditor
${SRC_FILES}
${HEADER_FILES}
)
target_compile_definitions(HitmanAbsolutionEditor PRIVATE
INTERFACE TRANSPOSED_MAT33=1
)
target_include_directories(HitmanAbsolutionEditor PRIVATE
${CMAKE_SOURCE_DIR}/External/mINI/src/mini
)
target_include_directories(HitmanAbsolutionEditor PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/include
${CMAKE_SOURCE_DIR}/External/IconFontCppHeaders
${CMAKE_CURRENT_SOURCE_DIR}/External/PhysX-SDK
${CMAKE_CURRENT_SOURCE_DIR}/External/PhysX-SDK/Foundation
${CMAKE_CURRENT_SOURCE_DIR}/External/PhysX-SDK/Physics
)
target_link_libraries(HitmanAbsolutionEditor PUBLIC
d3d11
dxgi
Microsoft::DirectXTK
Microsoft::DirectXTex
imgui-docking-layout
imguizmo
rapidjson
GLTFSDK
${CMAKE_CURRENT_SOURCE_DIR}/lib/x64/NxCharacter64.lib
${CMAKE_CURRENT_SOURCE_DIR}/lib/x64/PhysXCooking64.lib
${CMAKE_CURRENT_SOURCE_DIR}/lib/x64/PhysXCore64.lib
${CMAKE_CURRENT_SOURCE_DIR}/lib/x64/PhysXLoader64.lib
${CMAKE_CURRENT_SOURCE_DIR}/lib/x64/PhysXLoader64.lib
sfml-audio
Microsoft::Effects11
hlsl-decompiler
imgui-color-text-edit
)
install(TARGETS HitmanAbsolutionEditor
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
add_custom_command(TARGET HitmanAbsolutionEditor POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
"${CMAKE_SOURCE_DIR}/bin/x64/"
$<TARGET_FILE_DIR:HitmanAbsolutionEditor>)
add_custom_command(TARGET HitmanAbsolutionEditor POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
"${CMAKE_SOURCE_DIR}/assets/"
$<TARGET_FILE_DIR:HitmanAbsolutionEditor>/assets)