the public headers checker in kate_generate_public() has served its purpose

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2019-12-19 13:33:20 +00:00
parent 5b1de5f573
commit a2dcf2c39f

View file

@ -22,14 +22,11 @@ macro(KATIE_GENERATE_PUBLIC PUBLIC_INCLUDES SUBDIR)
string(TOLOWER ${pubheader} pubname)
get_filename_component(pubname ${pubname} NAME_WE)
set(pubout ${CMAKE_BINARY_DIR}/include/${SUBDIR}/${pubheader})
set(pubcheck ${CMAKE_BINARY_DIR}/include/${SUBDIR}/${pubname}.h)
if(NOT EXISTS ${pubout})
file(WRITE ${pubout} "#include <${pubname}.h>\n")
endif()
if(NOT EXISTS ${pubcheck})
katie_warning("Bogus public header: ${pubheader} (${pubcheck})")
# qttestgui is exception because it requires explicit gui component linkage
elseif(NOT "${pubname}" STREQUAL "qttestgui")
if(NOT "${pubname}" STREQUAL "qttestgui")
set(metadata "${metadata}#include <${SUBDIR}/${pubname}.h>\n")
endif()
endforeach(pubheader)