2019-01-19 22:02:41 +01:00
|
|
|
project (cryfs-unmount)
|
|
|
|
INCLUDE(GNUInstallDirs)
|
|
|
|
|
|
|
|
set(SOURCES
|
|
|
|
program_options/ProgramOptions.cpp
|
|
|
|
program_options/Parser.cpp
|
|
|
|
Cli.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(${PROJECT_NAME} ${SOURCES})
|
|
|
|
target_link_libraries(${PROJECT_NAME} PUBLIC cpp-utils cryfs fspp-fuse)
|
|
|
|
target_enable_style_warnings(${PROJECT_NAME})
|
|
|
|
target_activate_cpp14(${PROJECT_NAME})
|
2021-04-18 09:49:26 +02:00
|
|
|
target_add_boost(${PROJECT_NAME})
|
2019-01-19 22:02:41 +01:00
|
|
|
|
|
|
|
add_executable(${PROJECT_NAME}_bin main_unmount.cpp)
|
|
|
|
set_target_properties(${PROJECT_NAME}_bin PROPERTIES OUTPUT_NAME cryfs-unmount)
|
|
|
|
target_link_libraries(${PROJECT_NAME}_bin PUBLIC ${PROJECT_NAME})
|
|
|
|
target_enable_style_warnings(${PROJECT_NAME}_bin)
|
|
|
|
target_activate_cpp14(${PROJECT_NAME}_bin)
|
|
|
|
|
|
|
|
install(TARGETS ${PROJECT_NAME}_bin
|
2021-08-14 18:38:02 +02:00
|
|
|
DESTINATION ${CMAKE_INSTALL_BINDIR}
|
2019-01-19 22:02:41 +01:00
|
|
|
)
|