CMake build system: Allow configuration without main app

Quite handy when working only with tetst.

Change-Id: I018e703c3d4d47618b99ef183d930f8d015eeed8
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Alessandro Portale
2020-01-16 17:13:27 +01:00
parent 048f0f63c9
commit 892fc0f28b

View File

@@ -19,6 +19,10 @@ add_qtc_executable(qtcreator
DESTINATION "${IDE_APP_PATH}"
)
if (NOT TARGET qtcreator)
return()
endif()
if (WIN32)
set(RC_APPLICATION_NAME "${IDE_DISPLAY_NAME}")
set(RC_VERSION "${IDE_VERSION}.0")