-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
30 lines (23 loc) · 948 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
cmake_minimum_required(VERSION 3.15)
project(DLL-Injector)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
file(GLOB_RECURSE SOURCES "mem/*.cpp"
"naive/*.cpp"
"mmap/*.cpp"
"imgui/*.cpp"
"gui/*.cpp"
"lib/ImGuiFileDialog/*.cpp")
find_library(LIBRARY_NAME
NAME "GH Injector - x64.lib"
PATHS ${CMAKE_SOURCE_DIR}/lib)
if(LIBRARY_NAME)
message(STATUS "Found GH Injector - x64.lib")
else()
message(FATAL_ERROR "Could not find GH Injector - x64.lib")
endif()
find_library(D3D9_LIBRARY
NAMES d3d9.lib dxgi.lib d3dcompiler.lib
PATHS "C:\\Program Files (x86)\\Microsoft DirectX SDK (June 2010)\\Lib\\x64")
add_executable(${PROJECT_NAME} WIN32 "main.cpp" ${SOURCES})
target_link_libraries(${PROJECT_NAME} ${LIBRARY_NAME} ${D3D9_LIBRARY})