Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMakeLists.txt #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

CMakeLists.txt #14

wants to merge 2 commits into from

Conversation

jcmayoral
Copy link

Install library

@mechandansinha
Copy link

I downloaded the Eigen library and was trying to link the external library in CMake but the current code didn't work. I had to modify it as follows -

cmake_minimum_required(VERSION 2.8.4)
project(kalman)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

# find_package(Eigen3 REQUIRED)
# include_directories(${"EIGEN3_INCLUDE_DIR"})

set(SOURCE_FILES kalman.cpp kalman-test.cpp)
add_executable(kalman-test ${SOURCE_FILES})
target_link_directories(kalman-test PUBLIC "../absolute_path_to_eigen-3.4.0")
target_link_libraries(kalman-test Eigen)

So cmake .. command is able to compile the project and populate the build directory but I don't see any makefile, hence make command is not working. Is there something I am missing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants