diff --git a/fggl/CMakeLists.txt b/fggl/CMakeLists.txt index 9d1e65d4a5b3c972e4caf2a8685f8e3ddc7b38e8..968b06339e0288c6a6b1937486d9d557f50c2ac9 100644 --- a/fggl/CMakeLists.txt +++ b/fggl/CMakeLists.txt @@ -1,6 +1,6 @@ # headers -file(GLOB_RECURSE HEADER_LIST CONFIGURE_DEPENDS "${fggl_SOURCE_DIR}/include/fggl/*.hpp" ) +file(GLOB_RECURSE HEADER_LIST CONFIGURE_DEPENDS "${CMAKE_SOURCE_DIR}/include/fggl/**.hpp" ) # the fggl library itself add_library(fggl ${HEADER_LIST}) @@ -8,7 +8,7 @@ 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> + $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include> )