- attempt to add support for static use of wxwidgets in tools

This commit is contained in:
SoftCoder
2017-03-20 17:06:12 -07:00
parent 4425b7d234
commit bdfb05a700
6 changed files with 69 additions and 33 deletions

View File

@@ -40,7 +40,16 @@ IF(BUILD_MEGAGLEST_MODEL_VIEWER)
# It was noticed that when using MinGW gcc it is essential that 'core' is mentioned before 'base'.
# Optimal order most likely is gl > core > base, in some cases it may do difference.
IF(STATIC_wxWidgets)
SET(wxWidgets_USE_STATIC ON)
MESSAGE(STATUS "==========> wxWidgets wanting STATIC libs.")
ENDIF()
FIND_PACKAGE(wxWidgets REQUIRED COMPONENTS gl core base)
IF(wxWidgets_USE_STATIC)
MESSAGE(STATUS "==========> wxWidgets using STATIC libs: ${wxWidgets_LIBRARIES}")
ELSE()
MESSAGE(STATUS "==========> wxWidgets NOT using STATIC libs: ${wxWidgets_LIBRARIES}")
ENDIF()
IF(UNIX)
# wxWidgets include (this will do all the magic to configure everything)
INCLUDE( ${wxWidgets_USE_FILE} )