###################### # # Copyright (C) 2010 - 2012 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. # ###################### INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${libengsas_SOURCE_DIR} ${libengsas_BINARY_DIR} ) IF(BINDINGS_QT4) # QT5 does not declare and does not need QT_INCLUDES SET(INCLUDE_DIRECTORIES ${INCLUDES_DIRECTORIES} ${QT_INCLUDES}) INCLUDE(${QT_USE_FILE}) ENDIF(BINDINGS_QT4) SET(LINK_LIBRARIES ${QT_LIBRARIES} libengsas ) IF(L10N_DE) SET(efilesystemplugin_TS ${efilesystemplugin_TS} lang/efilesystemplugin_de.ts) ENDIF(L10N_DE) IF(L10N_EN) SET(efilesystemplugin_TS ${efilesystemplugin_TS} lang/efilesystemplugin_en.ts) ENDIF(L10N_EN) IF(L10N_FR) SET(efilesystemplugin_TS ${efilesystemplugin_TS} lang/efilesystemplugin_fr.ts) ENDIF(L10N_FR) SET(efilesystemplugin_QRC ) SET(efilesystemplugin_UI ) SET(efilesystemplugin_CPP efilesystemplugin.cpp ) # needed for QT-Plugins ADD_DEFINITIONS(-DQT_PLUGIN) ADD_DEFINITIONS(-DQT_SHARED) IF(BINDINGS_QT4) QT4_WRAP_UI(efilesystemplugin_UI_H ${efilesystemplugin_UI}) QT4_ADD_TRANSLATION(efilesystemplugin_TRANS ${efilesystemplugin_TS}) QT4_ADD_RESOURCES(efilesystemplugin_RCCS ${efilesystemplugin_QRC}) ENDIF(BINDINGS_QT4) IF(BINDINGS_QT5) QT5_WRAP_UI(efilesystemplugin_UI_H ${efilesystemplugin_UI}) QT5_ADD_TRANSLATION(efilesystemplugin_TRANS ${efilesystemplugin_TS}) QT5_ADD_RESOURCES(efilesystemplugin_RCCS ${efilesystemplugin_QRC}) ENDIF(BINDINGS_QT5) ADD_LIBRARY(efilesystemplugin SHARED ${efilesystemplugin_CPP} ${efilesystemplugin_UI_H} ${efilesystemplugin_TRANS} ${efilesystemplugin_RCCS} ) TARGET_LINK_LIBRARIES(efilesystemplugin ${QT_LIBRARIES} libengsas ) IF(BINDINGS_QT5) qt5_use_modules(efilesystemplugin Core) ENDIF(BINDINGS_QT5) # IF(MINGW) # SET_TARGET_PROPERTIES(efilesystemplugin # PROPERTIES LINK_FLAGS "-Wl,--enable-auto-import,--enable-runtime-pseudo-reloc" # ENABLE_EXPORTS ON) # ENDIF(MINGW) IF(WIN32) INSTALL( TARGETS efilesystemplugin RUNTIME DESTINATION ${ENGSAS_FILE_SERVICE_PLUGIN_DIR} COMPONENT efilesystemplugin ) ELSE(WIN32) INSTALL( TARGETS efilesystemplugin DESTINATION ${ENGSAS_FILE_SERVICE_PLUGIN_DIR} COMPONENT efilesystemplugin ) ENDIF(WIN32) INSTALL( FILES ${efilesystemplugin_TRANS} DESTINATION ${qm_DIR} COMPONENT efilesystemplugin ) IF(BUILD_TESTING) ADD_SUBDIRECTORY(tests) ENDIF(BUILD_TESTING)