194093f059
FossilOrigin-Name: c20718e6e77b953aa533f2084a52333551708d08e876c7213978b1453a2fe640
25 lines
558 B
CMake
25 lines
558 B
CMake
cmake_minimum_required(VERSION 3.10)
|
|
project(wormhole)
|
|
|
|
find_package(PkgConfig REQUIRED)
|
|
find_package(Threads REQUIRED)
|
|
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
# C++ settings
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
|
|
|
|
include_directories(wormhole include/)
|
|
|
|
# Subdirectories
|
|
add_subdirectory(src)
|
|
|
|
# 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})
|