Resolve "Add option to compile out LTTng entirely"

This commit is contained in:
Ingo Lütkebohle 2019-07-30 14:27:36 +00:00 committed by Christophe Bedard
parent 9d3ed4aa6b
commit 7b15e17cd2
6 changed files with 74 additions and 28 deletions

View file

@ -25,7 +25,11 @@ if(NOT TRACETOOLS_DISABLED)
endif()
endif()
include_directories(include)
# store configuration variables for runtime use
configure_file(include/${PROJECT_NAME}/config.h.in include/${PROJECT_NAME}/config.h)
# add both source and output include, to capture config.h
include_directories(include ${PROJECT_BINARY_DIR}/include)
# Status checking tool
add_executable(status
@ -66,6 +70,10 @@ install(
DIRECTORY include/
DESTINATION include
)
install(
FILES ${PROJECT_BINARY_DIR}/include/${PROJECT_NAME}/config.h
DESTINATION include/${PROJECT_NAME}
)
install(
TARGETS ${PROJECT_NAME}
EXPORT ${PROJECT_NAME}_export