123456789101112131415161718 |
- # create the lib
- #add_subdirectory( ${CMAKE_CURRENT_SOURCE_DIR} )
- #pybind11_add_module(pyLemmaCore pyLemmaCore.cpp)
-
- add_library(pyLemmaCore MODULE pyLemmaCore.cpp)
- target_link_libraries(pyLemmaCore PRIVATE pybind11::module lemmacore )
- set_target_properties(pyLemmaCore PROPERTIES PREFIX "${PYTHON_MODULE_PREFIX}"
- SUFFIX "${PYTHON_MODULE_EXTENSION}"
- OUTPUT_NAME "LemmaCore"
- )
-
-
- install(TARGETS pyLemmaCore
- COMPONENT python
- RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/pyLemma/pyLemma/"
- LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}/pyLemma/pyLemma/"
- ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/pyLemma/pyLemma/"
- )
|