diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-08-22 19:58:22 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-08-22 19:58:22 (GMT) |
commit | c4076fb2878bb7ecf94528a29930cf2cf961b095 (patch) | |
tree | 73084b04612f3c4e8295b4b82b4f1e56835df8d7 /Tests | |
parent | 2fc458ecceed06713653e0f11293a12b88d45e65 (diff) | |
download | CMake-c4076fb2878bb7ecf94528a29930cf2cf961b095.zip CMake-c4076fb2878bb7ecf94528a29930cf2cf961b095.tar.gz CMake-c4076fb2878bb7ecf94528a29930cf2cf961b095.tar.bz2 |
complex test needs the dll
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/Complex/Executable/CMakeLists.txt | 10 | ||||
-rw-r--r-- | Tests/ComplexOneConfig/Executable/CMakeLists.txt | 10 | ||||
-rw-r--r-- | Tests/ComplexRelativePaths/Executable/CMakeLists.txt | 10 |
3 files changed, 30 insertions, 0 deletions
diff --git a/Tests/Complex/Executable/CMakeLists.txt b/Tests/Complex/Executable/CMakeLists.txt index 72b77fa..ce3619d 100644 --- a/Tests/Complex/Executable/CMakeLists.txt +++ b/Tests/Complex/Executable/CMakeLists.txt @@ -16,6 +16,16 @@ ADD_EXECUTABLE(complex complex) TARGET_LINK_LIBRARIES(complex CMakeLib) +IF(WIN32) + # we must copy the dll to the correct location + FIND_FILE(CMAKE_DLL CMakeLib.dll ${Complex_BINARY_DIR}/../../Source ${Complex_BINARY_DIR}/../../Source/Debug) + IF (CMAKE_DLL) + CONFIGURE_FILE( + ${CMAKE_DLL} + ${Complex_BINARY_DIR}/CMakeLib.dll COPYONLY) + ENDIF (CMAKE_DLL) +ENDIF (WIN32) + # # Output the files required by 'complex' to a file. # diff --git a/Tests/ComplexOneConfig/Executable/CMakeLists.txt b/Tests/ComplexOneConfig/Executable/CMakeLists.txt index 72b77fa..ce3619d 100644 --- a/Tests/ComplexOneConfig/Executable/CMakeLists.txt +++ b/Tests/ComplexOneConfig/Executable/CMakeLists.txt @@ -16,6 +16,16 @@ ADD_EXECUTABLE(complex complex) TARGET_LINK_LIBRARIES(complex CMakeLib) +IF(WIN32) + # we must copy the dll to the correct location + FIND_FILE(CMAKE_DLL CMakeLib.dll ${Complex_BINARY_DIR}/../../Source ${Complex_BINARY_DIR}/../../Source/Debug) + IF (CMAKE_DLL) + CONFIGURE_FILE( + ${CMAKE_DLL} + ${Complex_BINARY_DIR}/CMakeLib.dll COPYONLY) + ENDIF (CMAKE_DLL) +ENDIF (WIN32) + # # Output the files required by 'complex' to a file. # diff --git a/Tests/ComplexRelativePaths/Executable/CMakeLists.txt b/Tests/ComplexRelativePaths/Executable/CMakeLists.txt index 72b77fa..ce3619d 100644 --- a/Tests/ComplexRelativePaths/Executable/CMakeLists.txt +++ b/Tests/ComplexRelativePaths/Executable/CMakeLists.txt @@ -16,6 +16,16 @@ ADD_EXECUTABLE(complex complex) TARGET_LINK_LIBRARIES(complex CMakeLib) +IF(WIN32) + # we must copy the dll to the correct location + FIND_FILE(CMAKE_DLL CMakeLib.dll ${Complex_BINARY_DIR}/../../Source ${Complex_BINARY_DIR}/../../Source/Debug) + IF (CMAKE_DLL) + CONFIGURE_FILE( + ${CMAKE_DLL} + ${Complex_BINARY_DIR}/CMakeLib.dll COPYONLY) + ENDIF (CMAKE_DLL) +ENDIF (WIN32) + # # Output the files required by 'complex' to a file. # |