1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2024-10-27 20:44:10 +00:00
falk-werner_webfuse-provider/CMakeLists.txt

65 lines
1.9 KiB
CMake
Raw Normal View History

2019-03-03 14:14:32 +00:00
cmake_minimum_required (VERSION 3.10)
2020-03-01 19:17:41 +00:00
project(webfuse VERSION 0.3.0 DESCRIPTION "Websocket filesystem based on libfuse")
2019-01-27 02:45:03 +00:00
option(WITHOUT_TESTS "disable unit tests" OFF)
option(WITHOUT_ADAPTER "disable adapter library" OFF)
option(WITHOUT_PROVIDER "disable provider library" OFF)
2019-12-01 10:01:00 +00:00
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_CURRENT_SOURCE_DIR}/cmake")
include(coverage)
2019-01-30 20:53:57 +00:00
2019-01-27 02:45:03 +00:00
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
find_package(PkgConfig REQUIRED)
pkg_check_modules(LWS REQUIRED libwebsockets)
pkg_check_modules(JANSSON REQUIRED jansson)
add_definitions(-D_FILE_OFFSET_BITS=64)
2019-02-10 08:22:58 +00:00
set(CMAKE_C_STANDARD 99)
2019-12-01 10:05:50 +00:00
set(CMAKE_CXX_STANDARD 14)
2019-02-10 08:38:31 +00:00
set(CMAKE_CXX_STANDARD_REQUIRED ON)
2020-02-29 01:32:03 +00:00
set(C_WARNINGS -Wall -Wextra -Werror)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
2019-01-27 02:45:03 +00:00
include_directories(
2019-02-10 13:19:15 +00:00
"include"
2019-01-27 02:45:03 +00:00
${LWS_INCLUDE_DIRS}
${JANSSON_INCLUDE_DIRS}
)
add_compile_options(
2019-02-10 08:22:58 +00:00
${C_WARNINGS}
2019-01-27 02:45:03 +00:00
${LWS_CFLAGS_OTHER}
${JANSSON_CFLAGS_OTHER}
"-pthread"
)
include(wf_timer)
2020-03-01 15:55:58 +00:00
include(wf_jsonrpc)
include(webfuse_core)
include(webfuse_adapter)
include(webfuse_provider)
include(unit_tests)
set(CPACK_SOURCE_GENERATOR "TGZ")
set(CPACK_GENERATOR "DEB")
set(CPACK_PACKAGE_VERSION_MAJOR "${PROJECT_VERSION_MAJOR}")
set(CPACK_PACKAGE_VERSION_MINOR "${PROJECT_VERSION_MINOR}")
set(CPACK_PACKAGE_VERSION_PATCH "${PROJECT_VERSION_PATCH}")
set(CPACK_DESCRIPTION "Websocket filesystem based on libfuse")
#set(CPACK_COMPONENTS_ALL libraries)
set(CPACK_DEB_COMPONENT_INSTALL ON)
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Falk Werner")
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
set(CPACK_DEBIAN_LIBRARIES_FILE_NAME "webfuse_${PROJECT_VERSION}_${CMAKE_SYSTEM_NAME}.deb")
set(CPACK_DEBIAN_LIBRARIES_PACKAGE_NAME "webfuse")
set(CPACK_DEBIAN_HEADERS_FILE_NAME "webfuse-dev_${PROJECT_VERSION}_${CMAKE_SYSTEM_NAME}.deb")
set(CPACK_DEBIAN_HEADERS_PACKAGE_NAME "webfuse-dev")
set(CPACK_DEBIAN_HEADERS_PACKAGE_DEPENDS "webfuse")
include(CPack)