-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fltk] Fix link to system libs (#17094)
* [fltk] Fix link to system libs * update version record
- Loading branch information
Showing
6 changed files
with
43 additions
and
13 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
diff --git a/CMake/macros.cmake b/CMake/macros.cmake | ||
index 0c2586f..eb77510 100644 | ||
--- a/CMake/macros.cmake | ||
+++ b/CMake/macros.cmake | ||
@@ -37,6 +37,13 @@ macro(FL_ADD_LIBRARY LIBNAME LIBTYPE LIBFILES) | ||
add_library(${LIBRARY_NAME} ${LIBTYPE} ${LIBFILES}) | ||
|
||
target_include_directories(${LIBRARY_NAME} PUBLIC $<INSTALL_INTERFACE:include>) | ||
+ | ||
+ if (APPLE) | ||
+ find_library(Cocoa Cocoa) | ||
+ target_link_libraries(${LIBRARY_NAME} PUBLIC $<$<PLATFORM_ID:Darwin>:${Cocoa}>) | ||
+ elseif (WIN32) | ||
+ target_link_libraries(${LIBRARY_NAME} PUBLIC gdi32 gdiplus user32 advapi32 ole32 shell32 comdlg32) | ||
+ endif() | ||
|
||
set_target_properties(${LIBRARY_NAME} | ||
PROPERTIES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "fltk", | ||
"version": "1.3.5", | ||
"port-version": 4, | ||
"description": "FLTK (pronounced fulltick) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. FLTK provides modern GUI functionality without the bloat and supports 3D graphics via OpenGL and its built-in GLUT emulation.", | ||
"homepage": "https://www.fltk.org/", | ||
"dependencies": [ | ||
"libjpeg-turbo", | ||
"libpng", | ||
"zlib" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters