From fb49d7995ac6cb9fbe259d2d96a5bd43f5b115e0 Mon Sep 17 00:00:00 2001 From: Mikko Johannes Koivunalho Date: Sun, 20 Oct 2019 02:27:38 +0200 Subject: [PATCH] Add header check_stdint.h to public headers Signed-off-by: Mikko Johannes Koivunalho --- src/CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 437ea2a..53ebf64 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -138,10 +138,12 @@ endif (MSVC) # More configuration for exporting set(LIBRARY_OUTPUT_NAME "check") +list(APPEND public_headers "${CMAKE_CURRENT_BINARY_DIR}/check.h") +list(APPEND public_headers "${CMAKE_BINARY_DIR}/check_stdint.h") set_target_properties(check PROPERTIES OUTPUT_NAME ${LIBRARY_OUTPUT_NAME} - PUBLIC_HEADER ${CMAKE_CURRENT_BINARY_DIR}/check.h + PUBLIC_HEADER "${public_headers}" ) if (MSVC) @@ -154,16 +156,18 @@ set_target_properties(checkShared PROPERTIES OUTPUT_NAME ${LIBRARY_OUTPUT_NAME} VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR} - PUBLIC_HEADER ${CMAKE_CURRENT_BINARY_DIR}/check.h + PUBLIC_HEADER "${public_headers}" ) target_include_directories(check PUBLIC $ + $ $ ) target_include_directories(checkShared PUBLIC $ + $ $ ) -- 2.40.0