diff --git a/fggl/CMakeLists.txt b/fggl/CMakeLists.txt index db822293244d1cc86d730cb65b627a62084005d4..9d1e65d4a5b3c972e4caf2a8685f8e3ddc7b38e8 100644 --- a/fggl/CMakeLists.txt +++ b/fggl/CMakeLists.txt @@ -1,6 +1,6 @@ # headers -file(GLOB HEADER_LIST CONFIGURE_DEPENDS "${fggl_SOURCE_DIR}/include/fggl/*.hpp" ) +file(GLOB_RECURSE HEADER_LIST CONFIGURE_DEPENDS "${fggl_SOURCE_DIR}/include/fggl/*.hpp" ) # the fggl library itself add_library(fggl ${HEADER_LIST}) @@ -8,8 +8,8 @@ add_library(fggl ${HEADER_LIST}) # we need to tell people using the library about our headers target_include_directories( fggl PUBLIC - $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/fggl> - $<INSTALL_INTERFACE:include/fggl> + $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> + $<INSTALL_INTERFACE:include> ) # users of this library need at least C++17