osquery-1/osquery/events/CMakeLists.txt
2014-12-25 12:46:59 -08:00

37 lines
857 B
CMake

SET(OSQUERY_EVENTS_SOURCES "")
if(APPLE)
ADD_OSQUERY_CORE_LINK("-framework CoreServices")
ADD_OSQUERY_CORE_LINK("-framework SystemConfiguration")
ADD_OSQUERY_CORE_LINK("-framework IOKit")
ADD_OSQUERY_CORE_LIBRARY(osquery_events_darwin
darwin/fsevents.cpp
darwin/iokit_hid.cpp
darwin/scnetwork.cpp
)
elseif(FREEBSD)
ADD_OSQUERY_CORE_LIBRARY(osquery_events_freebsd
)
else()
ADD_OSQUERY_CORE_LINK("udev")
ADD_OSQUERY_CORE_LIBRARY(osquery_events_linux
linux/inotify.cpp
linux/udev.cpp
)
endif()
ADD_OSQUERY_CORE_LIBRARY(osquery_events
events.cpp
)
ADD_OSQUERY_TEST(events_tests events_tests.cpp)
ADD_OSQUERY_TEST(events_database_tests events_database_tests.cpp)
if(APPLE)
ADD_OSQUERY_TEST(fsevents_tests darwin/fsevents_tests.cpp)
elseif(LINUX)
ADD_OSQUERY_TEST(inotify_tests linux/inotify_tests.cpp)
endif()