Commit 93a81850 authored by Martin Schultz's avatar Martin Schultz
Browse files

added default search path for Qt on OSX to find Qt distributions from our...

added default search path for Qt on OSX to find Qt distributions from our repository if cloned to ~/sw
parent a2e93c36
......@@ -28,9 +28,13 @@ macro (acg_qt5)
set (QT5_INSTALL_PATH_EXISTS TRUE)
endif()
find_package (Qt5Core QUIET)
#default search paths for OS X
set(QT_DEFAULT_PATH ~/sw/Qt/5.9/clang_64
~/sw/Qt/5.8/clang_64
~/sw/Qt/5.7/clang_64
~/sw/Qt/5.6/clang_64
)
find_package (Qt5Core QUIET PATHS ${QT_DEFAULT_PATH})
if(Qt5Core_FOUND)
if(Qt5Core_VERSION) # use the new version variable if it is set
set(Qt5Core_VERSION_STRING ${Qt5Core_VERSION})
......@@ -55,41 +59,41 @@ macro (acg_qt5)
#do noot look for Webkit and qt declarative on qt version 5.6 or newer
if(${QT_VERSION_MINOR} GREATER 5)
find_package (Qt5Widgets QUIET)
find_package (Qt5Gui QUIET)
find_package (Qt5OpenGL QUIET)
find_package (Qt5Network QUIET)
find_package (Qt5Script QUIET)
find_package (Qt5ScriptTools QUIET)
find_package (Qt5Sql QUIET)
find_package (Qt5Xml QUIET)
find_package (Qt5XmlPatterns QUIET)
find_package (Qt5Help QUIET)
find_package (Qt5UiTools QUIET)
find_package (Qt5Concurrent QUIET)
find_package (Qt5PrintSupport QUIET)
find_package (Qt5Svg QUIET)
find_package (Qt5Widgets QUIET PATHS ${QT_DEFAULT_PATH})
find_package (Qt5Gui QUIET PATHS ${QT_DEFAULT_PATH})
find_package (Qt5OpenGL QUIET PATHS ${QT_DEFAULT_PATH})
find_package (Qt5Network QUIET PATHS ${QT_DEFAULT_PATH})
find_package (Qt5Script QUIET PATHS ${QT_DEFAULT_PATH})
find_package (Qt5ScriptTools QUIET PATHS ${QT_DEFAULT_PATH})
find_package (Qt5Sql QUIET PATHS ${QT_DEFAULT_PATH})
find_package (Qt5Xml QUIET PATHS ${QT_DEFAULT_PATH})
find_package (Qt5XmlPatterns QUIET PATHS ${QT_DEFAULT_PATH})
find_package (Qt5Help QUIET PATHS ${QT_DEFAULT_PATH})
find_package (Qt5UiTools QUIET PATHS ${QT_DEFAULT_PATH})
find_package (Qt5Concurrent QUIET PATHS ${QT_DEFAULT_PATH})
find_package (Qt5PrintSupport QUIET PATHS ${QT_DEFAULT_PATH})
find_package (Qt5Svg QUIET PATHS ${QT_DEFAULT_PATH})
else(${QT_VERSION_MINOR} GREATER 5)
find_package (Qt5Declarative QUIET)
find_package (Qt5Widgets QUIET)
find_package (Qt5Gui QUIET)
find_package (Qt5OpenGL QUIET)
find_package (Qt5Network QUIET)
find_package (Qt5Script QUIET)
find_package (Qt5ScriptTools QUIET)
find_package (Qt5Sql QUIET)
find_package (Qt5Xml QUIET)
find_package (Qt5XmlPatterns QUIET)
find_package (Qt5Help QUIET)
find_package (Qt5WebKit QUIET)
find_package (Qt5UiTools QUIET)
find_package (Qt5Concurrent QUIET)
find_package (Qt5PrintSupport QUIET)
find_package (Qt5Svg QUIET)
find_package (Qt5Declarative QUIET PATHS ${QT_DEFAULT_PATH})
find_package (Qt5Widgets QUIET PATHS ${QT_DEFAULT_PATH})
find_package (Qt5Gui QUIET PATHS ${QT_DEFAULT_PATH})
find_package (Qt5OpenGL QUIET PATHS ${QT_DEFAULT_PATH})
find_package (Qt5Network QUIET PATHS ${QT_DEFAULT_PATH})
find_package (Qt5Script QUIET PATHS ${QT_DEFAULT_PATH})
find_package (Qt5ScriptTools QUIET PATHS ${QT_DEFAULT_PATH})
find_package (Qt5Sql QUIET PATHS ${QT_DEFAULT_PATH})
find_package (Qt5Xml QUIET PATHS ${QT_DEFAULT_PATH})
find_package (Qt5XmlPatterns QUIET PATHS ${QT_DEFAULT_PATH})
find_package (Qt5Help QUIET PATHS ${QT_DEFAULT_PATH})
find_package (Qt5WebKit QUIET PATHS ${QT_DEFAULT_PATH})
find_package (Qt5UiTools QUIET PATHS ${QT_DEFAULT_PATH})
find_package (Qt5Concurrent QUIET PATHS ${QT_DEFAULT_PATH})
find_package (Qt5PrintSupport QUIET PATHS ${QT_DEFAULT_PATH})
find_package (Qt5Svg QUIET PATHS ${QT_DEFAULT_PATH})
endif(${QT_VERSION_MINOR} GREATER 5)
if (NOT WIN32 AND NOT APPLE)
find_package (Qt5X11Extras QUIET)
find_package (Qt5X11Extras QUIET PATHS ${QT_DEFAULT_PATH})
endif ()
if(${QT_VERSION_MINOR} GREATER 5)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment