mirror of
https://github.com/vgough/encfs.git
synced 2024-11-25 09:23:13 +01:00
f00ef5c6d3
git-svn-id: http://encfs.googlecode.com/svn/trunk@94 db9cf616-1c43-0410-9cb8-a902689de0d6
32 lines
645 B
CMake
32 lines
645 B
CMake
find_package (TinyXML REQUIRED)
|
|
include_directories (${TINYXML_INCLUDE_DIR})
|
|
set (LIBS ${LIBS} ${TINYXML_LIBRARIES})
|
|
|
|
find_package (Protobuf REQUIRED)
|
|
|
|
|
|
protobuf_generate_cpp (PROTO_SRCS PROTO_HDRS ${Encfs_SOURCE_DIR}/protos/interface.proto)
|
|
|
|
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake
|
|
${CMAKE_CURRENT_BINARY_DIR}/config.h)
|
|
|
|
add_library (encfs-base
|
|
autosprintf.cpp
|
|
base64.cpp
|
|
ConfigReader.cpp
|
|
ConfigVar.cpp
|
|
Error.cpp
|
|
Interface.cpp
|
|
Range.h
|
|
Registry.h
|
|
XmlReader.cpp
|
|
${PROTO_SRCS}
|
|
${PROTO_HDRS}
|
|
)
|
|
|
|
target_link_libraries (encfs-base
|
|
${PROTOBUF_LIBRARY}
|
|
${TINYXML_LIBRARIES}
|
|
)
|
|
|