include(ExternalProject) 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.3" #"default" PREFIX ${CMAKE_CURRENT_BINARY_DIR}/external/eigen CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX} #CONFIGURE_COMMAND "" #BUILD_COMMAND "" ) include_directories ("${CMAKE_INSTALL_PREFIX}/include/eigen3/") set (Eigen3_DIR "${CMAKE_INSTALL_PREFIX}/include/eigen3" CACHE PATH "" FORCE ) #find_package (Eigen3 3.3 NO_MODULE REQUIRED) #if (eigen3_FOUND) # message( STATUS "Eigen was found!!!!!!!!!!!!!! ${eigen_DIR}" ) #endif() endif() if (yaml-cpp_FOUND) message( STATUS "YAML-CPP was found ${yaml-cpp_FOUND}" ) #message( STATUS "YAML-CPP PATH ${yaml-cpp_PATH}" ) #message( STATUS "YAML-CPP DIR ${yaml-cpp_DIR}" ) #message( STATUS "YAML-CPP INCLUDE DIR ${yaml-cpp_INCLUDE_DIR}" ) #message( STATUS "YAML-CPP LIBRARIES ${YAML_CPP_LIBRARIES}" ) #message( STATUS "YAML-CPP LIBRARY ${yaml-cpp_LIBRARY}" ) else() message( STATUS "YAML-CPP WAS NOT FOUND" ) ExternalProject_Add(YAML_CPP GIT_REPOSITORY "https://github.com/jbeder/yaml-cpp.git" GIT_TAG "yaml-cpp-0.6.1" # "master" UPDATE_COMMAND "" PATCH_COMMAND "" INSTALL_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_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} -DYAML_CPP_BUILD_TESTS=OFF ) include_directories ("${CMAKE_INSTALL_PREFIX}/include/yaml-cpp") add_library(yaml-my-cpp SHARED IMPORTED) endif() if (LEMMA_ENABLE_TESTING) if (CXXTEST_FOUND) #message( STATUS "CXXTEST FOUND" ) else() #message( STATUS "CxxTest will be built and installed along with Lemma, override if desired in GUI." ) ExternalProject_Add(CxxTest GIT_REPOSITORY "https://github.com/CxxTest/cxxtest.git" GIT_TAG "master" UPDATE_COMMAND "" PATCH_COMMAND "" CONFIGURE_COMMAND "" BUILD_COMMAND "" INSTALL_COMMAND "" PREFIX ${CMAKE_CURRENT_BINARY_DIR}/external/CxxTest CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX} / -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} / -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} ) # The values "CACHE PATH "" FORCE" makes the GUI show the values of the local CxxTest, but this can cause issues # with users wanting to specify their own path, its not recommended #set (CXXTEST_INCLUDE_DIR "${CMAKE_CURRENT_BINARY_DIR}/external/CxxTest/src/CxxTest/") # CACHE PATH "" FORCE ) #set (CXXTEST_PYTHON_TESTGEN_EXECUTABLE "${CMAKE_CURRENT_BINARY_DIR}/external/CxxTest/src/CxxTest/bin/cxxtestgen") # CACHE PATH "" FORCE ) #find_package(CxxTest REQUIRED) endif() endif() # tinyxml2, this library is used for XML IO 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) # matio, this library is used for MATLAB file IO 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 ${CMAKE_CURRENT_BINARY_DIR}/external/matio/src/MATIO/autogen.sh && configure CONFIGURE_COMMAND ./autogen.sh && ./configure --prefix=${CMAKE_INSTALL_PREFIX} BUILD_IN_SOURCE 1 BUILD_COMMAND ${MAKE} ) endif() # vim: set tabstop=4 shiftwidth=4 expandtab: