Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove ozo submodule #76

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 10 additions & 14 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
project(niba)

cmake_minimum_required(VERSION 3.11)
cmake_minimum_required(VERSION 3.12)

set(CMAKE_VERBOSE_MAKEFILE ON)
set(CMAKE_CXX_COMPILER $ENV{CXX})
Expand All @@ -17,16 +17,18 @@ set(THREADS_PREFER_PTHREAD_FLAG ON)
set(Boost_USE_STATIC_LIBS ON)

add_compile_definitions(BOOST_COROUTINES_NO_DEPRECATION_WARNING)
add_compile_definitions(BOOST_HANA_CONFIG_ENABLE_STRING_UDL)
# TODO: enable only for debug builds
add_compile_definitions(DELAYFACTOR=0.1)

SET(Boost_USE_STATIC_LIBS ON)
find_package(Boost 1.70.0 REQUIRED COMPONENTS system context coroutine log log_setup regex)
find_package(Boost 1.70.0 REQUIRED COMPONENTS context coroutine log log_setup regex system)

find_package(nlohmann_json 3.3.0 REQUIRED)
find_package(OpenSSL 1.1.0 REQUIRED)
find_package(Threads REQUIRED)
find_package(resource_pool REQUIRED) # resource_pool must be found before ozo
find_package(ozo REQUIRED)
find_package(PostgreSQL 10 REQUIRED)
find_package(Threads REQUIRED)

file(GLOB SHARED_SRC_LIST shared/*.cpp)
file(GLOB SERVER_SRC_LIST server/*.cpp)
Expand All @@ -37,25 +39,19 @@ include_directories(shared/)
add_executable(niba-server ${SERVER_SRC_LIST} ${SHARED_SRC_LIST})
add_executable(niba-client ${CLIENT_SRC_LIST} ${SHARED_SRC_LIST})

target_include_directories(niba-server PRIVATE
${PostgreSQL_INCLUDE_DIRS}
ozo/include/
ozo/contrib/resource_pool/include
)

target_compile_definitions(niba-client PUBLIC NIBACLIENT)

set(LINK_LIBS
${OPENSSL_CRYPTO_LIBRARY}
${OPENSSL_SSL_LIBRARY}
Boost::system
Boost::context
Boost::coroutine
Boost::log
Boost::log_setup
Boost::regex
Threads::Threads
nlohmann_json::nlohmann_json)
Boost::system
nlohmann_json::nlohmann_json
Threads::Threads)

target_link_libraries(niba-server ${LINK_LIBS} ${PostgreSQL_LIBRARIES})
target_link_libraries(niba-server ${LINK_LIBS} elsid::resource_pool ozo ${PostgreSQL_LIBRARIES})
target_link_libraries(niba-client ${LINK_LIBS})
1 change: 0 additions & 1 deletion ozo
Submodule ozo deleted from b161dd