summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjulie <julielangou@users.noreply.github.com>2011-02-07 14:54:21 +0000
committerjulie <julielangou@users.noreply.github.com>2011-02-07 14:54:21 +0000
commitb71aa51528b54aa0336f06bd49bb361485632a74 (patch)
tree4e7024913a9aa63e87acecdb22e3580d3b924d2d
parent1b76a1d5cf167b6584553b9409b4aaade980e2f8 (diff)
downloadlapack-b71aa51528b54aa0336f06bd49bb361485632a74.tar.gz
lapack-b71aa51528b54aa0336f06bd49bb361485632a74.tar.bz2
lapack-b71aa51528b54aa0336f06bd49bb361485632a74.zip
Organize binaries into bin and lib directories
Put executables under 'bin' and libraries under 'lib'. This is needed on Windows with shared library builds to put the .dll and .exe files together for running tests without setting PATH. - Brad King (Kitware)
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 946da31c..8bc46eea 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -35,6 +35,12 @@ enable_testing()
set(CMAKE_MODULE_PATH ${LAPACK_SOURCE_DIR} ${CMAKE_MODULE_PATH})
+# Organize output files. On Windows this also keeps .dll files next
+# to the .exe files that need them, making tests easy to run.
+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${LAPACK_BINARY_DIR}/bin)
+set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${LAPACK_BINARY_DIR}/lib)
+set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${LAPACK_BINARY_DIR}/lib)
+
# --------------------------------------------------
# Check for any necessary platform specific compiler flags
include( CheckLAPACKCompilerFlags )