From f3a78311d3ebad0a8ac91f2a8992454ea71a1bfe Mon Sep 17 00:00:00 2001 From: malaterre Date: Thu, 23 Oct 2003 15:10:51 +0000 Subject: [PATCH] *FIX: gdcm/Makefile.am fix for generating ljpg medcon *ENH: CMakeLists.txt now generate 'pygdcm.so' instead of 'libpygdcm.so' --- configure.in | 1 + gdcmPython/CMakeLists.txt | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/configure.in b/configure.in index d7db261c..7164f9a4 100644 --- a/configure.in +++ b/configure.in @@ -86,6 +86,7 @@ src/Makefile src/jpeg/Makefile src/jpeg/libijg8/Makefile src/jpeg/libijg12/Makefile +src/jpeg/ljpg/Makefile gdcmPython/Makefile Test/Makefile Dicts/Makefile diff --git a/gdcmPython/CMakeLists.txt b/gdcmPython/CMakeLists.txt index c7e9f695..a6e8adc8 100644 --- a/gdcmPython/CMakeLists.txt +++ b/gdcmPython/CMakeLists.txt @@ -31,6 +31,8 @@ SET(GDCM_PYTHON_SOURCES SET_SOURCE_FILES_PROPERTIES(gdcm_wrap.cxx GENERATED) ADD_LIBRARY(pygdcm ${GDCM_PYTHON_SOURCES}) +#http://www.cmake.org/pipermail/cmake/2003-August/004190.html +SET_TARGET_PROPERTIES(pygdcm PROPERTIES PREFIX "") TARGET_LINK_LIBRARIES(pygdcm ${PYTHON_LIBRARY} gdcm @@ -91,3 +93,8 @@ GET_FILENAME_COMPONENT(SITEPACKAGE ${PYTHON_LIB_INSTALL}/../site-packages ABSOLU MESSAGE(STATUS ${SITEPACKAGE}) #INSTALL_FILES(/include "\\.h$") #INSTALL_TARGETS(/lib/ gdcm) + +# When installing swig-generated python module one should pay attention +# to library naming convention, see here for more detail: +# http://www.swig.org/Doc1.3/Python.html#n6 +# even with the $swig -module mylib, there is always a trailing underscore added -- 2.48.1