Skip to content

Commit

Permalink
cmake: add missing interface include path for shared library builds
Browse files Browse the repository at this point in the history
Co-authored-by: Monica <[email protected]>
  • Loading branch information
MonicaLiu0311 and Monica authored Jan 6, 2025
1 parent 67b0c9a commit d6acaaa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ IF (BUILD_SHARED_LIBS)
OUTPUT_NAME ${LIBRARY_DYN_NAME} CLEAN_DIRECT_OUTPUT 1
)

TARGET_INCLUDE_DIRECTORIES(libwildmidi INTERFACE
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
)

IF (WIN32)
SET_TARGET_PROPERTIES(libwildmidi PROPERTIES
DEFINE_SYMBOL DLL_EXPORT
Expand Down

0 comments on commit d6acaaa

Please sign in to comment.