osquery-1/osquery/config/CMakeLists.txt
2015-05-21 20:32:45 -07:00

32 lines
662 B
CMake

ADD_OSQUERY_LIBRARY(TRUE osquery_config
config.cpp
)
set(OSQUERY_CONFIG_PLUGINS
plugins/filesystem.cpp
update.cpp
)
if(NOT OSQUERY_BUILD_RELEASE)
set(OSQUERY_CONFIG_PLUGINS
${OSQUERY_CONFIG_PLUGINS}
plugins/tls.cpp
)
endif()
file(GLOB OSQUERY_CONFIG_PARSERS "parsers/*.cpp")
ADD_OSQUERY_LIBRARY(FALSE osquery_config_plugins
${OSQUERY_CONFIG_PLUGINS}
)
ADD_OSQUERY_LIBRARY(FALSE osquery_config_parsers
${OSQUERY_CONFIG_PARSERS}
)
file(GLOB OSQUERY_CONFIG_TESTS "tests/*.cpp")
ADD_OSQUERY_TEST(FALSE ${OSQUERY_CONFIG_TESTS})
file(GLOB OSQUERY_CONFIG_PLUGIN_TESTS "*/tests/*.cpp")
ADD_OSQUERY_TEST(FALSE ${OSQUERY_CONFIG_PLUGIN_TESTS})