7f075a69b1
FossilOrigin-Name: f3dd89e263a7b73e58373f155bef8ca03fbee49dacff56df39d158de1d5ccb0a
21 lines
522 B
CMake
21 lines
522 B
CMake
cmake_minimum_required(VERSION 3.10)
|
|
project(wormhole)
|
|
|
|
find_package(PkgConfig REQUIRED)
|
|
find_package(Threads REQUIRED)
|
|
|
|
# C++
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
|
|
|
|
include_directories(wormhole include/)
|
|
|
|
# files
|
|
set(sources src/main.cpp
|
|
src/database/database.cpp
|
|
src/logger.cpp)
|
|
|
|
add_executable(wormhole ${sources})
|
|
target_link_libraries(wormhole ${CMAKE_DL_LIBS}
|
|
${CMAKE_THREAD_LIBS_INIT})
|