osquery-1/CMake/FindCppNetlib.cmake
Teddy Reed a105924804 Move specs to a top-level path, add query examples
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.
2015-06-03 10:39:05 -07:00

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