mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralgw.git
synced 2025-10-29 18:02:27 +00:00
Original
This commit is contained in:
@@ -1,21 +1,22 @@
|
|||||||
cmake_minimum_required(VERSION 3.17)
|
cmake_minimum_required(VERSION 3.17)
|
||||||
project(ucentral)
|
project(ucentral)
|
||||||
|
|
||||||
if(NOT TARGET spdlog)
|
|
||||||
# Stand-alone build
|
|
||||||
find_package(spdlog REQUIRED)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(EXISTS ${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
|
|
||||||
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
|
|
||||||
conan_basic_setup()
|
|
||||||
else()
|
|
||||||
message(WARNING "The file conanbuildinfo.cmake doesn't exist, you have to run conan install first")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 20)
|
set(CMAKE_CXX_STANDARD 20)
|
||||||
|
|
||||||
|
set(Boost_USE_STATIC_LIBS OFF)
|
||||||
|
set(Boost_USE_MULTITHREADED ON)
|
||||||
|
set(Boost_USE_STATIC_RUNTIME OFF)
|
||||||
|
find_package(cpprestsdk REQUIRED)
|
||||||
|
find_package(Boost REQUIRED COMPONENTS thread system)
|
||||||
|
find_package(OpenSSL REQUIRED)
|
||||||
|
|
||||||
|
include_directories(/usr/local/include /usr/local/opt/openssl/include)
|
||||||
|
|
||||||
|
# link_directories(/usr/local/lib /usr/local/opt/openssl/lib)
|
||||||
|
|
||||||
add_executable(ucentral main.cpp)
|
add_executable(ucentral main.cpp)
|
||||||
|
|
||||||
target_link_libraries(ucentral ${CONAN_LIBS})
|
target_link_libraries(ucentral PRIVATE cpprestsdk::cpprest ${Boost_LIBRARIES})
|
||||||
### target_link_libraries(ucentral PRIVATE spdlog::spdlog_header_only)
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user