27 lines
614 B
CMake
27 lines
614 B
CMake
include(GNUInstallDirs)
|
|
|
|
configure_file(fs-compat.hpp.in fs-compat.hpp @ONLY)
|
|
|
|
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})
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
PRIVATE
|
|
PkgConfig::cgicc
|
|
nlohmann_json
|
|
std::filesystem
|
|
PkgConfig::libgit2
|
|
CURL::libcurl)
|
|
|
|
install(TARGETS ${PROJECT_NAME}
|
|
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
|