made some minor modification to compilation

This commit is contained in:
FactorialN 2023-11-29 17:38:30 -08:00
parent 3f3a394001
commit 652d066c8d

View File

@ -27,4 +27,15 @@ add_executable(fischl
enable_testing()
add_subdirectory(test)
add_subdirectory(googletest)
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})