mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-08 18:33:54 +00:00
26 lines
777 B
CMake
26 lines
777 B
CMake
# Copyright (c) 2014-present, Facebook, Inc.
|
|
# All rights reserved.
|
|
#
|
|
# This source code is licensed under the BSD-style license found in the
|
|
# LICENSE file in the root directory of this source tree. An additional grant
|
|
# of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
file(GLOB OSQUERY_CORE_PLATFORM "${PROCESS_FAMILY}/*.cpp")
|
|
file(GLOB OSQUERY_CORE_PLATFORM_TESTS "tests/${PROCESS_FAMILY}/*.cpp")
|
|
|
|
if(APPLE)
|
|
set(OSQUERY_CORE_PLATFORM
|
|
${OSQUERY_CORE_PLATFORM}
|
|
darwin/conversions.cpp
|
|
)
|
|
endif()
|
|
|
|
file(GLOB OSQUERY_CORE "*.cpp")
|
|
ADD_OSQUERY_LIBRARY(TRUE osquery_core
|
|
${OSQUERY_CORE_PLATFORM}
|
|
${OSQUERY_CORE}
|
|
)
|
|
|
|
file(GLOB OSQUERY_CORE_TESTS "tests/*.cpp")
|
|
ADD_OSQUERY_TEST(TRUE ${OSQUERY_CORE_TESTS} ${OSQUERY_CORE_PLATFORM_TESTS})
|