2021-05-24 17:46:50 +02:00
|
|
|
cmake_minimum_required(VERSION 3.2)
|
2021-05-21 11:13:17 +02:00
|
|
|
project(fosscord-media)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
|
|
|
|
find_package(Threads REQUIRED)
|
|
|
|
|
2021-05-24 17:46:50 +02:00
|
|
|
find_package(mongocxx REQUIRED)
|
|
|
|
find_package(Boost REQUIRED)
|
2021-05-21 11:13:17 +02:00
|
|
|
|
|
|
|
|
2021-05-24 17:46:50 +02:00
|
|
|
file(GLOB SourceFiles ${PROJECT_SOURCE_DIR}/src/*.cpp)
|
|
|
|
#include_directories("bsoncxx/v_noabi/bsoncxx/")
|
2021-05-21 11:13:17 +02:00
|
|
|
add_executable(${CMAKE_PROJECT_NAME} ${SourceFiles})
|
|
|
|
|
2021-05-24 17:46:50 +02:00
|
|
|
target_link_libraries(${CMAKE_PROJECT_NAME} datachannel mongo::mongocxx_shared Boost::boost)
|