Main Lemma Repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 770B

1234567891011121314151617181920
  1. # create the lib
  2. #add_subdirectory( ${CMAKE_CURRENT_SOURCE_DIR} )
  3. #pybind11_add_module(pyLemmaCore pyLemmaCore.cpp)
  4. add_library(pyLemmaCore MODULE pyLemmaCore.cpp)
  5. target_link_libraries(pyLemmaCore PRIVATE pybind11::module lemmacore )
  6. set_target_properties(pyLemmaCore PROPERTIES PREFIX "${PYTHON_MODULE_PREFIX}"
  7. SUFFIX "${PYTHON_MODULE_EXTENSION}"
  8. OUTPUT_NAME "LemmaCore"
  9. CXX_STANDARD 14
  10. CXX_STANDARD_REQUIRED ON
  11. )
  12. install(TARGETS pyLemmaCore
  13. COMPONENT python
  14. RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/pyLemma/pyLemma/"
  15. LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}/pyLemma/pyLemma/"
  16. ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/pyLemma/pyLemma/"
  17. )