From 3473c7c7908e567c60aaec1ba5dc37db63ad7d89 Mon Sep 17 00:00:00 2001 From: Marcel Loose <loose@astron.nl> Date: Fri, 6 Nov 2009 16:47:26 +0000 Subject: [PATCH] Bug 1310: Quick-and-dirty fix to get the Python/C++ bindings (also) installed in the python site-packages directory. Note that these libraries will now be installed twice; this should be fixed at some later time. --- CEP/pyparmdb/src/CMakeLists.txt | 6 ++++++ LCS/pyparameterset/src/CMakeLists.txt | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/CEP/pyparmdb/src/CMakeLists.txt b/CEP/pyparmdb/src/CMakeLists.txt index dc071bd2a8c..e2e0013fa82 100644 --- a/CEP/pyparmdb/src/CMakeLists.txt +++ b/CEP/pyparmdb/src/CMakeLists.txt @@ -10,6 +10,12 @@ execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink lofar_add_library(_parmdb SHARED pyparmdb.cc) set_target_properties(_parmdb PROPERTIES PREFIX "") +# This is a quick-and-dirty fix to install the Python binding module in the +# right place. It will now be installed twice, because lofar_add_library() +# will install it in $prefix/$libdir +install(TARGETS _parmdb + DESTINATION ${PYTHON_INSTALL_DIR}/lofar/parmdb) + lofar_add_bin_program(versionpyparmdb versionpyparmdb.cc Package__Version.cc) diff --git a/LCS/pyparameterset/src/CMakeLists.txt b/LCS/pyparameterset/src/CMakeLists.txt index 972e0b5c135..a93fd2f9c0f 100644 --- a/LCS/pyparameterset/src/CMakeLists.txt +++ b/LCS/pyparameterset/src/CMakeLists.txt @@ -10,6 +10,12 @@ execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink lofar_add_library(_pyparameterset SHARED pyparameterset.cc) set_target_properties(_pyparameterset PROPERTIES PREFIX "") +# This is a quick-and-dirty fix to install the Python binding module in the +# right place. It will now be installed twice, because lofar_add_library() +# will install it in $prefix/$libdir +install(TARGETS _pyparameterset + DESTINATION ${PYTHON_INSTALL_DIR}/lofar/parameterset) + lofar_add_bin_program(versionpyparameterset versionpyparameterset.cc Package__Version.cc) -- GitLab