fips icon indicating copy to clipboard operation
fips copied to clipboard

Support header-only (interface) targets

Open mattiasljungstrom opened this issue 6 years ago • 1 comments

similar to this cmake setup:

add_library(lib1 INTERFACE) target_sources(lib1 INTERFACE header_file.h) target_include_directories(lib1 INTERFACE .)

mattiasljungstrom avatar May 21 '19 15:05 mattiasljungstrom

Not currently. If the header-only lib is in its own fips project you can export header-search paths, like here:

https://github.com/floooh/sokol/blob/master/fips.yml

The headers won't be added to IDE projects though. I think it's worth doing though, if fips detects that there are no source files in a library (only headers), it could create such a interface library (I need to check whether the cmake version requirement isn't too harsh though, I wanted to use such "empty targets" before, and add all sources with target_sources(), but this feature required a really recent cmake version.

floooh avatar May 22 '19 08:05 floooh