mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 01:55:20 +00:00
d6a2f2f1df
Some IDE require that the headers are assigned to a target, so they know which TU uses them and also that they are part of the project. The option ADD_HEADERS_AS_SOURCES has been added, if it's ON, we assign those headers as INTERFACE sources of the target that publish them.
25 lines
1.1 KiB
CMake
25 lines
1.1 KiB
CMake
# Copyright (c) 2014-present, Facebook, Inc.
|
|
# All rights reserved.
|
|
#
|
|
# This source code is licensed in accordance with the terms specified in
|
|
# the LICENSE file found in the root directory of this source tree.
|
|
|
|
# Always generate the compile_commands.json file
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS true)
|
|
|
|
# Show verbose compilation messages when building Debug binaries
|
|
if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
|
|
set(CMAKE_VERBOSE_MAKEFILE true)
|
|
endif()
|
|
|
|
# This may be useful to speed up development builds
|
|
option(BUILD_SHARED_LIBS "Whether to build shared libraries (like *.dll or *.so) or static ones (like *.a)" ${BUILD_SHARED_LIBS_DEFAULT_VALUE})
|
|
|
|
option(ADD_HEADERS_AS_SOURCES "Whether to add headers as sources of a target or not. This is needed for some IDEs which wouldn't detect headers properly otherwise")
|
|
|
|
# This is the default S3 storage used by Facebook to store 3rd party dependencies; it
|
|
# is provided here as a configuration option
|
|
if("${THIRD_PARTY_REPOSITORY_URL}" STREQUAL "")
|
|
set(THIRD_PARTY_REPOSITORY_URL "https://s3.amazonaws.com/osquery-packages")
|
|
endif()
|