summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-10-13 20:04:24 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-10-13 20:04:24 (GMT)
commit97dd683836337c6f9c3a488ec6f42dfba28d750e (patch)
tree084b9a08a6c636cd7d67c62e9145b8d5bbd7247a /Source
parentdb12c17017ec8b5af121fc1c75eec63003c5ef1d (diff)
downloadCMake-97dd683836337c6f9c3a488ec6f42dfba28d750e.zip
CMake-97dd683836337c6f9c3a488ec6f42dfba28d750e.tar.gz
CMake-97dd683836337c6f9c3a488ec6f42dfba28d750e.tar.bz2
ENH: Add test for FindwxWindows. Thanks to: Mathieu Malaterre
Diffstat (limited to 'Source')
-rw-r--r--Source/CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index 81e79f6..3053f6a 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -361,6 +361,17 @@ IF(BUILD_TESTING)
objc++)
ENDIF (APPLE)
+ IF (CMAKE_WXWINDOWS_WXCONFIG_EXECUTABLE)
+ # Will be set if the wxwindows gui is on
+ ADD_TEST(UseWX ${EXECUTABLE_OUTPUT_PATH}/cmaketest
+ ${CMake_SOURCE_DIR}/Tests/UseWX
+ ${CMake_BINARY_DIR}/Tests/UseWX
+ UseWX
+ ${CMake_BINARY_DIR}/Tests/UseWX
+ UsewxWindows
+ CMAKE_ARGS -DCMAKE_WXWINDOWS_WXCONFIG_EXECUTABLE:FILEPATH=${CMAKE_WXWINDOWS_WXCONFIG_EXECUTABLE})
+ ENDIF (CMAKE_WXWINDOWS_WXCONFIG_EXECUTABLE)
+
IF(UNIX)
IF("x${CMAKE_INSTALL_PREFIX}" MATCHES "^x${CMake_BINARY_DIR}/Tests/TestInstall/Prefix$")
CONFIGURE_FILE(