mirror of
https://github.com/vgough/encfs.git
synced 2024-11-25 17:33:19 +01:00
30 lines
633 B
CMake
30 lines
633 B
CMake
|
find_package (Protobuf REQUIRED)
|
||
|
include_directories (${PROTOBUF_INCLUDE_DIR})
|
||
|
|
||
|
find_package (TinyXML REQUIRED)
|
||
|
include_directories (${TINYXML_INCLUDE_DIR})
|
||
|
set (LIBS ${LIBS} ${TINYXML_LIBRARIES})
|
||
|
|
||
|
protobuf_generate_cpp (PROTO_SRCS PROTO_HDRS config.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
|
||
|
XmlReader.cpp
|
||
|
${PROTO_SRCS}
|
||
|
${PROTO_HDRS}
|
||
|
)
|
||
|
|
||
|
target_link_libraries (encfs-base
|
||
|
${PROTOBUF_LIBRARY}
|
||
|
${TINYXML_LIBRARIES}
|
||
|
)
|
||
|
|