-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
18 lines (12 loc) · 958 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
cmake_minimum_required(VERSION 3.21)
project(Phantom_Injector)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_FLAGS_RELEASE -O3)
find_package(SDL2 REQUIRED)
find_package(OpenGL REQUIRED)
include_directories(${SDL2_INCLUDE_DIRS} ${OPENGL_INCLUDE_DIR} src/imgui src/ImGuiFileDialog src/injector)
link_libraries(${SDL2_LIBRARIES} ${OPENGL_gl_LIBRARY} OpenGL::GL)
set(IMGUI_SOURCE_FILES src/imgui/imgui.cpp src/imgui/imgui_impl_opengl3.cpp src/imgui/imgui_impl_sdl.cpp src/imgui/imgui_draw.cpp src/imgui/imgui_tables.cpp src/imgui/imgui_widgets.cpp src/imgui/imgui_demo.cpp)
set(FILE_DIALOG_SOURCE_FILES src/ImGuiFileDialog/ImGuiFileDialog.cpp)
set(INJECTOR_SOURCE_FILES src/injector/elf.c src/injector/injector.h src/injector/injector.c src/injector/injector_internal.h src/injector/ptrace.c src/injector/remote_call.c src/injector/util.c)
add_executable(Phantom_Injector src/main.cpp ${IMGUI_SOURCE_FILES} ${FILE_DIALOG_SOURCE_FILES} ${INJECTOR_SOURCE_FILES})