PageRenderTime 40ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/MUQ/modules/Pde/src/CMakeLists.txt

https://bitbucket.org/mituq/muq
CMake | 60 lines | 40 code | 18 blank | 2 comment | 2 complexity | 31f480d03035f5d4cc20aa33be1ceb1c MD5 | raw file
  1. #This demo builds all sources into a library, and then compiles and links main against the library and all Trilinos libraries.
  2. SET(PDE_SOURCES
  3. GenericMesh.cpp
  4. SquareMesh.cpp
  5. LineMesh.cpp
  6. LibMeshInit.cpp
  7. ElementInformation.cpp
  8. GenericEquationSystems.cpp
  9. MeshParameter.cpp
  10. KernelModel.cpp
  11. MeshKernelModel.cpp
  12. PDEModPiece.cpp
  13. PDE.cpp
  14. Transient.cpp
  15. Nontransient.cpp
  16. FieldIntegrator1D.cpp
  17. PointObserver.cpp
  18. PointSensor.cpp
  19. )
  20. if(MUQ_USE_PYTHON)
  21. set(PDE_SOURCES ${PDE_SOURCES}
  22. ../python/PDEPythonLibrary.cpp
  23. ../python/PDEModPiecePython.cpp
  24. ../python/LibMeshInitPython.cpp
  25. ../python/MeshParameterPython.cpp
  26. ../python/KernelModelPython.cpp
  27. ../python/MeshKernelModelPython.cpp
  28. )
  29. endif(MUQ_USE_PYTHON)
  30. ## ## Define library
  31. ADD_LIBRARY(muqPde ${PDE_SOURCES})
  32. TARGET_LINK_LIBRARIES(muqPde muqUtilities muqModelling muqGeostatistics ${MUQ_LINK_LIBS})
  33. if(APPLE AND MUQ_USE_PYTHON)
  34. set_property(TARGET muqPde PROPERTY PREFIX "lib")
  35. set_property(TARGET muqPde PROPERTY OUTPUT_NAME "muqPde.so")
  36. set_property(TARGET muqPde PROPERTY SUFFIX "")
  37. set_property(TARGET muqPde PROPERTY SOVERSION "32.1.2.0")
  38. endif(APPLE AND MUQ_USE_PYTHON)
  39. install(TARGETS muqPde
  40. EXPORT MUQDepends
  41. LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}/lib"
  42. ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/lib")