diff --git a/CMakeLists.txt b/CMakeLists.txt index 937a92a..0d05103 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,4 +27,15 @@ add_executable(fischl enable_testing() add_subdirectory(test) -add_subdirectory(googletest) \ No newline at end of file +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}) \ No newline at end of file