osquery-1/osquery/extensions/CMakeLists.txt

22 lines
581 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 --gen py:dense "${CMAKE_SOURCE_DIR}/osquery.thrift"
2015-02-04 03:55:16 +00:00
DEPENDS "${CMAKE_SOURCE_DIR}/osquery.thrift"
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/generated"
2015-05-12 06:31:13 +00:00
OUTPUT ${OSQUERY_THRIFT_GENERATED_FILES}
2015-02-04 03:55:16 +00:00
)
2015-10-08 14:22:48 +00:00
add_compile_options(
-Wno-macro-redefined
)
ADD_OSQUERY_LIBRARY(TRUE osquery_extensions
2015-02-04 03:55:16 +00:00
${OSQUERY_THRIFT_GENERATED_FILES}
extensions.cpp
2015-02-19 23:19:00 +00:00
interface.cpp
2015-02-04 03:55:16 +00:00
)
2015-04-27 09:12:58 +00:00
file(GLOB OSQUERY_EXTENSIONS_TESTS "tests/*.cpp")
ADD_OSQUERY_TEST(TRUE ${OSQUERY_EXTENSIONS_TESTS})