mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-08 02:18:53 +00:00
39 lines
788 B
CMake
39 lines
788 B
CMake
if(APPLE)
|
|
set (OS_CORE_SOURCE darwin/test_util.cpp darwin/test_util.h)
|
|
else()
|
|
set (OS_CORE_SOURCE "")
|
|
endif()
|
|
|
|
ADD_LIBRARY(osquery_core OBJECT
|
|
../core.h
|
|
md5.h
|
|
init_osquery.cpp
|
|
sqlite_util.h
|
|
sqlite_util.cpp
|
|
system.cpp
|
|
test_util.h
|
|
test_util.cpp
|
|
${OS_CORE_SOURCE}
|
|
text.cpp
|
|
)
|
|
|
|
SET_OSQUERY_COMPILE(osquery_core)
|
|
|
|
ADD_OSQUERY_TEST(status_test status_tests.cpp "")
|
|
|
|
ADD_LIBRARY(osquery_testing_core
|
|
$<TARGET_OBJECTS:osquery_core>
|
|
$<TARGET_OBJECTS:osquery_database>
|
|
$<TARGET_OBJECTS:osquery_sqlite>
|
|
$<TARGET_OBJECTS:osquery_registry>
|
|
)
|
|
|
|
ADD_OSQUERY_TEST(sqlite_util_tests sqlite_util_tests.cpp
|
|
osquery_testing_core)
|
|
|
|
ADD_OSQUERY_TEST(test_util_tests test_util_tests.cpp
|
|
osquery_testing_core)
|
|
|
|
ADD_OSQUERY_TEST(text_tests text_tests.cpp
|
|
osquery_testing_core)
|