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

modernize cmake #1

Closed
prudhomm opened this issue Jul 6, 2023 · 0 comments · Fixed by #2
Closed

modernize cmake #1

prudhomm opened this issue Jul 6, 2023 · 0 comments · Fixed by #2
Assignees
Labels
enhancement New feature or request

Comments

@prudhomm
Copy link
Member

prudhomm commented Jul 6, 2023

The cmake configuration can be improved in various ways:

  • add install statements
  • simplify executable generation and maintenance
  • add packaging configuration
  • remove include_directory and replace with target_link_libraries that allows to pass the necessary flags automatically
  • add googletest as submodule
  • add CMake preset support for vscode

see eg here https://cliutils.gitlab.io/modern-cmake/ for modern cmake

now installation looks like

cmake --preset default
cmake --build --preset default
ctest --preset default
@prudhomm prudhomm self-assigned this Jul 6, 2023
@prudhomm prudhomm added the enhancement New feature or request label Jul 6, 2023
prudhomm added a commit that referenced this issue Jul 6, 2023
- add googletest as submodule
- add cmake preset support
- use modern cmake
@prudhomm prudhomm linked a pull request Jul 6, 2023 that will close this issue
prudhomm added a commit that referenced this issue Jul 8, 2023
prudhomm added a commit that referenced this issue Jul 8, 2023
- enable testing at toplevel
- remove googletest clone from workflow( simplification)
- detect eigen3 locally

/cc @bab2min
prudhomm added a commit that referenced this issue Jul 8, 2023
try fix CI (detection of Eigen3)
prudhomm added a commit that referenced this issue Jul 8, 2023
prudhomm added a commit that referenced this issue Jul 8, 2023
prudhomm added a commit that referenced this issue Jul 8, 2023
prudhomm added a commit that referenced this issue Jul 8, 2023
prudhomm added a commit that referenced this issue Jul 8, 2023
prudhomm added a commit that referenced this issue Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant