From 10366233b30b449e59e2fae85b3361b8d9cb7f7a Mon Sep 17 00:00:00 2001 From: Glen Mabey Date: Thu, 3 Mar 2022 11:19:08 -0700 Subject: [PATCH 1/2] added CMakeLists.txt --- CMakeLists.txt | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100755 index 0000000..bbd1a22 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,31 @@ +cmake_minimum_required(VERSION 3.13) + +set(FUSE_ARCHIVE_VERSION 0.0.1) +set(PROJECT_NAME fuse-archive) +project(${PROJECT_NAME} VERSION ${FUSE_ARCHIVE_VERSION} LANGUAGES CXX) +include(GNUInstallDirs) + +add_executable(${PROJECT_NAME} src/main.cc) +find_package(PkgConfig REQUIRED) +pkg_check_modules(PC_FUSE REQUIRED fuse) + +find_package(Threads REQUIRED) +find_package(LibArchive REQUIRED) + +target_compile_definitions(${PROJECT_NAME} PUBLIC ${PC_FUSE_CFLAGS_OTHER}) +target_link_libraries(${PROJECT_NAME} PUBLIC Threads::Threads) +target_link_libraries(${PROJECT_NAME} PUBLIC ${pkgcfg_lib_PC_FUSE_fuse}) +target_link_libraries(${PROJECT_NAME} PUBLIC ${LibArchive_LIBRARIES}) +install(TARGETS ${PROJECT_NAME} DESTINATION /usr/bin) + +export(PACKAGE ${PROJECT_NAME}) +set(CPACK_PACKAGE_NAME ${PROJECT_NAME}) +set(CPACK_PACKAGE_CONTACT "Nigel Tao ") +set(CPACK_PACKAGE_DESCRIPTION "Serves an archive or compressed file as a FUSE file system.") +set(CPACK_DEB_COMPONENT_INSTALL ON) +set(CPACK_DEBIAN_COMPRESSION_TYPE "gzip") +set(CPACK_DEBIAN_PACKAGE_PRIORITY "optional") +set(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://github.com/google/fuse-archive") +set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT) +set(CPACK_DEBIAN_PACKAGE_DEPENDS "libfuse-dev") +include(CPack) From 9d1ed9f690a2076457cfd8e2c55a1108b874d39b Mon Sep 17 00:00:00 2001 From: Glen Mabey Date: Thu, 29 Jun 2023 16:00:23 -0600 Subject: [PATCH 2/2] updated version number to 0.1.14 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bbd1a22..66e7e9b 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.13) -set(FUSE_ARCHIVE_VERSION 0.0.1) +set(FUSE_ARCHIVE_VERSION 0.1.14) set(PROJECT_NAME fuse-archive) project(${PROJECT_NAME} VERSION ${FUSE_ARCHIVE_VERSION} LANGUAGES CXX) include(GNUInstallDirs)