###################### # # Copyright (C) 2011 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program 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 General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # ###################### INCLUDE(${QT_USE_FILE}) INCLUDE_DIRECTORIES( ${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${libengsas_SOURCE_DIR} ${libengsas_BINARY_DIR} ) 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) # QT4_WRAP_CPP(meganizer_MOCCED_H ${meganizer_MOC_H}) QT4_AUTOMOC(${efilesystemplugin_CPP}) QT4_WRAP_UI(efilesystemplugin_UI_H ${efilesystemplugin_UI}) QT4_ADD_TRANSLATION(efilesystemplugin_TRANS ${efilesystemplugin_TS}) QT4_ADD_RESOURCES(efilesystemplugin_RCCS ${efilesystemplugin_QRC}) ADD_LIBRARY(efilesystemplugin SHARED ${efilesystemplugin_CPP} ${efilesystemplugin_UI_H} ${efilesystemplugin_TRANS} ${efilesystemplugin_RCCS} ) TARGET_LINK_LIBRARIES(efilesystemplugin ${QT_LIBRARIES} libengsas ) # 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)