This repository has been archived on 2021-03-22. You can view files and clone it, but cannot push or open issues or pull requests.
backend/src/CMakeLists.txt

22 lines
602 B
CMake
Raw Normal View History

2020-06-29 03:01:30 +02:00
include(GNUInstallDirs)
2020-06-29 05:21:23 +02:00
find_package(PkgConfig REQUIRED)
pkg_check_modules(cgicc REQUIRED IMPORTED_TARGET cgicc)
2020-06-29 06:10:15 +02:00
find_package(nlohmann_json REQUIRED CONFIG)
find_package(Filesystem REQUIRED)
2020-06-29 06:10:15 +02:00
2020-06-29 03:01:30 +02:00
add_executable(${PROJECT_NAME} main.cpp)
file(GLOB_RECURSE sources_src *.cpp)
file(GLOB_RECURSE headers_src *.hpp)
target_sources(${PROJECT_NAME}
PRIVATE "${sources_src}" "${headers_src}")
unset(sources_src)
unset(headers_src)
2020-06-29 05:21:23 +02:00
target_link_libraries(${PROJECT_NAME}
PRIVATE PkgConfig::cgicc nlohmann_json std::filesystem)
2020-06-29 03:01:30 +02:00
install(TARGETS ${PROJECT_NAME}
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")