mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-06 17:45:22 +00:00
29f4694df2
Bulk update copyright notices from Facebook to "The osquery authors"
53 lines
1.2 KiB
CMake
53 lines
1.2 KiB
CMake
# Copyright (c) 2014-present, The osquery authors
|
|
#
|
|
# This source code is licensed as defined by the LICENSE file found in the
|
|
# root directory of this source tree.
|
|
#
|
|
# SPDX-License-Identifier: (Apache-2.0 OR GPL-2.0-only)
|
|
|
|
function(osqueryProcessMain)
|
|
generateOsqueryProcess()
|
|
endfunction()
|
|
|
|
function(generateOsqueryProcess)
|
|
if(DEFINED PLATFORM_POSIX)
|
|
set(source_files
|
|
posix/process.cpp
|
|
posix/process_ops.cpp
|
|
)
|
|
|
|
elseif(DEFINED PLATFORM_WINDOWS)
|
|
set(source_files
|
|
windows/process.cpp
|
|
windows/process_ops.cpp
|
|
)
|
|
endif()
|
|
|
|
add_osquery_library(osquery_process EXCLUDE_FROM_ALL
|
|
${source_files}
|
|
)
|
|
|
|
target_link_libraries(osquery_process PUBLIC
|
|
osquery_cxx_settings
|
|
osquery_core
|
|
osquery_utils_system_env
|
|
thirdparty_boost
|
|
)
|
|
|
|
set(public_header_files
|
|
process.h
|
|
)
|
|
|
|
generateIncludeNamespace(osquery_process "osquery/process" "FILE_ONLY" ${public_header_files})
|
|
|
|
if(DEFINED PLATFORM_WINDOWS)
|
|
set(platform_public_header_files
|
|
windows/process_ops.h
|
|
)
|
|
|
|
generateIncludeNamespace(osquery_process "osquery/process" "FULL_PATH" ${platform_public_header_files})
|
|
endif()
|
|
endfunction()
|
|
|
|
osqueryProcessMain()
|