1234567891011121314151617181920 |
- # 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"
- CXX_STANDARD 14
- CXX_STANDARD_REQUIRED ON
- )
-
-
- 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/"
- )
|