2014-09-23 03:40:28 +00:00
|
|
|
SET(OSQUERY_EVENTS_SOURCES "")
|
2014-09-19 08:54:33 +00:00
|
|
|
|
|
|
|
if(APPLE)
|
2014-12-23 22:35:48 +00:00
|
|
|
ADD_OSQUERY_CORE_LINK("-framework CoreServices")
|
|
|
|
ADD_OSQUERY_CORE_LINK("-framework SystemConfiguration")
|
2014-09-19 08:54:33 +00:00
|
|
|
|
2014-12-23 22:35:48 +00:00
|
|
|
ADD_OSQUERY_CORE_LIBRARY(osquery_events_darwin
|
2014-09-23 03:40:28 +00:00
|
|
|
darwin/fsevents.cpp
|
2014-12-12 02:06:08 +00:00
|
|
|
darwin/iokit_hid.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)
|
2014-12-23 22:35:48 +00:00
|
|
|
ADD_OSQUERY_CORE_LIBRARY(osquery_events_freebsd
|
2014-11-07 15:33:16 +00:00
|
|
|
)
|
2014-09-19 08:54:33 +00:00
|
|
|
else()
|
2014-12-23 22:35:48 +00:00
|
|
|
ADD_OSQUERY_CORE_LIBRARY(osquery_events_linux
|
2014-09-19 08:54:33 +00:00
|
|
|
linux/inotify.cpp
|
2014-12-08 10:22:59 +00:00
|
|
|
linux/udev.cpp
|
2014-09-19 08:54:33 +00:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2014-12-23 22:35:48 +00:00
|
|
|
ADD_OSQUERY_CORE_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-16 20:27:45 +00:00
|
|
|
elseif(LINUX)
|
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()
|