Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
windows:mingw:win32
mingw32-breeze5-icons
0001-Moved-qrcalias-to-subdir-to-use-it-as-sepa...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Moved-qrcalias-to-subdir-to-use-it-as-separate-cmake.patch of Package mingw32-breeze5-icons
From 3c9c9dca091776daf1d50217a761a191b494c618 Mon Sep 17 00:00:00 2001 From: Ralf Habacker <ralf.habacker@freenet.de> Date: Fri, 8 Jul 2022 12:18:32 +0200 Subject: [PATCH] Moved qrcalias to subdir to use it as separate cmake project This is used for cross compiling to create a native qrcalias as part of building. --- CMakeLists.txt | 4 +--- qrcalias/CMakeLists.txt | 11 +++++++++++ qrcAlias.cpp => qrcalias/qrcAlias.cpp | 0 3 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 qrcalias/CMakeLists.txt rename qrcAlias.cpp => qrcalias/qrcAlias.cpp (100%) diff -ur a/CMakeLists.txt breeze-icons-5.103.0/CMakeLists.txt --- a/CMakeLists.txt 2023-02-05 10:17:09.000000000 +0100 +++ b/CMakeLists.txt 2024-07-03 17:27:33.520035370 +0200 @@ -63,9 +63,7 @@ option(SKIP_INSTALL_ICONS "Skip installing the icons files" OFF) if(BINARY_ICONS_RESOURCE) - find_package(Qt${QT_MAJOR_VERSION} NO_MODULE REQUIRED Core) - add_executable(qrcAlias qrcAlias.cpp) - target_link_libraries(qrcAlias PUBLIC Qt${QT_MAJOR_VERSION}::Core) + add_subdirectory(qrcalias) function(generate_binary_resource target outfile) set(RESOURCES_WORKING_DIR ${CMAKE_CURRENT_BINARY_DIR}/res) diff --git a/qrcalias/CMakeLists.txt b/qrcalias/CMakeLists.txt new file mode 100644 index 00000000..e04bff6d --- /dev/null +++ b/qrcalias/CMakeLists.txt @@ -0,0 +1,11 @@ +cmake_minimum_required(VERSION 3.10) +project(qrcAlias) + +if (CMAKE_CROSSCOMPILING AND QRCALIAS_EXECUTABLE) + add_executable(qrcAlias IMPORTED GLOBAL) + set_target_properties(qrcAlias PROPERTIES IMPORTED_LOCATION ${QRCALIAS_EXECUTABLE}) +else() + find_package(Qt5 COMPONENTS Core REQUIRED) + add_executable(qrcAlias qrcAlias.cpp) + target_link_libraries(qrcAlias Qt5::Core) +endif() diff --git a/qrcAlias.cpp b/qrcalias/qrcAlias.cpp similarity index 100% rename from qrcAlias.cpp rename to qrcalias/qrcAlias.cpp -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor