diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2018-02-18 12:31:16 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2018-02-18 12:31:16 +0000 |
| commit | 6721ba67eb1a27da68c71d70b37dacc7a84ec06e (patch) | |
| tree | 4ea166eeb08036e1d4aa92da5cd98a90643f344c /CMake/export.cmake | |
| parent | 50f351e5a56253aa8e4da2f7d9be5c480d062d4e (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/export.cmake')
| -rw-r--r-- | CMake/export.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMake/export.cmake b/CMake/export.cmake index 7a7f94f89..a58a05553 100644 --- a/CMake/export.cmake +++ b/CMake/export.cmake @@ -71,6 +71,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}/fltk-config" |
