-
Notifications
You must be signed in to change notification settings - Fork 10
/
CMakeLists.txt
43 lines (33 loc) · 1.32 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
cmake_minimum_required(VERSION 3.24)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/deps/cyberpunk_cmake")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/deps/red4ext.sdk/cmake")
project(input_loader VERSION 0.1.1)
include(CyberpunkMod)
configure_mod(
NAME "Input Loader"
AUTHOR "Jack Humbert"
URL "https://github.com/jackhumbert/cyberpunk2077-input-loader"
LICENSE "Licensed under the MIT license. See the license.md in the root project for details."
)
# find_package(Detours)
find_package(Spdlog)
find_package(Pugixml)
configure_red4ext(src)
target_include_directories(${MOD_SLUG}.dll PUBLIC ${MOD_SOURCE_DIR}/include)
target_link_libraries(${MOD_SLUG}.dll
PUBLIC
# Detours
spdlog
pugixml
)
target_compile_definitions(${MOD_SLUG}.dll PRIVATE DLLDIR_EX)
configure_mod_file(inputUserMappings.xml red4ext/plugins/${MOD_SLUG}/inputUserMappings.xml)
configure_mod_file(input_loader.ini engine/config/platform/pc/input_loader.ini)
configure_mod_file(inputContexts.xml r6/cache/inputContexts.xml)
configure_mod_file(inputUserMappings.xml r6/cache/inputUserMappings.xml)
configure_folder_file(readme.md)
configure_folder_file(license.md)
# configure_uninstall()
configure_release(${MOD_SLUG}_${MOD_VERSION_STR}.zip)
configure_install()