| 1 |
# Distributed under the original FontForge BSD 3-clause license |
| 2 |
|
| 3 |
add_library(fontforge_common_headers INTERFACE) |
| 4 |
|
| 5 |
include(FontForgeConfigure) |
| 6 |
fontforge_generate_config(fontforge-config.h.in fontforge-config.h) |
| 7 |
fontforge_generate_version_extras(fontforge-version-extras.h.in fontforge-version-extras.h) |
| 8 |
|
| 9 |
target_include_directories(fontforge_common_headers |
| 10 |
INTERFACE |
| 11 |
"${CMAKE_CURRENT_SOURCE_DIR}" |
| 12 |
"${CMAKE_CURRENT_BINARY_DIR}" |
| 13 |
) |
| 14 |
|
| 15 |
if(ENABLE_CODE_COVERAGE_RESULT) |
| 16 |
target_link_libraries(fontforge_common_headers |
| 17 |
INTERFACE |
| 18 |
Gcov::Gcov |
| 19 |
) |
| 20 |
endif() |