-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
63 lines (50 loc) · 1.1 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
cmake_minimum_required(VERSION 3.26)
project(plpaker VERSION 0.12.0.0 LANGUAGES C CXX)
include(GNUInstallDirs)
include(FetchContent)
FetchContent_Declare(
json
URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz
)
FetchContent_MakeAvailable(json)
FetchContent_Declare(
zlib
GIT_REPOSITORY https://github.com/madler/zlib.git
GIT_TAG 51b7f2abdade71cd9bb0e7a373ef2610ec6f9daf
)
FetchContent_MakeAvailable(zlib)
FetchContent_Declare(
argh
GIT_REPOSITORY https://github.com/adishavit/argh.git
GIT_TAG 431bf323acd3bb805483491ff277dac5d85772ad
)
FetchContent_MakeAvailable(argh)
configure_file(src/version.h.in version.h)
add_library(plpak
src/paker.cpp src/paker.hpp
)
target_compile_features(plpak
PUBLIC
cxx_std_23
)
target_include_directories(plpak
PRIVATE
${PROJECT_BINARY_DIR}
)
target_link_libraries(plpak
PRIVATE
nlohmann_json::nlohmann_json
zlibstatic
)
add_executable(${PROJECT_NAME}
src/main.cpp
res/app.rc
)
target_include_directories(${PROJECT_NAME}
PRIVATE
${argh_SOURCE_DIR}
)
target_link_libraries(${PROJECT_NAME}
PRIVATE
plpak
)