From 564ca2fa07255a3fcd5fea5ab840017e65749145 Mon Sep 17 00:00:00 2001 From: Ryan Curtin Date: Mon, 23 Jan 2012 17:38:43 +0000 Subject: [PATCH] Install binaries in the proper location. --- src/mlpack/CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/mlpack/CMakeLists.txt b/src/mlpack/CMakeLists.txt index 7963993c37..0ac286fbb9 100644 --- a/src/mlpack/CMakeLists.txt +++ b/src/mlpack/CMakeLists.txt @@ -55,3 +55,14 @@ install(TARGETS mlpack RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib) + +# Set generated executables to be installed. +# This will have some odd effects if the user has placed anything else in bin/, +# but I think we can just hope that they haven't. At least, an auto-builder +# won't do that... +install(DIRECTORY ${CMAKE_BINARY_DIR}/bin/ + DESTINATION bin # ugly hack! + USE_SOURCE_PERMISSIONS + COMPONENT mlpack + FILES_MATCHING + PATTERN *[^_test])