[Insight-developers] FYI: InsightApplication builds against latest versions of fltk

Hans Johnson hans-johnson at uiowa.edu
Sat Nov 12 15:11:55 EST 2005


Julien,

I would be happy to send you the changes (simple svn diff is at bottom of
the page).  

I am attempting to build against an installed version of FLTK (i.e. Not from
the FLTK_BINARY_DIR, but rather from the CMAKE_INSTALL_PREFIX location).

Regards,
Hans

@@ -403,7 +410,13 @@
 CONFIGURE_FILE("${FLTK_SOURCE_DIR}/fltk-config.in"
   "${FLTK_BINARY_DIR}/CMake/fltk-config" @ONLY IMMEDIATE)
 
-INSTALL_FILES(/include/FL FILES ${FLTK_HEADER_FILES})
+##NOTE: There are 4 copies of each header file needed to maintain backwards
+##      compatibility to pre 1.1.7 versions of FLTK.  Copies of .h and .H
+##      for each file must be made, and then in both FL and Fl directories.
+FILE(GLOB FLTK_INSTALL_HEADER_FILES "${FLTK_BINARY_DIR}/FL/*.[hHr]")
+INSTALL_FILES(/include/FL FILES ${FLTK_INSTALL_HEADER_FILES})
+INSTALL_FILES(/include/Fl FILES ${FLTK_INSTALL_HEADER_FILES})
+
 INSTALL_FILES(/lib/FLTK-${FLTK_VERSION} FILES
"${FLTK_SOURCE_DIR}/CMake/FLTKUse.cmake")
 INSTALL_FILES(/lib/FLTK-${FLTK_VERSION} FILES
"${FLTK_BINARY_DIR}/FLTKBuildSettings.cmake")
 INSTALL_FILES(/lib/FLTK-${FLTK_VERSION} FILES
"${FLTK_BINARY_DIR}/FLTKLibraryDepends.cmake")

PS:
I also am also working on some other patches to allow an X11 build of FLTK
on the mac (currently __APPLE__ implies that X11 is not available and you
must choose between QuickDraw or Quartz.  I have a working X11 version by
replacing "#if defined(__APPLE__)" with "#if !defined(_APPLE_X11_) &&
defined(__APPLE__)" ).





On 11/12/05 12:37 PM, "Julien Jomier" <jjomier at cs.unc.edu> wrote:

> working on these CMakeLists.txt files for quite a
> bit now. The FLTK cmake is creating the correct header files in the
> binary directory (using symbolic links),




More information about the Insight-developers mailing list