mirror of
https://github.com/vgough/encfs.git
synced 2024-11-22 16:03:34 +01:00
7799c88df6
git-svn-id: http://encfs.googlecode.com/svn/trunk@93 db9cf616-1c43-0410-9cb8-a902689de0d6
43 lines
824 B
CMake
43 lines
824 B
CMake
include_directories (${OPENSSL_INCLUDE_DIR})
|
|
|
|
link_directories (${Encfs_BINARY_DIR}/base)
|
|
|
|
enable_testing ()
|
|
find_package (GTest REQUIRED)
|
|
|
|
add_library (encfs-cipher
|
|
readpassphrase.cpp
|
|
BlockCipher.cpp
|
|
Cipher.cpp
|
|
CipherKey.cpp
|
|
MemoryPool.cpp
|
|
NullCipher.cpp
|
|
openssl.cpp
|
|
SSL_Cipher.cpp
|
|
)
|
|
|
|
target_link_libraries (encfs-cipher
|
|
${OPENSSL_LIBRARIES}
|
|
)
|
|
|
|
#include_directories (${GTEST_INCLUDE_DIR})
|
|
#add_executable (unittests
|
|
#MemBlockFileIO.cpp
|
|
#MemFileIO.cpp
|
|
#testing.cpp
|
|
#test_IO.cpp
|
|
#test_BlockIO.cpp
|
|
#)
|
|
|
|
#target_link_libraries (unittests
|
|
#${GTEST_BOTH_LIBRARIES}
|
|
#encfs-fs
|
|
#encfs-base
|
|
#${GLOG_LIBRARIES}
|
|
#)
|
|
|
|
#add_test (UnitTests unittests)
|
|
#GTEST_ADD_TESTS (unittests "${UnitTestArgs}" test_IO.cpp test_BlockIO.cpp)
|
|
#add_custom_target (test COMMAND ${CMAKE_CTEST_COMMAND} DEPENDS unittests)
|
|
|