diff options
author | Kevin Funk <kevin.funk.ford@kdab.com> | 2015-11-25 22:19:25 +0100 |
---|---|---|
committer | Allen Winter <allen.winter@kdab.com> | 2015-11-25 22:40:27 +0000 |
commit | 627f56e8b795b39f8bc29fdaa8f2593ec1743f2b (patch) | |
tree | e7d5a0fc7f43a4bdc4b3b1f61532d3a4d8e251d4 /src/remoteobjects/Qt5RemoteObjectsConfigExtras.cmake.in | |
parent | 71518324dc47d05b1791cbe3207c328863e7dfce (diff) |
Make sure repc is found for standalone QtRO
Change-Id: Ib78770703e0d134793b51ec260194edb0ce9a73b
Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
Diffstat (limited to 'src/remoteobjects/Qt5RemoteObjectsConfigExtras.cmake.in')
-rw-r--r-- | src/remoteobjects/Qt5RemoteObjectsConfigExtras.cmake.in | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/remoteobjects/Qt5RemoteObjectsConfigExtras.cmake.in b/src/remoteobjects/Qt5RemoteObjectsConfigExtras.cmake.in new file mode 100644 index 0000000..1689dba --- /dev/null +++ b/src/remoteobjects/Qt5RemoteObjectsConfigExtras.cmake.in @@ -0,0 +1,53 @@ +# +# Copyright (C) 2015 Ford Motor Company +# Contact: http://www.qt-project.org/legal +# +# This file is part of the QtRemoteObjects module of the Qt Toolkit. +# +# $QT_BEGIN_LICENSE:LGPL$ +# Commercial License Usage +# Licensees holding valid commercial Qt licenses may use this file in +# accordance with the commercial license agreement provided with the +# Software or, alternatively, in accordance with the terms contained in +# a written agreement between you and Digia. For licensing terms and +# conditions see http://qt.digia.com/licensing. For further information +# use the contact form at http://qt.digia.com/contact-us. +# +# GNU Lesser General Public License Usage +# Alternatively, this file may be used under the terms of the GNU Lesser +# General Public License version 2.1 as published by the Free Software +# Foundation and appearing in the file LICENSE.LGPL included in the +# packaging of this file. Please review the following information to +# ensure the GNU Lesser General Public License version 2.1 requirements +# will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +# +# In addition, as a special exception, Digia gives you certain additional +# rights. These rights are described in the Digia Qt LGPL Exception +# version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +# +# GNU General Public License Usage +# Alternatively, this file may be used under the terms of the GNU +# General Public License version 3.0 as published by the Free Software +# Foundation and appearing in the file LICENSE.GPL included in the +# packaging of this file. Please review the following information to +# ensure the GNU General Public License version 3.0 requirements will be +# met: http://www.gnu.org/copyleft/gpl.html. +# +# +# $QT_END_LICENSE$ + +if (NOT TARGET Qt5::repc) + add_executable(Qt5::repc IMPORTED) + +!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE) + set(imported_location \"${_qt5RemoteObjects_install_prefix}/$${CMAKE_BIN_DIR}repc$$CMAKE_BIN_SUFFIX\") +!!ELSE + set(imported_location \"$${CMAKE_BIN_DIR}repc$$CMAKE_BIN_SUFFIX\") +!!ENDIF + _qt5_RemoteObjects_check_file_exists(${imported_location}) + + set_target_properties(Qt5::repc PROPERTIES + IMPORTED_LOCATION ${imported_location} + ) + get_target_property(Qt5RemoteObjects_REPC_EXECUTABLE Qt5::repc LOCATION) +endif() |