CMake/Tests/RunCMake/ObsoleteQtMacros/UseModulesMacro-WARN.cmake
Stephen Kelly cb7f32f5b8 Mark qt4_use_modules and qt4_automoc as obsolete.
The QT_QMAKE_EXECUTABLE has to be passed through the cmake calls because
the executable may not be in the PATH.
2013-07-14 10:05:04 +02:00

8 lines
132 B
CMake

find_package(Qt4 REQUIRED)
set(CMAKE_WARN_DEPRECATED 1)
add_library(foo SHARED empty.cpp)
qt4_use_modules(foo LINK_PRIVATE Core)