rename the python extension to _mussa.so
authorDiane Trout <diane@caltech.edu>
Thu, 18 May 2006 00:56:12 +0000 (00:56 +0000)
committerDiane Trout <diane@caltech.edu>
Thu, 18 May 2006 00:56:12 +0000 (00:56 +0000)
when working on the setup.py version of the build system it seemd like I
might want some python code to wrap the extension, so I renamed it to
_mussa. not sure if i still need that or not.

py/CMakeLists.txt

index 44465f720c6b6f4aba2a2cd4138d3a4abfedcedf..3599bdf8684d6cf8ad808869ae0019eb1548c274 100644 (file)
@@ -21,12 +21,13 @@ INCLUDE( ${QT_USE_FILE} )
   
   #SET_SOURCE_FILES_PROPERTIES(${SOURCES} COM
 
-  ADD_LIBRARY(mussa MODULE ${SOURCES})
-  ADD_CUSTOM_TARGET(mussa.so ALL
-                     COMMAND cp libmussa.so mussa.so
-                     DEPENDS mussa)
+  ADD_LIBRARY(_mussa MODULE ${SOURCES})
+  ADD_LIBRARY(mussa_py STATIC ${SOURCES})
+  ADD_CUSTOM_TARGET(_mussa.so ALL
+                     COMMAND cp lib_mussa.so _mussa.so
+                     DEPENDS _mussa)
   LINK_DIRECTORIES(${MUSSA_BINARY_DIR}/alg)
-  TARGET_LINK_LIBRARIES(mussa 
+  TARGET_LINK_LIBRARIES(_mussa 
                           mussa_core
                           mussa_qui
                           ${BOOST_PYTHON_LIBRARY}