Lemma is an Electromagnetics API
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 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}")