EKF: add check for existence of matrix submodule

This commit is contained in:
bugobliterator 2016-02-17 17:50:24 -08:00
parent 64a7b14171
commit a40eb7cf37

View File

@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8)
project (ECL CXX)
set(CMAKE_BUILD_TYPE Release)
set(CMAKE_CURRENT_SOURCE_DIR EKF)
set(CMAKE_CURRENT_SOURCE_DIR ./)
set(CMAKE_CXX_FLAGS "-DPOSIX_SHARED")
set (EIGEN3_INCLUDE_DIR "/usr/local/include/eigen3/")
@ -11,6 +11,12 @@ IF( NOT EIGEN3_INCLUDE_DIR )
ENDIF()
INCLUDE_DIRECTORIES ( "${EIGEN3_INCLUDE_DIR}" )
if( NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../matrix/.git" )
message( SEND_ERROR "The git submodules are not available. Please run
git submodule update --init --recursive"
)
endif()
include_directories(
./
../