Skip to content

Commit

Permalink
Fix plugin test build
Browse files Browse the repository at this point in the history
Make sure the generated export header is found when building the
plugin tests. Seen when using this repo via FetchContent_Declare().
  • Loading branch information
frankosterfeld authored and wirew0rm committed Aug 24, 2023
1 parent b970f54 commit 3d52fbf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ install(
if (NOT EMSCRIPTEN)
set(CMAKE_BUILD_WITH_INSTALL_RPATH ON)
add_library(graph-prototype-plugin SHARED plugin.cpp)
target_include_directories(graph-prototype-plugin PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> $<INSTALL_INTERFACE:include/>)
target_include_directories(graph-prototype-plugin PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
target_include_directories(graph-prototype-plugin PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR};${CMAKE_CURRENT_BINARY_DIR}> $<INSTALL_INTERFACE:include/>)
target_link_libraries(graph-prototype-plugin PUBLIC graph-prototype graph-prototype-options pmtv fmt)

include(GenerateExportHeader)
Expand Down

0 comments on commit 3d52fbf

Please sign in to comment.