forked from EplExplorer/MicroLoader
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
26 lines (20 loc) · 772 Bytes
/
CMakeLists.txt
File metadata and controls
26 lines (20 loc) · 772 Bytes
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
cmake_minimum_required(VERSION 3.20)
project(MicroLoader VERSION 0.0.1 LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 11)
file(GLOB_RECURSE KRNLN_SOURCE "ELoader/krnln/*.cpp")
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/source-charset:utf-8>")
add_compile_options("$<$<C_COMPILER_ID:MSVC>:/source-charset:utf-8>")
include_directories(ELoader/bdwgc/include)
add_executable(MicroLoader
ELoader/EArray.cpp
ELoader/EContext.cpp
ELoader/EHelpFunc.cpp
ELoader/ELoader.cpp
ELoader/ENotifySys.cpp
ELoader/EGC.cpp
ELoader/logger/easylogging++.cc
${KRNLN_SOURCE})
add_custom_command(TARGET MicroLoader POST_BUILD
COMMAND python ${CMAKE_SOURCE_DIR}/tools/inject.py $<TARGET_FILE:MicroLoader>
VERBATIM
)