2021-05-20 04:30:31 +02:00
|
|
|
include(GNUInstallDirs)
|
|
|
|
|
2021-05-20 10:30:36 +02:00
|
|
|
configure_file("version.hpp.in" "version.hpp" @ONLY)
|
|
|
|
configure_file("fs-compat.hpp.in" "fs-compat.hpp" @ONLY)
|
2021-05-20 04:30:31 +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_link_libraries(${PROJECT_NAME}
|
2021-05-20 10:30:36 +02:00
|
|
|
Boost::program_options Boost::locale
|
2021-05-21 03:25:42 +02:00
|
|
|
std::filesystem LibArchive::LibArchive fmt::fmt)
|
2021-05-20 04:30:31 +02:00
|
|
|
|
|
|
|
target_include_directories(${PROJECT_NAME}
|
|
|
|
PRIVATE "$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>")
|
|
|
|
|
|
|
|
install(TARGETS ${PROJECT_NAME}
|
|
|
|
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
|