Skip to content

Commit

Permalink
copy fltk-config to target dir
Browse files Browse the repository at this point in the history
  • Loading branch information
MoAlyousef committed Jan 11, 2025
1 parent 840b0f2 commit 23d59bc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,14 @@ else()
add_library(cfltk STATIC ${CFLTK_SRCS})
endif()

if(CFLTK_CARGO_BUILD AND (UNIX OR MSYS OR MINGW))
add_custom_command(
TARGET cfltk
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_INSTALL_PREFIX}/bin/fltk-config
"${CMAKE_INSTALL_PREFIX}/../../../../fltk-config")
endif()

target_compile_features(cfltk PRIVATE cxx_std_17)

if(USE_SYSTEM_FLTK)
Expand All @@ -129,7 +137,6 @@ else()
)
endif()


set(CFLTK_LIBS fltk)
set(pc_req_private)
set(pc_libs_private "-lfltk")
Expand Down

0 comments on commit 23d59bc

Please sign in to comment.