Main Lemma Repository
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.

SuperBuild.cmake 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. include(ExternalProject)
  2. if (eigen3_FOUND)
  3. message( STATUS "Eigen was found ${eigen_DIR}" )
  4. else()
  5. message( STATUS "Eigen WAS NOT FOUND ${eigen_DIR}" )
  6. ExternalProject_Add(EIGEN
  7. GIT_REPOSITORY "https://github.com/eigenteam/eigen-git-mirror.git"
  8. UPDATE_COMMAND ""
  9. GIT_TAG "3.3.3" #"default"
  10. PREFIX ${CMAKE_CURRENT_BINARY_DIR}/external/eigen
  11. CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX}
  12. #CONFIGURE_COMMAND ""
  13. #BUILD_COMMAND ""
  14. #INSTALL_COMMAND ""
  15. )
  16. # Are these necessary?
  17. #include_directories ("${CMAKE_INSTALL_PREFIX}/include/eigen3/")
  18. #set (Eigen3_DIR "${CMAKE_INSTALL_PREFIX}/include/eigen3" CACHE PATH "" FORCE )
  19. #find_package (Eigen3 3.3 NO_MODULE REQUIRED)
  20. #if (eigen3_FOUND)
  21. # message( STATUS "Eigen was found!!!!!!!!!!!!!! ${eigen_DIR}" )
  22. #endif()
  23. endif()
  24. if (yaml-cpp_FOUND)
  25. message( STATUS "YAML-CPP was found ${yaml-cpp_FOUND}" )
  26. #message( STATUS "YAML-CPP PATH ${yaml-cpp_PATH}" )
  27. #message( STATUS "YAML-CPP DIR ${yaml-cpp_DIR}" )
  28. #message( STATUS "YAML-CPP INCLUDE DIR ${yaml-cpp_INCLUDE_DIR}" )
  29. #message( STATUS "YAML-CPP LIBRARIES ${YAML_CPP_LIBRARIES}" )
  30. #message( STATUS "YAML-CPP LIBRARY ${yaml-cpp_LIBRARY}" )
  31. else()
  32. message( STATUS "YAML-CPP WAS NOT FOUND" )
  33. ExternalProject_Add(YAML_CPP
  34. GIT_REPOSITORY "https://github.com/jbeder/yaml-cpp.git"
  35. GIT_TAG "yaml-cpp-0.6.1" # "master"
  36. UPDATE_COMMAND ""
  37. PATCH_COMMAND ""
  38. INSTALL_COMMAND ""
  39. PREFIX ${CMAKE_CURRENT_BINARY_DIR}/external/yaml-cpp
  40. CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX}
  41. -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}
  42. -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}
  43. -DYAML_CPP_BUILD_TESTS=OFF
  44. )
  45. # is this necessary?
  46. #include_directories ("${CMAKE_INSTALL_PREFIX}/include/yaml-cpp")
  47. endif()
  48. if (LEMMA_ENABLE_TESTING)
  49. if (CXXTEST_FOUND)
  50. message( STATUS "CxxTest was found" )
  51. else()
  52. message( STATUS "CxxTest WAS NOT FOUND")
  53. ## CxxTest has no installation per se, it uses python
  54. ExternalProject_Add(CxxTest
  55. GIT_REPOSITORY "https://github.com/CxxTest/cxxtest.git"
  56. GIT_TAG "master"
  57. UPDATE_COMMAND ""
  58. PATCH_COMMAND ""
  59. PREFIX ${CMAKE_CURRENT_BINARY_DIR}/external/CxxTest
  60. #CMAKE_ARGS -DCXXTEST_INCLUDE_DIR="${CMAKE_CURRENT_BINARY_DIR}/external/CxxTest/src/CxxTest/"
  61. # -DCXXTEST_PYTHON_TESTGEN_EXECUTABLE "${CMAKE_CURRENT_BINARY_DIR}/external/CxxTest/src/CxxTest/bin/cxxtestgen"
  62. #-DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX} /
  63. # -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} /
  64. # -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
  65. CONFIGURE_COMMAND ""
  66. BUILD_COMMAND ""
  67. INSTALL_COMMAND ""
  68. #set (CXXTEST_INCLUDE_DIR "${CMAKE_CURRENT_BINARY_DIR}/external/CxxTest/src/CxxTest/" CACHE PATH) # PATH "" FORCE )
  69. #set (CXXTEST_PYTHON_TESTGEN_EXECUTABLE "${CMAKE_CURRENT_BINARY_DIR}/external/CxxTest/src/CxxTest/bin/cxxtestgen" CACHE PATH) # PATH "" FORCE )
  70. )
  71. #enable_testing()
  72. # The values "CACHE PATH "" FORCE" makes the GUI show the values of the local CxxTest, but this can cause issues
  73. # with users wanting to specify their own path. However, the SuperBuild needs this, in theory you are only here
  74. # because a usable CXXTEST was not already found on the machine, so likely this is sane to do
  75. #set (CXXTEST_INCLUDE_DIR "${CMAKE_CURRENT_BINARY_DIR}/external/CxxTest/src/CxxTest/" CACHE PATH "" FORCE )
  76. #set (CXXTEST_PYTHON_TESTGEN_EXECUTABLE "${CMAKE_CURRENT_BINARY_DIR}/external/CxxTest/src/CxxTest/bin/cxxtestgen" CACHE PATH "" FORCE )
  77. #find_package(CxxTest REQUIRED)
  78. endif()
  79. endif()
  80. # tinyxml2, this library is used for XML IO
  81. option( LEMMA_TINYXML_SUPPORT "TinyXML library support for .xml files" OFF)
  82. if ( LEMMA_TINYXML_SUPPORT )
  83. ExternalProject_Add(TINYXML2
  84. GIT_REPOSITORY "https://github.com/leethomason/tinyxml2.git"
  85. GIT_TAG "master"
  86. UPDATE_COMMAND ""
  87. PATCH_COMMAND ""
  88. PREFIX ${CMAKE_CURRENT_BINARY_DIR}/external/tinyxml2
  89. CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX} -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} /
  90. -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
  91. )
  92. add_compile_options(-DTINYXMLSUPPORT)
  93. endif()
  94. option( LEMMA_MATIO_SUPPORT "MATIO library support for MATLAB .mat files" OFF)
  95. if ( LEMMA_MATIO_SUPPORT )
  96. add_compile_options(-DHAVE_MATIO)
  97. # matio, this library is used for MATLAB file IO
  98. ExternalProject_ADD(MATIO
  99. GIT_REPOSITORY "git://git.code.sf.net/p/matio/matio"
  100. GIT_TAG "master"
  101. UPDATE_COMMAND ""
  102. PATCH_COMMAND ""
  103. PREFIX ${CMAKE_CURRENT_BINARY_DIR}/external/matio
  104. #CONFIGURE_COMMAND ${CMAKE_CURRENT_BINARY_DIR}/external/matio/src/MATIO/autogen.sh && configure
  105. CONFIGURE_COMMAND ./autogen.sh && ./configure --prefix=${CMAKE_INSTALL_PREFIX}
  106. BUILD_IN_SOURCE 1
  107. BUILD_COMMAND ${MAKE}
  108. )
  109. endif()
  110. # vim: set tabstop=4 shiftwidth=4 expandtab: