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

27 lines
614 B
CMake
Raw Normal View History

2020-06-29 03:01:30 +02:00
include(GNUInstallDirs)
configure_file(fs-compat.hpp.in fs-compat.hpp @ONLY)
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)
target_include_directories(${PROJECT_NAME}
PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
2020-06-29 05:21:23 +02:00
target_link_libraries(${PROJECT_NAME}
2020-07-02 00:19:18 +02:00
PRIVATE
PkgConfig::cgicc
nlohmann_json
std::filesystem
PkgConfig::libgit2
CURL::libcurl)
2020-06-29 03:01:30 +02:00
install(TARGETS ${PROJECT_NAME}
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")