Путь к автоматически генерируемым заголовочным файлам

This commit is contained in:
Andrei Astafev 2019-02-14 22:33:08 +03:00
parent 4164852959
commit b98eb26b32

View File

@ -29,6 +29,8 @@ function(common_target_properties Name)
endif()
if(TARGET Qt5::Widgets)
set_target_properties(${Name} PROPERTIES AUTOUIC TRUE)
target_include_directories(${Name} PUBLIC
$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}_autogen/include>)
endif()
if(CMAKE_CXX_COMPILER_IS_GCC AND NOT APPLE)
set_target_properties(${Name} PROPERTIES LINK_FLAGS "-Wl,--no-as-needed")