osquery-1/osquery/logger/CMakeLists.txt
2016-08-15 16:07:51 -07:00

25 lines
1.0 KiB
CMake

file(GLOB OSQUERY_LOGGER "*.cpp")
ADD_OSQUERY_LIBRARY(TRUE osquery_logger ${OSQUERY_LOGGER})
if(WINDOWS)
file(GLOB OSQUERY_LOGGER_PLUGINS "plugins/filesystem.cpp")
file(GLOB OSQUERY_LOGGER_PLUGIN_TESTS "plugins/tests/filesystem_logger_tests.cpp")
else()
file(GLOB OSQUERY_LOGGER_PLUGINS "plugins/*.cpp")
file(GLOB OSQUERY_LOGGER_PLUGIN_TESTS "plugins/tests/*.cpp")
ADD_OSQUERY_LINK_ADDITIONAL("aws-cpp-sdk-kinesis")
ADD_OSQUERY_LINK_ADDITIONAL("aws-cpp-sdk-firehose")
ADD_OSQUERY_LINK_ADDITIONAL("aws-cpp-sdk-sts")
ADD_OSQUERY_LINK_ADDITIONAL("aws-cpp-sdk-core")
endif()
ADD_OSQUERY_LIBRARY(FALSE osquery_logger_plugins ${OSQUERY_LOGGER_PLUGINS})
file(GLOB OSQUERY_LOGGER_TESTS "tests/*.cpp")
ADD_OSQUERY_TEST(TRUE ${OSQUERY_LOGGER_TESTS})
# Keep the logger testing in the additional to test filesystem logging.
# There is a significant difference between the Glog-backed filesystem plugin
# and other, which use a Glog sink. They must be tested in tandem.
ADD_OSQUERY_TEST(FALSE ${OSQUERY_LOGGER_PLUGIN_TESTS})