mirror of
https://github.com/maxDcb/C2TeamServer
synced 2026-06-06 16:14:27 +00:00
Maj core & libssh2
This commit is contained in:
@@ -4,6 +4,9 @@ project(C2TeamServer VERSION 0.0.0 LANGUAGES CXX C)
|
||||
set(CMAKE_BUILD_TYPE Release)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||
|
||||
|
||||
##
|
||||
## Conan Dependencies
|
||||
@@ -21,6 +24,26 @@ find_package(httplib REQUIRED)
|
||||
include_directories(${CMAKE_INCLUDE_PATH})
|
||||
|
||||
|
||||
##
|
||||
## Fetch for core
|
||||
##
|
||||
|
||||
include(FetchContent)
|
||||
|
||||
set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build shared libraries" FORCE)
|
||||
set(BUILD_STATIC_LIBS ON CACHE BOOL "Build static libraries" FORCE)
|
||||
set(BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
|
||||
set(BUILD_TESTING OFF CACHE BOOL "" FORCE)
|
||||
|
||||
FetchContent_Declare(
|
||||
libssh2
|
||||
GIT_REPOSITORY https://github.com/libssh2/libssh2.git
|
||||
GIT_TAG libssh2-1.11.1
|
||||
)
|
||||
|
||||
FetchContent_MakeAvailable(libssh2)
|
||||
|
||||
|
||||
##
|
||||
## Config Tests et Logs
|
||||
##
|
||||
|
||||
+1
-1
Submodule core updated: 2f6652ddbb...bd7e71a814
Reference in New Issue
Block a user