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 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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}"
  13. SOVERSION "${LEMMA_VERSION_MAJOR}.${LEMMA_VERSION_MINOR}"
  14. PROJECT_LABEL "Lemma ${LABEL_SUFFIX}"
  15. )
  16. # Linking
  17. add_dependencies(lemmacore YAML-CPP)
  18. if (LEMMA_TINYXML_SUPPORT)
  19. add_dependencies(lemmacore TINYXML2)
  20. endif()
  21. if (LEMMA_MATIO_SUPPORT)
  22. add_dependencies(lemmacore MATIO)
  23. endif()
  24. if ( LEMMA_VTK6_SUPPORT OR LEMMA_VTK7_SUPPORT )
  25. target_link_libraries(lemmacore ${VTK_LIBRARIES})
  26. target_link_libraries(lemmacore "matplot")
  27. endif()
  28. target_link_libraries(lemmacore "yaml-cpp")
  29. # Testing
  30. if (LEMMA_ENABLE_TESTING)
  31. add_subdirectory(testing)
  32. endif()
  33. # Install
  34. install ( TARGETS lemmacore DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )
  35. option( LEMMA_BUILD_EXAMPLES "Compile example Lemma applications" OFF )
  36. if (LEMMA_BUILD_EXAMPLES)
  37. add_subdirectory(examples)
  38. endif()