osquery-1/osquery/events/CMakeLists.txt

34 lines
780 B
CMake
Raw Normal View History

2014-09-23 03:40:28 +00:00
SET(OSQUERY_EVENTS_SOURCES "")
2014-09-19 08:54:33 +00:00
if(APPLE)
ADD_OSQUERY_CORE_LINK("-framework CoreServices")
ADD_OSQUERY_CORE_LINK("-framework SystemConfiguration")
2014-09-19 08:54:33 +00:00
ADD_OSQUERY_CORE_LIBRARY(osquery_events_darwin
2014-09-23 03:40:28 +00:00
darwin/fsevents.cpp
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)
ADD_OSQUERY_CORE_LIBRARY(osquery_events_freebsd
2014-11-07 15:33:16 +00:00
)
2014-09-19 08:54:33 +00:00
else()
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()
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)
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()