osquery-1/osquery/process/CMakeLists.txt
seph 29f4694df2
Update copyright notices (#6589)
Bulk update copyright notices from Facebook to "The osquery authors"
2020-08-11 16:46:54 -04:00

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