Skip to content

Commit

Permalink
use FLTK's include directories
Browse files Browse the repository at this point in the history
  • Loading branch information
MoAlyousef committed Feb 8, 2025
1 parent 40eb324 commit eb28cf8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,16 @@ endif()

target_compile_features(cfltk PRIVATE cxx_std_17)

get_target_property(FLTK_INCLUDES fltk::fltk INCLUDE_DIRECTORIES)

if(USE_SYSTEM_FLTK)
target_include_directories(
cfltk
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include/cfltk>
${FLTK_INCLUDE_DIRS}
${FLTK_INCLUDES}
)
else()
target_include_directories(
Expand All @@ -134,6 +137,7 @@ else()
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/fltk
${CMAKE_CURRENT_BINARY_DIR}/fltk
${FLTK_INCLUDES}
)
endif()

Expand Down

0 comments on commit eb28cf8

Please sign in to comment.