Starting CMake config to blend out filechoose and filename handling (shrins fltk massively if not needed)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11146 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
a679616477
commit
572b7fe0b8
@ -79,6 +79,7 @@ option(OPTION_BUILD_SHARED_LIBS
|
||||
#######################################################################
|
||||
option(OPTION_BUILD_EXAMPLES "build example programs" ON)
|
||||
option(OPTION_PRINT_SUPPORT "allow print support" ON)
|
||||
option(OPTION_FILESYSTEM_SUPPORT "allow file system support" ON)
|
||||
|
||||
#######################################################################
|
||||
if(DOXYGEN_FOUND)
|
||||
@ -362,6 +363,13 @@ if(X11_FOUND AND NOT OPTION_PRINT_SUPPORT)
|
||||
endif(X11_FOUND AND NOT OPTION_PRINT_SUPPORT)
|
||||
#######################################################################
|
||||
|
||||
#######################################################################
|
||||
set(FL_CFG_FILESYSTEM_SUPPORT FALSE)
|
||||
if(OPTION_FILESYSTEM_SUPPORT)
|
||||
set(FL_CFG_FILESYSTEM_SUPPORT TRUE)
|
||||
endif(OPTION_FILESYSTEM_SUPPORT)
|
||||
#######################################################################
|
||||
|
||||
#######################################################################
|
||||
# prior to CMake 3.0 this feature was buggy
|
||||
if(NOT CMAKE_VERSION VERSION_LESS 3.0.0)
|
||||
|
@ -342,6 +342,12 @@
|
||||
|
||||
#cmakedefine NO_PRINT_SUPPORT 1
|
||||
|
||||
/*
|
||||
* Do we want filename handling and a filechooser?
|
||||
*/
|
||||
|
||||
#cmakedefine FL_CFG_FILESYSTEM_SUPPORT 1
|
||||
|
||||
/*
|
||||
* End of "$Id$".
|
||||
*/
|
||||
|
@ -395,7 +395,7 @@ endif(OPTION_USE_SYSTEM_LIBPNG)
|
||||
|
||||
#######################################################################
|
||||
if(OPENGL_FOUND)
|
||||
FL_ADD_LIBRARY(fltk_gl STATIC "${GLCPPFILES}";${GL_HEADER_FILE};${GL_DRIVER_HEADER_FILES})
|
||||
FL_ADD_LIBRARY(fltk_gl STATIC "${GLCPPFILES};${GL_HEADER_FILE};${GL_DRIVER_HEADER_FILES}")
|
||||
target_link_libraries(fltk_gl fltk ${OPENGL_LIBRARIES})
|
||||
endif(OPENGL_FOUND)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user