2020-06-26 12:28:56 +00:00
|
|
|
cmake_minimum_required(VERSION 3.13)
|
2019-12-12 14:34:09 +00:00
|
|
|
project(Net)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 14)
|
2020-11-24 18:23:51 +00:00
|
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
2019-12-12 14:34:09 +00:00
|
|
|
|
|
|
|
include_directories(include/)
|
|
|
|
include_directories(utils/)
|
|
|
|
|
2020-11-24 06:39:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
IF (WIN32)
|
|
|
|
|
|
|
|
ELSEIF (APPLE)
|
|
|
|
set(OPENSSL_ROOT_DIR /usr/local/opt/openssl@1.1)
|
|
|
|
set(OPENSSL_LIBRARIES /usr/local/opt/openssl@1.1/lib)
|
|
|
|
ELSEIF (UNIX)
|
|
|
|
|
|
|
|
ENDIF ()
|
|
|
|
|
2020-07-08 18:30:27 +00:00
|
|
|
find_package(Boost REQUIRED thread)
|
2020-06-26 12:28:56 +00:00
|
|
|
find_package(OpenSSL 1.1.1 REQUIRED)
|
2019-12-12 14:34:09 +00:00
|
|
|
|
2019-12-14 15:23:09 +00:00
|
|
|
include_directories(${Boost_INCLUDE_DIRS} ${OPENSSL_INCLUDE_DIR} ${SQLiteCpp_INCLUDE_DIRS})
|
2019-12-12 14:34:09 +00:00
|
|
|
|
2020-06-26 14:13:27 +00:00
|
|
|
enable_testing()
|
|
|
|
|
2020-06-26 12:28:56 +00:00
|
|
|
add_subdirectory(src)
|
2019-12-12 14:34:09 +00:00
|
|
|
|
2020-11-24 18:23:51 +00:00
|
|
|
add_subdirectory(test)
|