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.
#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}