1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
set(HTTP_TEST_SLOTS_HEADERS
"${CMAKE_CURRENT_BINARY_DIR}/http-test-slots-grammar.h"
"http-test-slots-parser.h"
"http-test-slots.h"
)
set(HTTP_TEST_SLOTS_SOURCES
"${CMAKE_CURRENT_BINARY_DIR}/http-test-slots-grammar.c"
"http-test-slots-parser.c"
"http-test-slots.c"
)
generate_y_from_ym(modules/examples/inner-destinations/http-test-slots/http-test-slots-grammar)
bison_target(HttpTestSlotsGrammar
${CMAKE_CURRENT_BINARY_DIR}/http-test-slots-grammar.y
${CMAKE_CURRENT_BINARY_DIR}/http-test-slots-grammar.c
COMPILE_FLAGS ${BISON_FLAGS})
set_source_files_properties(
${CMAKE_CURRENT_BINARY_DIR}/http-test-slots-grammar.c
PROPERTIES
COMPILE_FLAGS ${BISON_BUILT_SOURCE_CFLAGS}
)
add_library(http-test-slots STATIC ${HTTP_TEST_SLOTS_SOURCES})
target_include_directories(http-test-slots
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
PRIVATE ${CMAKE_CURRENT_BINARY_DIR}
PUBLIC ${PROJECT_SOURCE_DIR}
)
target_link_libraries(http-test-slots PUBLIC syslog-ng)
|