-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
30 lines (28 loc) · 1.04 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
cmake_minimum_required (VERSION 3.0)
project (ImpactorAutoFill C CXX)
set(CompilerFlags CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE)
foreach(CompilerFlag ${CompilerFlags})
string(REPLACE "/MD" "/MT" ${CompilerFlag} "${${CompilerFlag}}")
endforeach()
if(NOT MSVC)
message(WARNING "Detours library only supports MSVC")
endif()
add_definitions(-D_WIN32_WINNT=0x0700)
include_directories(detours/src)
add_library(detours STATIC
detours/src/detours.cpp
detours/src/modules.cpp
detours/src/disasm.cpp
detours/src/image.cpp
detours/src/creatwth.cpp
detours/src/disolx86.cpp
detours/src/disolx64.cpp
detours/src/disolia64.cpp
detours/src/disolarm.cpp
detours/src/disolarm64.cpp
)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
add_executable(loader WIN32 loader.c)
add_library(autofill SHARED autofill.c version-shim.c version-shim.def)
target_link_libraries(loader detours)
target_link_libraries(autofill detours advapi32 credui)