encfs/util/CMakeLists.txt
Valient Gough 63c2d1c539 add CommonCrypto support, other misc fixes
git-svn-id: http://encfs.googlecode.com/svn/trunk@97 db9cf616-1c43-0410-9cb8-a902689de0d6
2013-03-05 06:39:51 +00:00

36 lines
860 B
CMake

include_directories (${Encfs_SOURCE_DIR}/base)
link_directories (${Encfs_BINARY_DIR}/base)
include_directories (${Encfs_SOURCE_DIR}/cipher)
link_directories (${Encfs_BINARY_DIR}/cipher)
include_directories (${Encfs_SOURCE_DIR}/fs)
link_directories (${Encfs_BINARY_DIR}/fs)
include_directories (${CMAKE_BINARY_DIR}/base)
add_executable (encfsctl
encfsctl.cpp)
target_link_libraries (encfsctl
encfs-fs
encfs-cipher
encfs-base
${GLOG_LIBRARIES}
)
if (POD2MAN)
add_custom_target(util-man ALL
COMMAND ${POD2MAN} -u --section=1 --release=${ENCFS_VERSION}
--center="Encrypted Filesystem"
${CMAKE_CURRENT_SOURCE_DIR}/encfsctl.pod
encfsctl.1)
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/encfsctl.1
DESTINATION
share/man/man1)
endif (POD2MAN)
install (TARGETS encfsctl DESTINATION bin)