33 lines
505 B
CMake
Raw Normal View History

2022-04-07 18:46:57 +02:00
ADD_LIBRARY ( PyIex ${LIB_TYPE}
PyIex.cpp
)
TARGET_LINK_LIBRARIES ( PyIex
${PYTHON_LIBRARIES}
)
INSTALL ( TARGETS PyIex
DESTINATION
lib
)
ADD_LIBRARY ( iexmodule ${LIB_TYPE}
iexmodule.cpp
)
SET_TARGET_PROPERTIES ( iexmodule
PROPERTIES PREFIX "" SUFFIX ".so" BUILD_WITH_INSTALL_RPATH ON
)
TARGET_LINK_LIBRARIES ( iexmodule
PyIex
Iex${ILMBASE_LIBSUFFIX}
${Boost_LIBRARIES}
)
INSTALL ( TARGETS iexmodule
DESTINATION lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages
)