###################### # # Copyright (C) 2010 - 2015 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # MA 02110-1301 USA. # ###################### IF(NOT COMPATIBLE_WITH_NON_KDE) SET(QRCS iconset.qrc ) IF(BINDINGS_QT4) QT4_ADD_RESOURCES(RCCS "${QRCS}" OPTIONS "-binary") ENDIF(BINDINGS_QT4) IF(BINDINGS_QT5) QT5_ADD_RESOURCES(RCCS "${QRCS}" OPTIONS "-binary") ENDIF(BINDINGS_QT5) IF(WIN32) SET(RCC_BINARY_DIR ${EXECUTABLE_OUTPUT_PATH}/${rcc_DIR}) ELSE(WIN32) SET(RCC_BINARY_DIR ${CMAKE_BINARY_DIR}/rcc) ENDIF(WIN32) SET(RCC_OUTPUT_FILE ${RCC_BINARY_DIR}/libengsas-core.rcc) FILE(MAKE_DIRECTORY ${RCC_BINARY_DIR}) ADD_CUSTOM_COMMAND( OUTPUT "${RCC_OUTPUT_FILE}" COMMAND ${CMAKE_COMMAND} -E copy_if_different "${RCCS}" "${RCC_OUTPUT_FILE}" WORKING_DIRECTORY ${CMAKE_BINARY_DIR} ) ADD_CUSTOM_TARGET( clientpc_icons ALL DEPENDS "${RCC_OUTPUT_FILE}" "${RCCS}" COMMENT "Compiling external binary resource for libengsas-core" ) INSTALL( FILES ${RCC_OUTPUT_FILE} DESTINATION ${rcc_DIR} ) ENDIF(NOT COMPATIBLE_WITH_NON_KDE)