Skip to content

Commit

Permalink
fixed cmake file so that it does not need to be run twice
Browse files Browse the repository at this point in the history
  • Loading branch information
RossHartley committed Sep 26, 2018
1 parent e64179f commit 85ee4b0
Show file tree
Hide file tree
Showing 33 changed files with 6 additions and 12 deletions.
16 changes: 5 additions & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
# Specify the minimum version for CMake
cmake_minimum_required(VERSION 2.8.3)
# set(CMAKE_CXX_STANDARD 11)
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g") # Debugging
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
# Project's name
project(inekf)

# Set compiler flags
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O3 -DEIGEN_NO_DEBUG -march=native -Wl,--no-as-needed")
SET(CMAKE_CXX_COMPILER /usr/bin/g++)
# -O3 -DEIGEN_NO_DEBUG sped up large matrix multiplication by a factor of 10
# -march=native further sped up large matrix multiplication by a factor of 2

# Project's name
project(inekf)

# Set the output folder where your program will be created
#set(CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/bin)
#set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})
#set(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/lib)
# Set the output folder where your program will be created
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

% Add paths
addpath(genpath('forward_kinematics'))
addpath('example_code')
addpath('InEKF')

%% Open Model
mdl = 'RIEKF_test';
Expand Down

0 comments on commit 85ee4b0

Please sign in to comment.