osquery-1/osquery/events/CMakeLists.txt

28 lines
578 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_LINK("-framework IOKit")
ADD_OSQUERY_LINK("-framework CoreFoundation")
ADD_OSQUERY_LINK("-framework Security")
2014-09-23 03:40:28 +00:00
ADD_OSQUERY_LIBRARY(osquery_events_darwin
darwin/fsevents.cpp
)
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)
else()
2014-09-23 02:54:59 +00:00
ADD_OSQUERY_TEST(inotify_tests linux/inotify_tests.cpp)
2014-09-19 08:54:33 +00:00
endif()