osquery-1/osquery/config/CMakeLists.txt
2015-05-13 13:55:01 -07:00

29 lines
611 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/http.cpp
)
endif()
file(GLOB OSQUERY_CONFIG_PARSERS "parsers/*.cpp")
ADD_OSQUERY_LIBRARY(FALSE osquery_config_plugins
${OSQUERY_CONFIG_PLUGINS}
${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})