2014-09-23 03:40:28 +00:00
|
|
|
SET(OSQUERY_EVENTS_SOURCES "")
|
2014-09-19 08:54:33 +00:00
|
|
|
|
|
|
|
if(APPLE)
|
2014-09-30 20:17:54 +00:00
|
|
|
ADD_OSQUERY_LINK("-framework CoreServices")
|
2014-10-07 22:16:26 +00:00
|
|
|
ADD_OSQUERY_LINK("-framework SystemConfiguration")
|
2014-09-19 08:54:33 +00:00
|
|
|
|
2014-09-23 03:40:28 +00:00
|
|
|
ADD_OSQUERY_LIBRARY(osquery_events_darwin
|
|
|
|
darwin/fsevents.cpp
|
2014-10-07 22:16:26 +00:00
|
|
|
darwin/scnetwork.cpp
|
2014-09-23 03:40:28 +00:00
|
|
|
)
|
2014-11-07 15:33:16 +00:00
|
|
|
elseif(FREEBSD)
|
|
|
|
ADD_OSQUERY_LIBRARY(osquery_events_freebsd
|
|
|
|
)
|
2014-09-19 08:54:33 +00:00
|
|
|
else()
|
2014-09-23 03:40:28 +00:00
|
|
|
ADD_OSQUERY_LIBRARY(osquery_events_linux
|
2014-09-19 08:54:33 +00:00
|
|
|
linux/inotify.cpp
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2014-09-23 03:40:28 +00:00
|
|
|
ADD_OSQUERY_LIBRARY(osquery_events
|
2014-09-19 08:54:33 +00:00
|
|
|
events.cpp
|
|
|
|
)
|
|
|
|
|
2014-09-23 02:54:59 +00:00
|
|
|
ADD_OSQUERY_TEST(events_tests events_tests.cpp)
|
|
|
|
ADD_OSQUERY_TEST(events_database_tests events_database_tests.cpp)
|
2014-09-19 08:54:33 +00:00
|
|
|
|
|
|
|
if(APPLE)
|
2014-09-30 20:17:54 +00:00
|
|
|
ADD_OSQUERY_TEST(fsevents_tests darwin/fsevents_tests.cpp)
|
2014-11-07 15:33:16 +00:00
|
|
|
elseif(FREEBSD)
|
|
|
|
# ADD_OSQUERY_TEST(fsevents_tests freebsd/events_tests.cpp)
|
2014-09-19 08:54:33 +00:00
|
|
|
else()
|
2014-10-04 00:02:00 +00:00
|
|
|
ADD_OSQUERY_TEST(inotify_tests linux/inotify_tests.cpp)
|
2014-09-19 08:54:33 +00:00
|
|
|
endif()
|