Adding CMakeLists.txt to enable consuming Coyote as a library #108
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
As part of a master thesis, we are currently using Coyote to implement FPGA-based database operators. These operators will be integrated into the code base of an existing database. Therefore, we need to consume Coyote as a library from another C++ code base. This PR adds the CMake configurations that are required to consume Coyote as a library, because they have been missing up until now.
Once these changes are merged, one can build the /sw folder of Coyote as a library as follows:
The majority of the
CMakeLists.txt
file has been copied from the existingCMakeLists.txt
inside /cmake/FindCoyoteSW.cmake.Type of change
Tests & Results
I tried to consume Coyote as a library with the steps described above and the changes proposed in this PR. This worked without problems!
Checklist