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

1234567891011121314151617181920212223242526272829303132333435363738
  1. include_directories(${CMAKE_INSTALL_PREFIX}/include)
  2. add_subdirectory("src")
  3. #option (SHARED_LEMMA_LIB off)
  4. #
  5. #if (SHARED_LEMMA_LIB)
  6. # add_library( lemmacore SHARED ${SOURCE} )
  7. #else()
  8. # add_library( lemmacore STATIC ${SOURCE} )
  9. #endif()
  10. add_library( lemmacore ${SOURCE} )
  11. set_target_properties(lemmacore PROPERTIES
  12. VERSION ${LEMMA_VERSION_MAJOR}
  13. SOVERSION ${LEMMA_VERSION})
  14. # Linking
  15. add_dependencies(lemmacore YAML-CPP)
  16. if (TINYXML_SUPPORT)
  17. add_dependencies(lemmacore TINYXML2)
  18. endif()
  19. if (MATIO_SUPPORT)
  20. add_dependencies(lemmacore MATIO)
  21. endif()
  22. if (VTK_SUPPORT)
  23. target_link_libraries(lemmacore ${VTK_LIBRARIES})
  24. target_link_libraries(lemmacore "matplot")
  25. endif()
  26. target_link_libraries(lemmacore "yaml-cpp")
  27. # Install
  28. install ( TARGETS lemmacore DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )
  29. option( BUILDEXAMPLES "Compile example Lemma applications" OFF )
  30. if (BUILDEXAMPLES)
  31. add_subdirectory(examples)
  32. endif()