###################### # # 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_QTTEST TRUE) INCLUDE(${QT_USE_FILE}) INCLUDE_DIRECTORIES( ${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/.. ${libengsas_SOURCE_DIR} ${libengsas_BINARY_DIR} ) ADD_DEFINITIONS(${QT_DEFINITIONS}) ####################### # # ECmdLineOption Test # ####################### SET(test_CPP ecmdlineoptiontest.cpp ) QT4_AUTOMOC(${test_CPP}) ADD_EXECUTABLE(testecmdlineoption ${test_CPP}) TARGET_LINK_LIBRARIES(testecmdlineoption ${QT_LIBRARIES} libengsas) ADD_TEST(TestECmdLineOption ${EXECUTABLE_OUTPUT_PATH}/testecmdlineoption) ####################### # # ECmdLineArgs Test # ####################### SET(test_CPP ecmdlineargstest.cpp ) QT4_AUTOMOC(${test_CPP}) ADD_EXECUTABLE(testecmdlineargs ${test_CPP}) TARGET_LINK_LIBRARIES(testecmdlineargs ${QT_LIBRARIES} libengsas) ADD_TEST(TestECmdLineArgs ${EXECUTABLE_OUTPUT_PATH}/testecmdlineargs)