Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libcifpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
libcifpp
Commits
e4ae19a6
Unverified
Commit
e4ae19a6
authored
Nov 22, 2023
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleaner makefile
parent
9cba754e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
CMakeLists.txt
+12
-7
No files found.
CMakeLists.txt
View file @
e4ae19a6
...
...
@@ -199,20 +199,22 @@ endif()
find_package
(
ZLIB REQUIRED
)
find_package
(
Eigen3
REQUIRED
)
find_package
(
Eigen3
QUIET
)
if
(
NOT Eigen3_FOUND
)
FetchContent_Declare
(
eigen3
if
(
Eigen3_FOUND
)
get_target_property
(
EIGEN_INCLUDE_DIR Eigen3::Eigen INTERFACE_INCLUDE_DIRECTORIES
)
else
()
ExternalProject_Add
(
local_Eigen3
GIT_REPOSITORY https://gitlab.com/libeigen/eigen.git
GIT_TAG 3.4.0
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=
${
CMAKE_CURRENT_BINARY_DIR
}
/external
)
FetchContent_MakeAvailable
(
eigen3
)
set
(
EIGEN3_D local_Eigen3
)
set
(
EIGEN_INCLUDE_DIR
${
CMAKE_CURRENT_BINARY_DIR
}
/external/include
)
endif
()
get_target_property
(
EIGEN_INCLUDE_DIR Eigen3::Eigen INTERFACE_INCLUDE_DIRECTORIES
)
include
(
FindFilesystem
)
list
(
APPEND CIFPP_REQUIRED_LIBRARIES
${
STDCPPFS_LIBRARY
}
)
...
...
@@ -355,6 +357,9 @@ else()
endif
()
target_compile_definitions
(
cifpp PUBLIC DATA_DIR=
"
${
CIFPP_DATA_DIR
}
"
)
if
(
${
EIGEN3_D
}
)
add_dependencies
(
cifpp
${
EIGEN3_D
}
)
endif
()
if
(
UNIX
)
if
(
"
${
CMAKE_PREFIX_PATH
}
"
STREQUAL
"/usr/local"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment