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 1005B

1234567891011121314151617181920212223242526
  1. # include directories
  2. #include_directories(${CMAKE_CURRENT_SOURCE_DIR}/python)
  3. # create the lib
  4. #add_subdirectory( ${CMAKE_CURRENT_SOURCE_DIR} )
  5. #pybind11_add_module(pyLemmaCore pyLemmaCore.cpp)
  6. add_library(pyLemmaCore MODULE pyLemmaCore.cpp)
  7. target_link_libraries(pyLemmaCore PRIVATE pybind11::module lemmacore )
  8. set_target_properties(pyLemmaCore PROPERTIES PREFIX "${PYTHON_MODULE_PREFIX}"
  9. SUFFIX "${PYTHON_MODULE_EXTENSION}")
  10. #target_include_directories( lemmacore PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/../include" )
  11. #add_library(pyLemmaCore SHARED ${CMAKE_CURRENT_SOURCE_DIR}/pyLemmaCore.cpp)
  12. # link
  13. #target_link_libraries(pyLemmaCore lemmacore)
  14. # Copy the __init__.py file
  15. #configure_file(__init__.py ${CMAKE_CURRENT_BINARY_DIR}/__init__.py COPYONLY)
  16. # Suppress prefix "lib" because Python does not allow this prefix
  17. #set_target_properties(pyLemmaCore PROPERTIES PREFIX "")
  18. #install(TARGETS pyLemmaCore __init__.py DESTINATION "${PYTHON_INSTALL_PATH}")