NetCpp/CMakeLists.txt

31 lines
574 B
CMake
Raw Normal View History

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 ()
find_package(Boost REQUIRED thread)
find_package(OpenSSL 1.1.1 REQUIRED)
2019-12-12 14:34: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()
add_subdirectory(src)
2019-12-12 14:34:09 +00:00
2020-11-24 18:23:51 +00:00
add_subdirectory(test)