Compare commits
1 Commits
4164852959
...
b98eb26b32
Author | SHA1 | Date | |
---|---|---|---|
b98eb26b32 |
@@ -29,6 +29,8 @@ function(common_target_properties Name)
|
|||||||
endif()
|
endif()
|
||||||
if(TARGET Qt5::Widgets)
|
if(TARGET Qt5::Widgets)
|
||||||
set_target_properties(${Name} PROPERTIES AUTOUIC TRUE)
|
set_target_properties(${Name} PROPERTIES AUTOUIC TRUE)
|
||||||
|
target_include_directories(${Name} PUBLIC
|
||||||
|
$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}_autogen/include>)
|
||||||
endif()
|
endif()
|
||||||
if(CMAKE_CXX_COMPILER_IS_GCC AND NOT APPLE)
|
if(CMAKE_CXX_COMPILER_IS_GCC AND NOT APPLE)
|
||||||
set_target_properties(${Name} PROPERTIES LINK_FLAGS "-Wl,--no-as-needed")
|
set_target_properties(${Name} PROPERTIES LINK_FLAGS "-Wl,--no-as-needed")
|
||||||
|
Reference in New Issue
Block a user