###################### # # 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. # ###################### IF(BINDINGS_QT4) SET(QT_USE_QTTEST TRUE) ENDIF(BINDINGS_QT4) INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_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) ADD_DEFINITIONS(${QT_DEFINITIONS}) ####################### # # ECmdLineOption Test # ####################### SET(test_CPP ecmdlineoptiontest.cpp ) ADD_EXECUTABLE(testecmdlineoption ${test_CPP}) TARGET_LINK_LIBRARIES(testecmdlineoption ${QT_LIBRARIES} libengsas) IF(BINDINGS_QT5) qt5_use_modules(testecmdlineoption Core Test) ENDIF(BINDINGS_QT5) ADD_TEST(TestECmdLineOption ${EXECUTABLE_OUTPUT_PATH}/testecmdlineoption) ####################### # # ECmdLineArgs Test # ####################### SET(test_CPP ecmdlineargstest.cpp ) ADD_EXECUTABLE(testecmdlineargs ${test_CPP}) TARGET_LINK_LIBRARIES(testecmdlineargs ${QT_LIBRARIES} libengsas) IF(BINDINGS_QT5) qt5_use_modules(testecmdlineargs Core Test) ENDIF(BINDINGS_QT5) ADD_TEST(TestECmdLineArgs ${EXECUTABLE_OUTPUT_PATH}/testecmdlineargs)