diff --git a/CMakeLists.txt b/CMakeLists.txt index 47406960..0d81153f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,7 @@ if(NOT DEFINED DIGWATCH_VERSION) endif() if(NOT DEFINED DIR_ETC) - set(DIR_ETC "${CMAKE_INSTALL_PREFIX}/etc") + set(DIR_ETC "/etc") endif() set(DRAIOS_DEBUG_FLAGS "-D_DEBUG") @@ -144,6 +144,7 @@ add_subdirectory(${SYSDIG_DIR}/driver ${PROJECT_BINARY_DIR}/driver) add_subdirectory(${SYSDIG_DIR}/userspace/libscap ${PROJECT_BINARY_DIR}/userspace/libscap) add_subdirectory(${SYSDIG_DIR}/userspace/libsinsp ${PROJECT_BINARY_DIR}/userspace/libsinsp) +add_subdirectory(rules) add_subdirectory(userspace/digwatch) diff --git a/rules/CMakeLists.txt b/rules/CMakeLists.txt new file mode 100644 index 00000000..b1c34ae1 --- /dev/null +++ b/rules/CMakeLists.txt @@ -0,0 +1,3 @@ +install(FILES digwatch.conf + DESTINATION "${DIR_ETC}") +