libcryfs/src/fspp/fuse/CMakeLists.txt

27 lines
789 B
CMake
Raw Normal View History

project (fspp-fuse)
set(SOURCES
../impl/FilesystemImpl.cpp
../impl/Profiler.cpp
../fuse/Fuse.cpp
)
add_library(${PROJECT_NAME} STATIC ${SOURCES})
target_compile_definitions(${PROJECT_NAME} PUBLIC _FILE_OFFSET_BITS=64)
2018-08-08 03:45:05 +02:00
target_link_libraries(${PROJECT_NAME} PUBLIC cpp-utils fspp-interface)
target_add_boost(${PROJECT_NAME} filesystem system thread chrono)
target_enable_style_warnings(${PROJECT_NAME})
target_activate_cpp14(${PROJECT_NAME})
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(CMAKE_FIND_FRAMEWORK LAST)
set(FUSE_LIB_NAME "osxfuse")
else(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(FUSE_LIB_NAME "fuse")
endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
find_library_with_path(FUSE ${FUSE_LIB_NAME} FUSE_LIB_PATH)
target_link_libraries(${PROJECT_NAME} PUBLIC ${FUSE})