osquery-1/osquery/core/CMakeLists.txt
2017-01-07 12:21:35 -08:00

23 lines
466 B
CMake

file(GLOB OS_CORE_SOURCE "${PROCESS_FAMILY}/*.cpp")
file(GLOB OS_CORE_TESTS_SOURCE "tests/${PROCESS_FAMILY}/*.cpp")
if(APPLE)
set (OS_CORE_SOURCE
${OS_CORE_SOURCE}
darwin/conversions.cpp
)
endif()
ADD_OSQUERY_LIBRARY(TRUE osquery_core
conversions.cpp
init.cpp
system.cpp
${OS_CORE_SOURCE}
tables.cpp
flags.cpp
watcher.cpp
)
file(GLOB OSQUERY_CORE_TESTS "tests/*.cpp")
ADD_OSQUERY_TEST(TRUE ${OSQUERY_CORE_TESTS} ${OS_CORE_TESTS_SOURCE})