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})
|
2019-10-20 03:33:29 +02:00
|
|
|
target_add_boost(${PROJECT_NAME} program_options)
|
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
|
|
|
|
CONFIGURATIONS Debug Release RelWithDebInfo
|
|
|
|
DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
|
|
)
|