diff options
Diffstat (limited to 'Modules/FindwxWindows.cmake')
-rw-r--r-- | Modules/FindwxWindows.cmake | 119 |
1 files changed, 69 insertions, 50 deletions
diff --git a/Modules/FindwxWindows.cmake b/Modules/FindwxWindows.cmake index 868d20c73..76eb6be47 100644 --- a/Modules/FindwxWindows.cmake +++ b/Modules/FindwxWindows.cmake @@ -1,65 +1,84 @@ -# - Find wxWindows (wxWidgets) installation -# This module finds if wxWindows/wxWidgets is installed and determines where -# the include files and libraries are. It also determines what the name of -# the library is. -# Please note this file is DEPRECATED and replaced by FindwxWidgets.cmake. -# This code sets the following variables: -# -# WXWINDOWS_FOUND = system has WxWindows -# WXWINDOWS_LIBRARIES = path to the wxWindows libraries -# on Unix/Linux with additional -# linker flags from -# "wx-config --libs" -# CMAKE_WXWINDOWS_CXX_FLAGS = Compiler flags for wxWindows, -# essentially "`wx-config --cxxflags`" -# on Linux -# WXWINDOWS_INCLUDE_DIR = where to find "wx/wx.h" and "wx/setup.h" -# WXWINDOWS_LINK_DIRECTORIES = link directories, useful for rpath on -# Unix -# WXWINDOWS_DEFINITIONS = extra defines -# -# OPTIONS -# If you need OpenGL support please -# set(WXWINDOWS_USE_GL 1) +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +#.rst: +# FindwxWindows +# ------------- +# +# Find wxWindows (wxWidgets) installation +# +# This module finds if wxWindows/wxWidgets is installed and determines +# where the include files and libraries are. It also determines what +# the name of the library is. Please note this file is DEPRECATED and +# replaced by FindwxWidgets.cmake. This code sets the following +# variables: +# +# :: +# +# WXWINDOWS_FOUND = system has WxWindows +# WXWINDOWS_LIBRARIES = path to the wxWindows libraries +# on Unix/Linux with additional +# linker flags from +# "wx-config --libs" +# CMAKE_WXWINDOWS_CXX_FLAGS = Compiler flags for wxWindows, +# essentially "`wx-config --cxxflags`" +# on Linux +# WXWINDOWS_INCLUDE_DIR = where to find "wx/wx.h" and "wx/setup.h" +# WXWINDOWS_LINK_DIRECTORIES = link directories, useful for rpath on +# Unix +# WXWINDOWS_DEFINITIONS = extra defines +# +# +# +# OPTIONS If you need OpenGL support please +# +# :: +# +# set(WXWINDOWS_USE_GL 1) +# # in your CMakeLists.txt *before* you include this file. # -# HAVE_ISYSTEM - true required to replace -I by -isystem on g++ +# :: +# +# HAVE_ISYSTEM - true required to replace -I by -isystem on g++ +# +# # # For convenience include Use_wxWindows.cmake in your project's -# CMakeLists.txt using include(${CMAKE_CURRENT_LIST_DIR}/Use_wxWindows.cmake). +# CMakeLists.txt using +# include(${CMAKE_CURRENT_LIST_DIR}/Use_wxWindows.cmake). # # USAGE -# set(WXWINDOWS_USE_GL 1) -# find_package(wxWindows) # -# NOTES -# wxWidgets 2.6.x is supported for monolithic builds -# e.g. compiled in wx/build/msw dir as: -# nmake -f makefile.vc BUILD=debug SHARED=0 USE_OPENGL=1 MONOLITHIC=1 +# :: +# +# set(WXWINDOWS_USE_GL 1) +# find_package(wxWindows) +# +# +# +# NOTES wxWidgets 2.6.x is supported for monolithic builds e.g. +# compiled in wx/build/msw dir as: +# +# :: +# +# nmake -f makefile.vc BUILD=debug SHARED=0 USE_OPENGL=1 MONOLITHIC=1 +# +# # # DEPRECATED # -# CMAKE_WX_CAN_COMPILE -# WXWINDOWS_LIBRARY -# CMAKE_WX_CXX_FLAGS -# WXWINDOWS_INCLUDE_PATH +# :: +# +# CMAKE_WX_CAN_COMPILE +# WXWINDOWS_LIBRARY +# CMAKE_WX_CXX_FLAGS +# WXWINDOWS_INCLUDE_PATH # -# AUTHOR -# Jan Woetzel <http://www.mip.informatik.uni-kiel.de/~jw> (07/2003-01/2006) - -#============================================================================= -# Copyright 2000-2009 Kitware, Inc. -# Copyright 2003-2006 Jan Woetzel # -# Distributed under the OSI-approved BSD License (the "License"); -# see accompanying file Copyright.txt for details. # -# This software is distributed WITHOUT ANY WARRANTY; without even the -# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# See the License for more information. -#============================================================================= -# (To distribute this file outside of CMake, substitute the full -# License text for the above reference.) +# AUTHOR Jan Woetzel <http://www.mip.informatik.uni-kiel.de/~jw> +# (07/2003-01/2006) # ------------------------------------------------------------------ # @@ -620,7 +639,7 @@ else() # do we need additionial wx GL stuff like GLCanvas ? if(WXWINDOWS_USE_GL) - set(WX_CONFIG_ARGS_LIBS "${WX_CONFIG_ARGS_LIBS} --gl-libs" ) + string(APPEND WX_CONFIG_ARGS_LIBS " --gl-libs" ) endif() ##message("DBG: WX_CONFIG_ARGS_LIBS=${WX_CONFIG_ARGS_LIBS}===") |