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

"Daqify" cmake structure #1

Merged
merged 3 commits into from
Aug 26, 2024
Merged

"Daqify" cmake structure #1

merged 3 commits into from
Aug 26, 2024

Conversation

andrewmogan
Copy link
Contributor

After unsuccessfully trying to build tpglibs in a local dunedaq area based on the latest nightly, NFD_DEV_240823_A9, I noticed the cmake structure wasn't very "dunedaq-y." This PR modifies the CMakeLists.txt and the unittest directory to be more conformant to the dunedaq structure:

  • Use daq_setup_environment() for consistent build environment
  • Use daq_add_library() to link dependencies
  • Add daq_add_python_bindings() for python bindings
  • Use daq_install() to install the project
  • Use daq_add_unit_test() to find unit tests
  • Append _test to unit test file names to that they can be found by daq_add_unit_test()

With these changes, I'm able to build tpglibs in a local dunedaq area based on NFD_DEV_240823_A9.

- Append _test to unit test file names. This allows them to be found by the daq_add_unit_test() function
- Remove the unittest directory's CMakeLists
- Add daq_setup_environment to ensure consistent build environment
- Use daq_add_library to link dependencies
- Add daq_add_python_bindings
- Use daq_add_unit_test to handle unit tests (see previous commit)
- Use daq_install() to install the project
@andrewmogan
Copy link
Contributor Author

Closing because Alex pointed out that this repo is intended to be used offline, more similar to triggeralgs.

@andrewmogan andrewmogan reopened this Aug 26, 2024
@andrewmogan
Copy link
Contributor Author

After further discussion, Alessandro requested that the CMakeLists here use daq-cmake functions after all.

Copy link
Contributor

@jcfreeman2 jcfreeman2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've confirmed that on this feature branch the repo now builds in a container based on the ghcr.io/dune-daq/nightly-release-alma9:development_v5 image

@jcfreeman2 jcfreeman2 merged commit b26a18a into develop Aug 26, 2024
1 check failed
@jcfreeman2 jcfreeman2 deleted the amogan/daqify_cmakelists branch August 26, 2024 16:18
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