osquery-1/osquery/extensions/CMakeLists.txt

16 lines
463 B
CMake
Raw Normal View History

2015-02-04 03:55:16 +00:00
# Generate the thrift intermediate/interface code.
add_custom_command(
COMMAND
${THRIFT_COMPILER} --gen cpp: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
2015-02-04 03:55:16 +00:00
${OSQUERY_THRIFT_GENERATED_FILES}
extensions.cpp
2015-02-04 03:55:16 +00:00
)
ADD_OSQUERY_TEST(TRUE extensions_test extensions_tests.cpp)