123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- include(ExternalProject)
-
- project (SuperBuild CXX C)
-
- if (Eigen3_FOUND)
- message( STATUS "Eigen was found ${eigen_DIR}" )
- else()
- message( STATUS "Eigen WAS NOT FOUND ${eigen_DIR}" )
- ExternalProject_Add(EIGEN
- GIT_REPOSITORY "https://github.com/eigenteam/eigen-git-mirror.git"
- UPDATE_COMMAND ""
- GIT_TAG "3.3.5"
- PREFIX ${CMAKE_CURRENT_BINARY_DIR}/external/eigen
- CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX}
-
-
-
- )
-
-
-
-
-
-
-
-
-
-
-
-
- endif()
-
-
- if (yaml-cpp_FOUND)
- message( STATUS "YAML-CPP was found ${yaml-cpp_FOUND}" )
-
-
-
-
-
- else()
- message( STATUS "YAML-CPP WAS NOT FOUND, BUILDING" )
- message( STATUS "CMAKE BUILD TYPE ${CMAKE_BUILD_TYPE}" )
- message( STATUS "CMAKE CXX COMPILER ${CMAKE_CXX_COMPILER}" )
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ExternalProject_Add(YAML_CPP
- GIT_REPOSITORY "https://github.com/jbeder/yaml-cpp.git"
- GIT_TAG "master"
- UPDATE_COMMAND ""
- PATCH_COMMAND ""
- PREFIX ${CMAKE_CURRENT_BINARY_DIR}/external/yaml-cpp
- CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX}
- -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}
- -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
- -DYAML_CPP_BUILD_TESTS=OFF
- -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}
- -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
- -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
- )
-
- endif()
-
- if (LEMMA_ENABLE_TESTING)
- if (CXXTEST_FOUND)
- message( STATUS "CxxTest was found" )
- else()
- message( STATUS "CxxTest WAS NOT FOUND")
-
- ExternalProject_Add(CxxTest
- GIT_REPOSITORY "https://github.com/CxxTest/cxxtest.git"
- GIT_TAG "master"
- UPDATE_COMMAND ""
- PATCH_COMMAND ""
- PREFIX ${CMAKE_CURRENT_BINARY_DIR}/external/CxxTest
-
-
-
-
-
- CONFIGURE_COMMAND ""
- BUILD_COMMAND ""
- INSTALL_COMMAND ""
-
-
- )
-
-
-
-
-
-
- endif()
- endif()
-
-
- option( LEMMA_TINYXML_SUPPORT "TinyXML library support for .xml files" OFF)
- if ( LEMMA_TINYXML_SUPPORT )
- ExternalProject_Add(TINYXML2
- GIT_REPOSITORY "https://github.com/leethomason/tinyxml2.git"
- GIT_TAG "master"
- UPDATE_COMMAND ""
- PATCH_COMMAND ""
- PREFIX ${CMAKE_CURRENT_BINARY_DIR}/external/tinyxml2
- CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX} -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} /
- -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
- )
- add_compile_options(-DTINYXMLSUPPORT)
- endif()
-
- option( LEMMA_MATIO_SUPPORT "MATIO library support for MATLAB .mat files" OFF)
- if ( LEMMA_MATIO_SUPPORT )
- add_compile_options(-DHAVE_MATIO)
-
- ExternalProject_ADD(MATIO
- GIT_REPOSITORY "git://git.code.sf.net/p/matio/matio"
- GIT_TAG "master"
- UPDATE_COMMAND ""
- PATCH_COMMAND ""
- PREFIX ${CMAKE_CURRENT_BINARY_DIR}/external/matio
-
- CONFIGURE_COMMAND ./autogen.sh && ./configure --prefix=${CMAKE_INSTALL_PREFIX}
- BUILD_IN_SOURCE 1
- BUILD_COMMAND ${MAKE}
- )
- endif()
-
-
-
-
-
-
-
-
-
|