osquery-1/osquery/core/CMakeLists.txt

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})