summaryrefslogtreecommitdiff
path: root/CMake/install.cmake
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2018-02-18 12:31:16 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2018-02-18 12:31:16 +0000
commit6721ba67eb1a27da68c71d70b37dacc7a84ec06e (patch)
tree4ea166eeb08036e1d4aa92da5cd98a90643f344c /CMake/install.cmake
parent50f351e5a56253aa8e4da2f7d9be5c480d062d4e (diff)
CMake: fix generated fltk-config for Windows (partially).
This makes 'fltk-config --compile' work with simple test applications like hello.cxx etc. It may not yet work with other options though, particularly with --use-gl or --use-images, but it's an improvement. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12676 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'CMake/install.cmake')
-rw-r--r--CMake/install.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMake/install.cmake b/CMake/install.cmake
index cb4f8fe71..cab36e9f2 100644
--- a/CMake/install.cmake
+++ b/CMake/install.cmake
@@ -84,6 +84,11 @@ set(srcdir ".")
set(LIBNAME "${libdir}/libfltk.a")
+if (WIN32)
+ set (LDFLAGS "-mwindows")
+ set (LIBS "-lole32 -luuid -lcomctl32")
+endif ()
+
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/fltk-config.in"
"${CMAKE_CURRENT_BINARY_DIR}/bin/fltk-config"