#cmake_minimum_required(VERSION 3.0 FATAL_ERROR) project(scriptfs) set(CMAKE_CXX_STANDARD 23) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_FILE_OFFSET_BITS=64 -Wall") set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall --pedantic -g") set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake" ${CMAKE_MODULE_PATH}) set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) set(CMAKE_EXPORT_COMPILE_COMMANDS 1) find_package(FUSE REQUIRED) include_directories(${FUSE_INCLUDE_DIR}) include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include") file(GLOB_RECURSE SOURCES src/*.cpp) add_executable(scriptfs ${SOURCES}) target_link_libraries(scriptfs ${FUSE_LIBRARIES})