mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
With a similar commit in Qt 5, this will error at CMake time if an attempt is made to use target_link_libraries(foo Qt4::QtCore Qt5::Core)
7 lines
146 B
CMake
7 lines
146 B
CMake
|
|
find_package(Qt4 REQUIRED)
|
|
find_package(Qt5Core REQUIRED)
|
|
|
|
add_executable(mainexe main.cpp)
|
|
target_link_libraries(mainexe Qt4::QtCore Qt5::Core)
|