mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 08:23:17 +02:00
find QT_DIR in root CMakeLists
This commit is contained in:
parent
b2ecf99008
commit
84e82f045d
2 changed files with 4 additions and 4 deletions
|
@ -86,6 +86,9 @@ else ()
|
|||
endif ()
|
||||
endif ()
|
||||
|
||||
# figure out where the qt dir is
|
||||
get_filename_component(QT_DIR "${QT_CMAKE_PREFIX_PATH}/../../" ABSOLUTE)
|
||||
|
||||
set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${QT_CMAKE_PREFIX_PATH})
|
||||
|
||||
# set our OS X deployment target to
|
||||
|
@ -127,7 +130,7 @@ if (ANDROID)
|
|||
endif ()
|
||||
|
||||
if (WIN32)
|
||||
add_paths_to_lib_paths("${QT_CMAKE_PREFIX_PATH}\\..\\..\\bin")
|
||||
add_paths_to_lib_paths("${QT_DIR}/bin")
|
||||
endif ()
|
||||
|
||||
# add subdirectories for all targets
|
||||
|
|
|
@ -39,9 +39,6 @@ macro(qt_create_apk)
|
|||
|
||||
# create "strings.xml"
|
||||
configure_file("${ANDROID_THIS_DIRECTORY}/strings.xml.in" "${ANDROID_APK_BUILD_DIR}/res/values/strings.xml")
|
||||
|
||||
# figure out where the qt dir is
|
||||
get_filename_component(QT_DIR "${QT_CMAKE_PREFIX_PATH}/../../" ABSOLUTE)
|
||||
|
||||
# find androiddeployqt
|
||||
find_program(ANDROID_DEPLOY_QT androiddeployqt HINTS "${QT_DIR}/bin")
|
||||
|
|
Loading…
Reference in a new issue