mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-08 02:18:53 +00:00
dcff476807
Use osquery-C flags for every object compile. Add CXX flags without conditional logic. Move the `python-thrift` target into the CPP generation command. Remove verbose option for extensions python unittest. Add thrift as a pip install requirement (for unittests).
17 lines
494 B
CMake
17 lines
494 B
CMake
# Generate the thrift intermediate/interface code.
|
|
add_custom_command(
|
|
COMMAND
|
|
${THRIFT_COMPILER} --gen cpp:dense --gen py:dense "${CMAKE_SOURCE_DIR}/osquery.thrift"
|
|
DEPENDS "${CMAKE_SOURCE_DIR}/osquery.thrift"
|
|
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/generated"
|
|
OUTPUT ${OSQUERY_THRIFT_GENERATED_FILES}
|
|
)
|
|
|
|
ADD_OSQUERY_LIBRARY(TRUE osquery_extensions
|
|
${OSQUERY_THRIFT_GENERATED_FILES}
|
|
extensions.cpp
|
|
interface.cpp
|
|
)
|
|
|
|
ADD_OSQUERY_TEST(TRUE extensions_test extensions_tests.cpp)
|