Skip to content

Commit

Permalink
Add back public headers (#245)
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas Heitzmann Gabrielli <[email protected]>
  • Loading branch information
heitzmann committed Apr 18, 2024
1 parent 46b4e92 commit d10b475
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,11 @@ set(SOURCE_LIST

add_library(gdstk ${SOURCE_LIST} ${HEADER_LIST})

target_compile_features(gdstk PUBLIC cxx_std_11)

set_target_properties(gdstk PROPERTIES POSITION_INDEPENDENT_CODE ON)

target_compile_features(gdstk PUBLIC cxx_std_11)
set_target_properties(gdstk PROPERTIES PUBLIC_HEADER "${HEADER_LIST}")

target_include_directories(gdstk PUBLIC
$<BUILD_INTERFACE:${gdstk_SOURCE_DIR}/include>
Expand All @@ -99,4 +101,5 @@ source_group(
install(TARGETS gdstk
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/gdstk)
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/gdstk
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/gdstk)

0 comments on commit d10b475

Please sign in to comment.