make .so shared lib -> important for python import

This commit is contained in:
Joachim Schöberl 2015-09-11 00:41:15 +02:00
parent d374297fce
commit 5e1d9a3c39

View File

@ -1,5 +1,8 @@
add_definitions(-DNGLIB_EXPORTS) add_definitions(-DNGLIB_EXPORTS)
add_library(geom2d ${NG_LIB_TYPE} genmesh2d.cpp geom2dmesh.cpp geometry2d.cpp python_geom2d.cpp ) add_library(geom2d ${NG_LIB_TYPE} genmesh2d.cpp geom2dmesh.cpp geometry2d.cpp python_geom2d.cpp )
if(APPLE)
set_target_properties( geom2d PROPERTIES SUFFIX ".so")
endif(APPLE)
if(NOT WIN32) if(NOT WIN32)
target_link_libraries(geom2d mesh ${PYTHON_LIBS}) target_link_libraries(geom2d mesh ${PYTHON_LIBS})