SHSTKQtMacros.cmake private headers fix

This commit is contained in:
2020-09-07 15:43:16 +03:00
parent e4a4c88d23
commit d1a11269f7

View File

@@ -156,7 +156,9 @@ macro(shstk_qt_project NAME IS_APP DOMAIN _MODULES _LIBS)
endif()
qt_target_link_libraries(${PROJECT_NAME} ${_LIBS})
file(GLOB_RECURSE PHS "*_p.h")
if ((NOT "x${out_HDR}" STREQUAL "x") AND (NOT "x${PHS}" STREQUAL "x"))
list(REMOVE_ITEM out_HDR "${PHS}")
endif()
#message(STATUS "Building ${PROJECT_NAME}")
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/plugin")
set(_${NAME}_PLUGIN_LIBS "${_LIBS}")