c18a41197f
This ensures that we only find Qt5 modules from the same directory as modules we have already found, not from multiple different directories which may be incompatible. Change-Id: I7ad1d81ec41bba2e543130740041338ba44a6c3b Reviewed-by: Alexander Neundorf <neundorf@kde.org> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
17 lines
258 B
CMake
17 lines
258 B
CMake
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
project(pass1)
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
add_executable(two two.cpp)
|
|
add_executable(three three.cpp)
|
|
|
|
find_package(Qt5Core)
|
|
|
|
qt5_use_modules(two Test)
|
|
qt5_use_modules(three Widgets Test)
|