###################### # # Copyright (C) 2010 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 . # ###################### SET(QT_USE_QTGUI TRUE) 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(BINDINGS_KDE) # include (KDE4Defaults) INCLUDE_DIRECTORIES(${KDE4_INCLUDES}) SET(LINK_LIBRARIES ${LINK_LIBRARIES} ${KDE_KDEUI_LIBS}) ENDIF(BINDINGS_KDE) INCLUDE(${QT_USE_FILE}) CONFIGURE_FILE( ${CMAKE_CURRENT_SOURCE_DIR}/epartexeconfig.h.in ${CMAKE_CURRENT_BINARY_DIR}/epartexeconfig.h ) SET(src_CPP main.cpp ) QT4_AUTOMOC(${src_CPP}) SET(neededStuff ${src_CPP} ) IF(UNIX) ADD_EXECUTABLE(epartexe ${neededStuff}) ELSEIF(APPLE) # it's with gui, so MACOSX_BUNDLE is needed ADD_EXECUTABLE(epartexe MACOSX_BUNDLE ${neededStuff}) ELSEIF(WIN32) # it's with gui, so WIN32 is needed ADD_EXECUTABLE(epartexe WIN32 ${neededStuff}) ENDIF() TARGET_LINK_LIBRARIES(epartexe ${LINK_LIBRARIES}) # The COMPONENT option only defines the internal belonging of the INSTALL'ed thing INSTALL( TARGETS epartexe RUNTIME DESTINATION ${bin_DIR} COMPONENT applicationepartexe )