mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-08 02:18:53 +00:00
63c0258aec
Added Windows support for process operations. Added unit tests for process abstraction code for POSIX and Windows. Modified CMake config files to support building the new code and unit tests.
29 lines
497 B
CMake
29 lines
497 B
CMake
if(WIN32)
|
|
set(PROCESS_FAMILY "windows")
|
|
else()
|
|
set(PROCESS_FAMILY "posix")
|
|
endif()
|
|
file(GLOB OS_CORE_SOURCE "${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
|
|
hash.cpp
|
|
watcher.cpp
|
|
process_shared.cpp
|
|
)
|
|
|
|
file(GLOB OSQUERY_CORE_TESTS "tests/*.cpp")
|
|
ADD_OSQUERY_TEST(TRUE ${OSQUERY_CORE_TESTS})
|