Resolve "Add option to compile out LTTng entirely"
This commit is contained in:
parent
9d3ed4aa6b
commit
7b15e17cd2
6 changed files with 74 additions and 28 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue