是否可以替换
list(APPEND HDR "zert.h" )
if(MSVC)
list(APPEND HDR "pstdint.h")
endif()
带有generator-expression?
最终安装将是
set_target_properties(${PROJECT_NAME} PROPERTIES PUBLIC_HEADER "${HDR}")
install(TARGETS ${PROJECT_NAME}
PUBLIC_HEADER DESTINATION "include"
)