forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user