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

find eigen using config mode #99

Merged
merged 2 commits into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ifopt-config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#
#=============================================================================

find_dependency(Eigen3 REQUIRED)

# these are autogenerate by cmake
include("${CMAKE_CURRENT_LIST_DIR}/ifopt_core-targets.cmake")
Expand Down
6 changes: 4 additions & 2 deletions ifopt_core/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
find_package(Eigen3 REQUIRED)


Expand All @@ -15,7 +14,10 @@ target_include_directories(${LIB_CORE}
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/test>
$<INSTALL_INTERFACE:include>
${EIGEN3_INCLUDE_DIR}
)
target_link_libraries(${LIB_CORE}
PUBLIC
Eigen3::Eigen
)
# better specify features you need, not c++ version
target_compile_features(${LIB_CORE}
Expand Down
97 changes: 0 additions & 97 deletions ifopt_core/cmake/FindEigen3.cmake

This file was deleted.

268 changes: 0 additions & 268 deletions ifopt_core/cmake/FindGTest.cmake

This file was deleted.