CMake build: Fix sdktool location for standalone build

Avoid the path to libexec inside the Qt Creator bundle if
building sdktool standalone

Change-Id: Id893a523d262b846cbbed7d73fa28751e404102a
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Eike Ziller
2020-01-31 14:05:50 +01:00
parent f29f219579
commit e79d35228a

View File

@@ -11,8 +11,13 @@ set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
include(QtCreatorIDEBranding)
include(QtCreatorAPI)
if (NOT QT_CREATOR_API_DEFINED)
# standalone build
set(DESTINATION DESTINATION .)
include(QtCreatorIDEBranding)
include(QtCreatorAPI)
endif()
configure_file(../../app/app_version.h.cmakein app/app_version.h ESCAPE_QUOTES)
find_package(Qt5
@@ -27,6 +32,7 @@ endif()
set(UtilsSourcesDir "../../libs/utils")
add_qtc_executable(sdktool
${DESTINATION}
DEFINES DATA_PATH=\"${IDE_DATA_PATH}\"
DEPENDS Qt5::Core
INCLUDES