diff options
author | Brad King <brad.king@kitware.com> | 2002-12-18 14:38:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2002-12-18 14:38:34 (GMT) |
commit | ccb93dc2f4b57350916de40285278dec06715b26 (patch) | |
tree | d8e465033423339b23c7c57d04bcd0804d5dd537 /Tests/X11 | |
parent | 10931b5e66452f6f6af05dbeecbf2c7108391fdb (diff) | |
download | CMake-ccb93dc2f4b57350916de40285278dec06715b26.zip CMake-ccb93dc2f4b57350916de40285278dec06715b26.tar.gz CMake-ccb93dc2f4b57350916de40285278dec06715b26.tar.bz2 |
ERR: Project name and executable name should match for consistency in the X11 test.
Diffstat (limited to 'Tests/X11')
-rw-r--r-- | Tests/X11/CMakeLists.txt | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/Tests/X11/CMakeLists.txt b/Tests/X11/CMakeLists.txt index 6a4abef..59711b0 100644 --- a/Tests/X11/CMakeLists.txt +++ b/Tests/X11/CMakeLists.txt @@ -1,20 +1,12 @@ # a simple C only test case -PROJECT (X11 C) - -# Temporary hack to deal with dirty cache files. -IF(EXISTS ${X11_BINARY_DIR}/X11.exe) - EXEC_PROGRAM(${CMAKE_COMMAND} ARGS -E remove ${X11_BINARY_DIR}/X11.exe) -ENDIF(EXISTS ${X11_BINARY_DIR}/X11.exe) -IF(EXISTS ${X11_BINARY_DIR}/X11) - EXEC_PROGRAM(${CMAKE_COMMAND} ARGS -E remove ${X11_BINARY_DIR}/X11) -ENDIF(EXISTS ${X11_BINARY_DIR}/X11) +PROJECT (UseX11 C) INCLUDE (${CMAKE_ROOT}/Modules/FindX11.cmake) -ADD_EXECUTABLE (useX11 X11.c) +ADD_EXECUTABLE (UseX11 X11.c) IF(CMAKE_HAS_X) ADD_DEFINITIONS(-DCMAKE_HAS_X) INCLUDE_DIRECTORIES(${CMAKE_X_INCLUDE_DIRS}) - TARGET_LINK_LIBRARIES(useX11 ${CMAKE_X_LIBS}) + TARGET_LINK_LIBRARIES(UseX11 ${CMAKE_X_LIBS}) ENDIF(CMAKE_HAS_X) |