-
Notifications
You must be signed in to change notification settings - Fork 11
/
CMakeLists.txt
52 lines (42 loc) · 1.74 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
cmake_minimum_required(VERSION 3.24)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/deps/cyberpunk_cmake")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/deps/red4ext.sdk/cmake")
include(CyberpunkMod)
include(ConfigureVersionFromGit)
configure_version_from_git()
project(in_world_navigation VERSION ${GIT_VERSION_MAJOR}.${GIT_VERSION_MINOR}.${GIT_VERSION_PATCH} LANGUAGES NONE)
configure_mod(
NAME "In-World Navigation"
SLUG ${PROJECT_NAME}
AUTHOR "Jack Humbert"
URL "https://github.com/jackhumbert/in_world_navigation"
LICENSE "Licensed under the MIT license. See the license.md in the root project for details."
)
set(LOAD_ARCHIVES_FROM_RED4EXT ON)
set(LOAD_REDSCRIPT_FROM_RED4EXT ON)
find_program(ZOLTAN_CLANG_EXE NAMES zoltan-clang.exe PATHS "C:/Users/Jack/Documents/cyberpunk/zoltan/target/release/" CACHE)
find_program(REDSCRIPT_CLI_EXE NAMES redscript-cli.exe PATHS "${MOD_TOOLS_DIR}" CACHE)
find_program(CYBERPUNK_2077_EXE NAMES Cyberpunk2077.exe PATHS "${CYBERPUNK_2077_GAME_DIR}/bin/x64" CACHE DOC "Cyberpunk2077.exe Executable File")
configure_red4ext(src/red4ext)
# configure_red4ext_addresses(Addresses.hpp)
find_package(Detours)
find_package(Spdlog)
find_package(ArchiveXL)
find_package(RedLib)
find_package(ModSettings)
target_link_libraries(${MOD_SLUG}.dll
PUBLIC
Detours
spdlog
ArchiveXL
RedLib
)
configure_redscript(src/redscript)
target_link_libraries(${MOD_SLUG}.packed.reds PUBLIC mod_settings.packed.reds)
configure_archives(resources/packed/archive/pc/mod/in_world_navigation.archive)
configure_folder_file(readme.md)
configure_folder_file(license.md)
# configure_uninstall()
configure_release(${MOD_SLUG}_${MOD_VERSION_STR}.zip)
configure_install()