Совместимость с CMake 3.7
This commit is contained in:
parent
c04c9900c6
commit
399a9f2464
@ -33,6 +33,8 @@ function(myx_target_setup_qt TARGET_NAME)
|
||||
endif()
|
||||
if((${CMAKE_VERSION} VERSION_GREATER "3.8.0") AND (__target_type STREQUAL "OBJECT_LIBRARY"))
|
||||
target_link_libraries(${TARGET_NAME} PUBLIC Qt${myx_qt_ver}::${iter})
|
||||
else()
|
||||
target_include_directories(${TARGET_NAME} PUBLIC ${Qt${myx_qt_ver}${iter}_INCLUDE_DIRS})
|
||||
endif()
|
||||
endif()
|
||||
endforeach()
|
||||
@ -148,6 +150,6 @@ function(myx_target_setup_qt TARGET_NAME)
|
||||
FILES ${ARG_PUBLIC_MOC}
|
||||
DESTINATION ${CMAKE_INSTALL_PREFIX}
|
||||
COMPONENT DEV
|
||||
)
|
||||
)
|
||||
endif()
|
||||
endfunction()
|
||||
|
Loading…
x
Reference in New Issue
Block a user