Skip to content

Improve cmake package install#535

Open
Faroito wants to merge 3 commits intomfontanini:masterfrom
Faroito:improve_cmake_package_install
Open

Improve cmake package install#535
Faroito wants to merge 3 commits intomfontanini:masterfrom
Faroito:improve_cmake_package_install

Conversation

@Faroito
Copy link
Copy Markdown

@Faroito Faroito commented Jul 19, 2024

This MR tries to uses more modern CMake mecanism for libtins config file. The main changes are:

  • Make installed package relocatable by making path relatives to the install tree (related to Make package relocatable (fixes #101) #107)
  • Install FindPCAP.cmake in the install tree to be able to find automatically the dependency when searching for libtins
  • Set the include directory interface directly on target

It also fixes #101

Faroito added 3 commits July 19, 2024 13:44
- Use CMakePackageConfigHelpers macro to generate the config file.
- Uses relative path to seach for libtins includes.
- Install the FindPCAP.cmake file & search for PCAP dependency
- Set the include directory interface directly on target
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.

Installed package not relocatable

1 participant