root/trunk/FRII/CMakeLists.txt

Revision 142, 445 bytes (checked in by diane, 7 years ago)

So CMake's FindFLTK only looks for FL/Fl.h and FLTK decided that
they like .H better, so it couldn't find FLTK. I replaced the
check with a simpler search for the header file.

My current solution doesn't provide a good way of allowing the user
to specify the location of FLTK.

Reported to Kitware as:
http://www.cmake.org/Bug/bug.php?op=show&bugid=4424

Line 
1 Project(FRII)
2
3 # STUPID FindFLTK.cmake in version 2.4.2 looks for
4 # FL/Fl.h on my unix box while FLTK has the headers installed as
5 # FL/Fl.H
6 FIND_PATH(FLTK_INCLUDE_DIR
7           NAMES FL/Fl.H
8           PATHS
9             /usr
10             /usr/local
11 )
12
13 IF (FLTK_INCLUDE_DIR)
14   SET(FLTK_FOUND 1)
15 ENDIF (FLTK_INCLUDE_DIR)
16
17 if (FLTK_FOUND)
18   subdirs(gui ext cartwheel-interface app)
19 else (FLTK_FOUND)
20   message (STATUS "FLTK not found, not building FRII")
21 endif (FLTK_FOUND)
Note: See TracBrowser for help on using the browser.