-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
41 lines (31 loc) · 1.05 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
cmake_minimum_required(VERSION 3.20)
# check if use g++ unless wagie
set(CMAKE_CXX_COMPILER "/usr/bin/gcc")
set(CMAKE_VERBOSE_MAKEFILE ON)
# Export the compilation commands to a file
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# Create the build directory
set(BUILD_DIR ${CMAKE_CURRENT_SOURCE_DIR}/build)
if(NOT EXISTS ${BUILD_DIR})
file(MAKE_DIRECTORY ${BUILD_DIR})
endif()
project(9bind)
add_subdirectory(server)
add_subdirectory(client)
include(FetchContent)
# FetchContent_Declare(
# liburing4cpp
# GIT_REPOSITORY https://github.com/CarterLi/liburing4cpp.git
# GIT_TAG async
# FIND_PACKAGE_ARGS # use find_package() before trying to download source
# )
# FetchContent_MakeAvailable(liburing4cpp)
FetchContent_Declare(
libssh2
GIT_REPOSITORY https://github.com/libssh2/libssh2.git
GIT_TAG master
FIND_PACKAGE_ARGS # use find_package() before trying to download source
)
FetchContent_MakeAvailable(libssh2)
# target_include_directories(9bind PUBLIC ${FUSE3_INCLUDE_DIR})
# target_link_libraries(9bind PUBLIC liburing4cpp PUBLIC ${FUSE3_LIBRARY})