Lemma is an Electromagnetics API
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

CMakeLists.txt 553B

12345678910111213141516
  1. # include directories
  2. include_directories(${CMAKE_CURRENT_SOURCE_DIR}/python)
  3. # create the lib
  4. add_library(pyLemmaCore SHARED ${CMAKE_CURRENT_SOURCE_DIR}/pyLemmaCore.cpp)
  5. # link
  6. target_link_libraries(pyLemmaCore ${Boost_LIBRARIES} lemmacore)
  7. # Copy the __init__.py file
  8. configure_file(__init__.py ${CMAKE_CURRENT_BINARY_DIR}/__init__.py COPYONLY)
  9. # Suppress prefix "lib" because Python does not allow this prefix
  10. set_target_properties(pyLemmaCore PROPERTIES PREFIX "")
  11. #install(TARGETS pyLemmaCore __init__.py DESTINATION "${PYTHON_INSTALL_PATH}")