TriBITS icon indicating copy to clipboard operation
TriBITS copied to clipboard

Add support for header-only libraries with tribits_add_library()

Open bartlettroscoe opened this issue 9 months ago • 3 comments
trafficstars

Description

With the move to modern CMake, it should now be easy to support header-only libraries with tribits_add_library(). The idea would be to provide a new keyword HEADERONLY that would allow the SOURCES <src0> <src1> ... argument to be missing. Then an interface-only CMake target would get created.

The hardest parts of adding this new feature is adding a test case for all of the supported use cases and adding documentation.

Motivating user is the STK package in Trilinos.

bartlettroscoe avatar Feb 17 '25 22:02 bartlettroscoe