forked from acidicoala/Koaloader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
41 lines (28 loc) · 960 Bytes
/
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
cmake_minimum_required(VERSION 3.24)
project(Koaloader VERSION 3.0.2)
include(KoalaBox/cmake/KoalaBox.cmake)
add_subdirectory(KoalaBox EXCLUDE_FROM_ALL)
# Get module variable
SET(MODULE "" CACHE STRING "Some user-specified option")
if (NOT MODULE)
message(FATAL_ERROR "Option 'MODULE' must be set")
endif ()
configure_version_resource("https://github.com/acidicoala/Koaloader")
# Setup linker exports
set(
KOALOADER_SOURCES
src/koaloader/koaloader.cpp
src/koaloader/koaloader.hpp
src/main.cpp
)
configure_linker_exports(
FORWARDED_DLL "C:/Windows/System32/${MODULE}"
INPUT_SOURCES_DIR ""
INPUT_DLLS "C:/Windows/System32/${MODULE}.dll"
DEP_SOURCES "${KOALOADER_SOURCES}"
)
configure_build_config()
add_library(Koaloader SHARED ${KOALOADER_SOURCES} ${GENERATED_LINKER_EXPORTS} ${VERSION_RESOURCE})
configure_output_name(${MODULE})
configure_include_directories()
target_link_libraries(Koaloader PRIVATE KoalaBox)