2023-10-29 15:56:52 -07:00
|
|
|
cmake_minimum_required (VERSION 3.1.0)
|
|
|
|
|
project(fischl)
|
|
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 14)
|
|
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
|
# fischl include files
|
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include
|
2023-11-12 12:18:39 -08:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/googletest/googletest/include
|
2023-10-29 15:56:52 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
add_executable(fischl
|
|
|
|
|
|
|
|
|
|
lib/fischl.cpp
|
|
|
|
|
lib/main.cpp
|
2023-11-26 14:01:09 -08:00
|
|
|
lib/rawdisk.cpp
|
|
|
|
|
lib/fs/datablock_manager.cpp
|
|
|
|
|
lib/fs/fs_data_types.cpp
|
|
|
|
|
lib/fs/fs_resize.cpp
|
|
|
|
|
lib/fs/fs_read_write.cpp
|
|
|
|
|
lib/fs/fs.cpp
|
|
|
|
|
lib/fs/inode_manager.cpp
|
2023-11-16 18:36:35 -08:00
|
|
|
lib/files.cpp
|
2023-11-21 17:21:43 -08:00
|
|
|
lib/direntry.cpp
|
2023-10-29 15:56:52 -07:00
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
enable_testing()
|
2023-11-12 12:18:39 -08:00
|
|
|
add_subdirectory(test)
|
2023-11-29 17:38:30 -08:00
|
|
|
add_subdirectory(googletest)
|
|
|
|
|
|
|
|
|
|
# Add the -Wall flag
|
|
|
|
|
target_compile_options(fischl PRIVATE -Wall)
|
|
|
|
|
|
|
|
|
|
# Use pkg-config to get flags for fuse3
|
|
|
|
|
find_package(PkgConfig REQUIRED)
|
|
|
|
|
pkg_search_module(FUSE3 REQUIRED fuse3)
|
|
|
|
|
|
|
|
|
|
# Add the flags from pkg-config for fuse3
|
|
|
|
|
target_include_directories(fischl PRIVATE ${FUSE3_INCLUDE_DIRS})
|
|
|
|
|
target_link_libraries(fischl PRIVATE ${FUSE3_LIBRARIES})
|