From 652d066c8dffd4a09a390a68e0d3316fec0058d1 Mon Sep 17 00:00:00 2001 From: FactorialN Date: Wed, 29 Nov 2023 17:38:30 -0800 Subject: [PATCH] made some minor modification to compilation --- CMakeLists.txt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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