-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCMakeLists.txt
27 lines (22 loc) · 1.06 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
cmake_minimum_required(VERSION 3.17)
project(among-us-replay-mod)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
set(SPDLOG_FMT_EXTERNAL ON CACHE BOOL "" FORCE)
add_subdirectory(external/rcmp)
add_subdirectory(external/fmt)
add_subdirectory(external/magic_enum)
add_subdirectory(external/spdlog)
add_library(${PROJECT_NAME} SHARED
${PROJECT_SOURCE_DIR}/source/library.cpp
${PROJECT_SOURCE_DIR}/source/sniffer.cpp
${PROJECT_SOURCE_DIR}/source/utils/encoding.cpp
${PROJECT_SOURCE_DIR}/source/utils/utils.cpp
${PROJECT_SOURCE_DIR}/source/utils/mod_info.cpp
${PROJECT_SOURCE_DIR}/source/utils/logger.cpp
)
target_compile_definitions(${PROJECT_NAME} PRIVATE WIN32_LEAN_AND_MEAN NOMINMAX)
target_link_libraries(${PROJECT_NAME} PRIVATE rcmp fmt::fmt magic_enum spdlog)
target_include_directories(${PROJECT_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/source)
target_compile_options(${PROJECT_NAME} PRIVATE /W4 /WX /w14062)
add_executable(injector ${PROJECT_SOURCE_DIR}/injector/main.cpp)