mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-08 10:23:54 +00:00
a105924804
1. Example queries will run with an (optional) integration test. 2. Fix bad accesses with OS X package BOMs 3. Move spec files from ./osquery/tables/specs to ./specs 4. Remove server parsers (netlib) from client builds.
20 lines
782 B
CMake
20 lines
782 B
CMake
set(CPP-NETLIB_SOURCE_DIR "${CMAKE_SOURCE_DIR}/third-party/cpp-netlib")
|
|
set(CPP-NETLIB_BUILD_DIR "${CMAKE_BINARY_DIR}/third-party/cpp-netlib")
|
|
|
|
# Only build the cpp-netlib shared library.
|
|
set(CPP-NETLIB_BUILD_TESTS OFF CACHE BOOL "")
|
|
set(CPP-NETLIB_BUILD_EXAMPLES OFF CACHE BOOL "")
|
|
set(CPP-NETLIB_BUILD_SHARED_LIBS OFF CACHE BOOL "")
|
|
|
|
include_directories("${CPP-NETLIB_SOURCE_DIR}")
|
|
add_subdirectory("${CPP-NETLIB_SOURCE_DIR}")
|
|
|
|
set(CPP-NETLIB_LINK_DIR "${CPP-NETLIB_BUILD_DIR}/libs/network/src")
|
|
set(CPP-NETLIB_LIBRARY
|
|
"${CPP-NETLIB_LINK_DIR}/libcppnetlib-uri.a"
|
|
"${CPP-NETLIB_LINK_DIR}/libcppnetlib-client-connections.a"
|
|
)
|
|
|
|
LOG_LIBRARY(cpp-netlib "${CPP-NETLIB_LINK_DIR}/libcppnetlib-uri.a")
|
|
LOG_LIBRARY(cpp-netlib "${CPP-NETLIB_LINK_DIR}/libcppnetlib-client-connections.a")
|