osquery-1/osquery/config/CMakeLists.txt
2015-11-02 14:10:04 -08:00

26 lines
729 B
CMake

ADD_OSQUERY_LIBRARY(TRUE osquery_config
config.cpp
packs.cpp
)
file(GLOB OSQUERY_CONFIG_PLUGINS "plugins/*.cpp")
ADD_OSQUERY_LIBRARY(FALSE osquery_config_plugins
${OSQUERY_CONFIG_PLUGINS}
update.cpp
)
file(GLOB OSQUERY_CONFIG_PARSERS "parsers/*.cpp")
ADD_OSQUERY_LIBRARY(TRUE osquery_config_parsers
${OSQUERY_CONFIG_PARSERS}
)
file(GLOB OSQUERY_CONFIG_TESTS "tests/config_tests.cpp")
ADD_OSQUERY_TEST(TRUE ${OSQUERY_CONFIG_TESTS})
# The packs tests will attempt to execute SQL, they must be additional
file(GLOB OSQUERY_PACKS_TESTS "tests/packs_tests.cpp")
ADD_OSQUERY_TEST(FALSE ${OSQUERY_PACKS_TESTS})
file(GLOB OSQUERY_CONFIG_PLUGIN_TESTS "*/tests/*.cpp")
ADD_OSQUERY_TEST(FALSE ${OSQUERY_CONFIG_PLUGIN_TESTS})