[CMake] cmake-qt: controlling includes order

Stephen Kelly steveire at gmail.com
Tue Jun 30 17:28:59 EDT 2015


Bill Somerville wrote:

> Any ideas how I can control the ordering or reorder the
> TARGET_INCLUDE_DIRECTORIES property?


 add_executable(hello main.cpp)
 target_link_libraries(hello Qt5::Widgets)
 target_include_directories(
   $<TARGET_PROPERTY:Qt5::Widgets,INTERFACE_INCLUDE_DIRECTORIES>
   ${otherIncludes}
 )

Thanks,

Steve.



More information about the CMake mailing list