Skip to content
Snippets Groups Projects
Commit 13675fd4 authored by Mederic Fourmy's avatar Mederic Fourmy
Browse files

fix cmake include pbe

parent 4e78cf51
No related branches found
No related tags found
1 merge request!39devel->main
...@@ -92,13 +92,9 @@ IF(EXISTS "${WOLF_CONFIG_DIR}" AND NOT IS_DIRECTORY "${WOLF_CONFIG_DIR}") ...@@ -92,13 +92,9 @@ IF(EXISTS "${WOLF_CONFIG_DIR}" AND NOT IS_DIRECTORY "${WOLF_CONFIG_DIR}")
message(FATAL_ERROR "Bug: Specified CONFIG_DIR: " message(FATAL_ERROR "Bug: Specified CONFIG_DIR: "
"${WOLF_CONFIG_DIR} exists, but is not a directory.") "${WOLF_CONFIG_DIR} exists, but is not a directory.")
ENDIF() ENDIF()
# Configure config.h # Configure config.h
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/internal/config.h.in "${WOLF_CONFIG_DIR}/config.h") configure_file(${CMAKE_CURRENT_SOURCE_DIR}/internal/config.h.in "${WOLF_CONFIG_DIR}/config.h")
message("CONFIG DIRECTORY ${PROJECT_BINARY_DIR}")
include_directories("${PROJECT_BINARY_DIR}/conf")
# ============ INCLUDES ============
INCLUDE_DIRECTORIES(BEFORE "include")
# ============ HEADERS ============ # ============ HEADERS ============
SET(HDRS_CAPTURE SET(HDRS_CAPTURE
...@@ -206,9 +202,9 @@ install( ...@@ -206,9 +202,9 @@ install(
${LIB_INSTALL_DIR}/${PLUGIN_NAME}/cmake ${LIB_INSTALL_DIR}/${PLUGIN_NAME}/cmake
) )
# Specifies include directories to use when compiling the plugin target target_include_directories(${PLUGIN_NAME} PUBLIC
# This way, include_directories does not need to be called in plugins depending on this one $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
target_include_directories(${PLUGIN_NAME} INTERFACE $<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/conf>
$<INSTALL_INTERFACE:${INCLUDE_INSTALL_DIR}> $<INSTALL_INTERFACE:${INCLUDE_INSTALL_DIR}>
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment