CMake- fix building GUI from different directory.

This commit is contained in:
Kimmo Varis 2009-12-19 18:15:48 +02:00
parent 59ea59b5be
commit c988b14fb5
1 changed files with 4 additions and 1 deletions

View File

@ -8,6 +8,10 @@ set(QT_USE_QTMAIN TRUE)
set(QT_USE_QTXML TRUE)
include(${QT_USE_FILE})
include_directories (${CPPCHECK_SOURCE_DIR}/lib)
# Generated files (in build directory) need to know gui directory
include_directories (${CPPCHECK_SOURCE_DIR}/gui)
# Header files - listed for mocking
SET(CHECK_HEADERS
aboutdialog.h
@ -108,7 +112,6 @@ QT4_WRAP_CPP(CHECK_MOC_SRCS ${CHECK_HEADERS})
# add translations ...
QT4_ADD_TRANSLATION(CHECK_QM ${CHECK_TRANS})
include_directories (${CPPCHECK_SOURCE_DIR}/lib)
# Include binary directory where code from UI files gets created
include_directories(${CMAKE_CURRENT_BINARY_DIR})