-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
108 lines (88 loc) · 2.99 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
cmake_minimum_required(VERSION 3.20)
project(rman LANGUAGES C CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_subdirectory(dep)
if (WIN32)
add_library(fuse3 SHARED IMPORTED)
set_target_properties(fuse3 PROPERTIES IMPORTED_LOCATION "C:/Program\ Files\ (x86)/WinFsp/bin/winfsp-x64.dll")
set_target_properties(fuse3 PROPERTIES IMPORTED_IMPLIB "C:/Program\ Files\ (x86)/WinFsp/lib/winfsp-x64.lib")
include_directories("C:/Program Files (x86)/WinFsp/inc")
endif()
add_library(rlib STATIC
lib/rlib/ar.hpp
lib/rlib/ar.cpp
lib/rlib/ar_cdc.cpp
lib/rlib/ar_fsb.cpp
lib/rlib/ar_fsb5.cpp
lib/rlib/ar_load.cpp
lib/rlib/ar_mac.cpp
lib/rlib/ar_pe.cpp
lib/rlib/ar_wad.cpp
lib/rlib/ar_wpk.cpp
lib/rlib/ar_zip.cpp
lib/rlib/buffer.hpp
lib/rlib/buffer.cpp
lib/rlib/common.hpp
lib/rlib/common.cpp
lib/rlib/iofile.cpp
lib/rlib/iofile.hpp
lib/rlib/rads_rls.cpp
lib/rlib/rads_rls.hpp
lib/rlib/rads_sln.cpp
lib/rlib/rads_sln.hpp
lib/rlib/rbundle.cpp
lib/rlib/rbundle.hpp
lib/rlib/rcache.hpp
lib/rlib/rcache.cpp
lib/rlib/rcdn.hpp
lib/rlib/rcdn.cpp
lib/rlib/rchunk.hpp
lib/rlib/rchunk.cpp
lib/rlib/rfile.hpp
lib/rlib/rfile.cpp
lib/rlib/rdir.hpp
lib/rlib/rdir.cpp
lib/rlib/rmanifest.cpp
lib/rlib/rmanifest.hpp
)
target_include_directories(rlib PUBLIC lib/)
target_link_libraries(rlib PUBLIC argparse libcurl zstd fmt)
target_link_libraries(rlib PUBLIC argparse zstd fmt)
target_link_libraries(rlib PRIVATE json_struct digestpp miniz)
if (WIN32)
target_sources(rlib INTERFACE
res/longpath.manifest
res/utf8.manifest
)
endif()
add_executable(rman-dl src/rman_dl.cpp)
target_link_libraries(rman-dl PRIVATE rlib)
add_executable(rman-ls src/rman_ls.cpp)
target_link_libraries(rman-ls PRIVATE rlib)
add_executable(rman-bl src/rman_bl.cpp)
target_link_libraries(rman-bl PRIVATE rlib)
add_executable(rman-diff src/rman_diff.cpp)
target_link_libraries(rman-diff PRIVATE rlib)
add_executable(rman-make src/rman_make.cpp)
target_link_libraries(rman-make PRIVATE rlib)
add_executable(rman-merge src/rman_merge.cpp)
target_link_libraries(rman-merge PRIVATE rlib)
add_executable(rman-mount src/rman_mount.cpp)
target_link_libraries(rman-mount PRIVATE rlib fuse3)
add_executable(rman-rads src/rman_rads.cpp)
target_link_libraries(rman-rads PRIVATE rlib)
add_executable(rman-chk src/rman_chk.cpp)
target_link_libraries(rman-chk PRIVATE rlib)
add_executable(rman-remake src/rman_remake.cpp)
target_link_libraries(rman-remake PRIVATE rlib)
add_executable(rbun-chk src/rbun_chk.cpp)
target_link_libraries(rbun-chk PRIVATE rlib)
add_executable(rbun-ex src/rbun_ex.cpp)
target_link_libraries(rbun-ex PRIVATE rlib)
add_executable(rbun-ls src/rbun_ls.cpp)
target_link_libraries(rbun-ls PRIVATE rlib)
add_executable(rbun-merge src/rbun_merge.cpp)
target_link_libraries(rbun-merge PRIVATE rlib)
add_executable(rbun-usage src/rbun_usage.cpp)
target_link_libraries(rbun-usage PRIVATE rlib)