fixing problem with packaging

Multiline strings are problematic in cmake.
This commit is contained in:
Christian Burger 2022-05-21 00:05:07 +02:00
parent ba378b2a43
commit 4b709c92fb

View file

@ -45,15 +45,16 @@ add_executable(kNCursesDemoApp main.cpp DemoApp.cpp)
target_link_libraries(kNCursesDemoApp kNCurses)
### installation and packaging
set(NCURSES_SYSTEM_INCLUDE "include/kNCurses")
set(KNCURSES_SYSTEM_INCLUDE "include/kNCurses")
string(CONCAT KNCURSES_PUBLIC_HEADERS "${KNCURSES_SYSTEM_INCLUDE}/Window.hpp;"
"${KNCURSES_SYSTEM_INCLUDE}/SingleUserInput.hpp;"
"${KNCURSES_SYSTEM_INCLUDE}/PtyWindow.hpp;"
"${KNCURSES_SYSTEM_INCLUDE}/TilingWindowManager.hpp;"
"${KNCURSES_SYSTEM_INCLUDE}/VerticalTilingWindowManager.hpp;"
"${KNCURSES_SYSTEM_INCLUDE}/HorizontalTilingWindowManager.hpp;"
)
set_target_properties(kNCurses PROPERTIES
PUBLIC_HEADER "${NCURSES_SYSTEM_INCLUDE}/Window.hpp;
${NCURSES_SYSTEM_INCLUDE}/SingleUserInput.hpp;
${NCURSES_SYSTEM_INCLUDE}/PtyWindow.hpp;
${NCURSES_SYSTEM_INCLUDE}/TilingWindowManager.hpp;
${NCURSES_SYSTEM_INCLUDE}/VerticalTilingWindowManager.hpp;
${NCURSES_SYSTEM_INCLUDE}/HorizontalTilingWindowManager.hpp;
"
PUBLIC_HEADER "${KNCURSES_PUBLIC_HEADERS}"
VERSION "${CMAKE_PROJECT_VERSION}")
include(GNUInstallDirs)
install(TARGETS kNCurses ARCHIVE