enable qt5 support if qt5core.lib is found
This commit is contained in:
committed by
wmayer
parent
893e76fa76
commit
370606912a
@@ -177,7 +177,17 @@ if(MSVC)
|
||||
OPTION(FREECAD_RELEASE_SEH "Enable Structured Exception Handling for Release version." ON)
|
||||
OPTION(FREECAD_LIBPACK_USE "Use the LibPack to Build FreeCAD (only Win32 so far)." ON)
|
||||
OPTION(FREECAD_LIBPACK_USEPYSIDE "Use PySide in LibPack rather to PyQt and Swig." ON)
|
||||
set(FREECAD_LIBPACK_DIR ${CMAKE_SOURCE_DIR} CACHE PATH "Directory of the FreeCAD LibPack")
|
||||
IF(DEFINED ENV{FREECAD_LIBPACK_DIR})
|
||||
set(FREECAD_LIBPACK_DIR $ENV{FREECAD_LIBPACK_DIR} CACHE PATH "Directory of the FreeCAD LibPack")
|
||||
MESSAGE(STATUS "Found libpack env variable: ${FREECAD_LIBPACK_DIR}")
|
||||
IF(EXISTS ${FREECAD_LIBPACK_DIR}/lib/Qt5Core.lib)
|
||||
OPTION(BUILD_QT5 "Build with Qt5." ON)
|
||||
ELSE()
|
||||
OPTION(BUILD_QT5 "Build with Qt5." OFF)
|
||||
ENDIF()
|
||||
ELSE()
|
||||
set(FREECAD_LIBPACK_DIR ${CMAKE_SOURCE_DIR} CACHE PATH "Directory of the FreeCAD LibPack")
|
||||
ENDIF()
|
||||
OPTION(BUILD_USE_PCH "Activate precompiled headers where it's used." ON)
|
||||
else(MSVC)
|
||||
OPTION(FREECAD_LIBPACK_USE "Use the LibPack to Build FreeCAD (only Win32 so far)." OFF)
|
||||
|
||||
Reference in New Issue
Block a user