-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
34 lines (26 loc) · 927 Bytes
/
CMakeLists.txt
File metadata and controls
34 lines (26 loc) · 927 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
27
28
29
30
31
32
33
34
cmake_minimum_required(VERSION 3.5)
project(FlarialDumper)
set(CMAKE_CXX_STANDARD 23)
include(FetchContent)
FetchContent_Declare(
libhat
GIT_REPOSITORY https://github.com/BasedInc/libhat.git
GIT_TAG 9ef05d6961ce37a4c801f11159de895aa21878a9
)
FetchContent_MakeAvailable(libhat)
FetchContent_Declare(
json
GIT_REPOSITORY https://github.com/nlohmann/json.git
GIT_TAG v3.9.1
)
FetchContent_GetProperties(json)
if(NOT json_POPULATED)
FetchContent_Populate(json)
add_library(nlohmann_json INTERFACE)
target_include_directories(nlohmann_json INTERFACE ${json_SOURCE_DIR}/include)
endif()
add_executable(FlarialDumper main.cpp
src/Resolver/Resolvers/VtableResolver/VtableResolver.cpp
src/Resolver/Resolvers/SignatureResolver/SignatureResolver.cpp
src/Utils/Utils.cpp)
target_link_libraries(FlarialDumper PRIVATE libhat nlohmann_json)