diff --git a/src/MagnumPlugins/MagnumFont/CMakeLists.txt b/src/MagnumPlugins/MagnumFont/CMakeLists.txt index e91405250..e77f1674e 100644 --- a/src/MagnumPlugins/MagnumFont/CMakeLists.txt +++ b/src/MagnumPlugins/MagnumFont/CMakeLists.txt @@ -30,7 +30,9 @@ set(MagnumFont_HEADERS MagnumFont.h) # Objects shared between plugin and test library -add_library(MagnumFontObjects OBJECT ${MagnumFont_SRCS}) +add_library(MagnumFontObjects OBJECT + ${MagnumFont_SRCS} + ${MagnumFont_HEADERS}) if(NOT BUILD_PLUGINS_STATIC OR BUILD_STATIC_PIC) set_target_properties(MagnumFontObjects PROPERTIES POSITION_INDEPENDENT_CODE ON) endif() diff --git a/src/MagnumPlugins/MagnumFontConverter/CMakeLists.txt b/src/MagnumPlugins/MagnumFontConverter/CMakeLists.txt index af66c6084..0fd471cd2 100644 --- a/src/MagnumPlugins/MagnumFontConverter/CMakeLists.txt +++ b/src/MagnumPlugins/MagnumFontConverter/CMakeLists.txt @@ -30,7 +30,9 @@ set(MagnumFontConverter_HEADERS MagnumFontConverter.h) # Objects shared between plugin and test library -add_library(MagnumFontConverterObjects OBJECT ${MagnumFontConverter_SRCS}) +add_library(MagnumFontConverterObjects OBJECT + ${MagnumFontConverter_SRCS} + ${MagnumFontConverter_HEADERS}) if(NOT BUILD_PLUGINS_STATIC OR BUILD_STATIC_PIC) set_target_properties(MagnumFontConverterObjects PROPERTIES POSITION_INDEPENDENT_CODE ON) endif()