2015-02-04 03:55:16 +00:00
|
|
|
# Generate the thrift intermediate/interface code.
|
|
|
|
add_custom_command(
|
|
|
|
COMMAND
|
2015-03-02 02:32:02 +00:00
|
|
|
${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
|
|
|
|
)
|
|
|
|
|
2015-02-05 00:54:44 +00:00
|
|
|
ADD_OSQUERY_LIBRARY(TRUE osquery_extensions
|
2015-02-04 03:55:16 +00:00
|
|
|
${OSQUERY_THRIFT_GENERATED_FILES}
|
2015-02-05 00:54:44 +00:00
|
|
|
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})
|