diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-06-26 19:15:52 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-06-26 19:15:52 (GMT) |
commit | 25a425ecf09fccc804758da1015f93fce724f856 (patch) | |
tree | 1885272f7bc9bdc3ce9a243e38e550726afd4207 /Tests | |
parent | 571b3088d522da188448fc0cbe825fc9ee840609 (diff) | |
download | CMake-25a425ecf09fccc804758da1015f93fce724f856.zip CMake-25a425ecf09fccc804758da1015f93fce724f856.tar.gz CMake-25a425ecf09fccc804758da1015f93fce724f856.tar.bz2 |
ENH:
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CMakeLists.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index b4126ab..e104dbd 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -696,6 +696,7 @@ IF(BUILD_TESTING) ENDIF(CMAKE_Fortran_COMPILER_FULLPATH) ENDIF(CMAKE_TEST_GENERATOR MATCHES "Makefiles" OR CMAKE_TEST_GENERATOR MATCHES "KDevelop") + IF(NOT CMAKE_TEST_GENERATOR MATCHES "Xcode") INCLUDE(FindJava) IF(JAVA_COMPILE AND JAVA_RUNTIME AND JAVA_ARCHIVE AND NOT MINGW) @@ -721,6 +722,24 @@ IF(BUILD_TESTING) ENDIF(JAVA_COMPILE AND JAVA_RUNTIME AND JAVA_ARCHIVE AND NOT MINGW) ENDIF(NOT CMAKE_TEST_GENERATOR MATCHES "Xcode") + # if it's a makefile based generator and sdcc is found, build the SimpleCOnly project with sdcc + IF(CMAKE_TEST_GENERATOR MATCHES "Makefiles" OR CMAKE_TEST_GENERATOR MATCHES "KDevelop") + FIND_PROGRAM(SDCC_EXECUTABLE sdcc) + IF(SDCC_EXECUTABLE) + ADD_TEST(SimpleCOnly ${CMAKE_CTEST_COMMAND} + --build-and-test + "${CMake_SOURCE_DIR}/Tests/SimpleCOnly" + "${CMake_BINARY_DIR}/Tests/SimpleCOnly" + --build-generator ${CMAKE_TEST_GENERATOR} + --build-project SimpleC + --build-makeprogram ${CMAKE_TEST_MAKEPROGRAM} + --build-options + "-DCMAKE_SYSTEM_NAME=Generic" + "-DCMAKE_C_COMPILER=${SDCC_EXECUTABLE}") + ENDIF(SDCC_EXECUTABLE) + ENDIF(CMAKE_TEST_GENERATOR MATCHES "Makefiles" OR CMAKE_TEST_GENERATOR MATCHES "KDevelop") + + IF(BUILD_WXDialog AND wxWidgets_CONFIG_EXECUTABLE) # Will be set if the WX gui is on ADD_TEST(UseWX ${CMAKE_CTEST_COMMAND} |