diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2017-03-02 16:13:41 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2017-03-06 21:01:03 (GMT) |
commit | 89780663b3f64eddf7dda2b5565935b73d92c146 (patch) | |
tree | a1a382d61b0ff74fd955667d556753c57b4416b3 /Tests/QtAutogen | |
parent | 9cad44dce264b509afc4b50b540b3a8594cf3217 (diff) | |
download | CMake-89780663b3f64eddf7dda2b5565935b73d92c146.zip CMake-89780663b3f64eddf7dda2b5565935b73d92c146.tar.gz CMake-89780663b3f64eddf7dda2b5565935b73d92c146.tar.bz2 |
Autogen: Test: Rename automoc_rerun test to mocRerun
Diffstat (limited to 'Tests/QtAutogen')
-rw-r--r-- | Tests/QtAutogen/CMakeLists.txt | 14 | ||||
-rw-r--r-- | Tests/QtAutogen/mocRerun/CMakeLists.txt (renamed from Tests/QtAutogen/automoc_rerun/CMakeLists.txt) | 4 | ||||
-rw-r--r-- | Tests/QtAutogen/mocRerun/input.txt (renamed from Tests/QtAutogen/automoc_rerun/input.txt) | 0 | ||||
-rw-r--r-- | Tests/QtAutogen/mocRerun/res1.qrc (renamed from Tests/QtAutogen/automoc_rerun/res1.qrc) | 0 | ||||
-rw-r--r-- | Tests/QtAutogen/mocRerun/test1.cpp (renamed from Tests/QtAutogen/automoc_rerun/test1.cpp) | 0 | ||||
-rw-r--r-- | Tests/QtAutogen/mocRerun/test1a.h.in (renamed from Tests/QtAutogen/automoc_rerun/test1.h.in1) | 0 | ||||
-rw-r--r-- | Tests/QtAutogen/mocRerun/test1b.h.in (renamed from Tests/QtAutogen/automoc_rerun/test1.h.in2) | 0 |
7 files changed, 9 insertions, 9 deletions
diff --git a/Tests/QtAutogen/CMakeLists.txt b/Tests/QtAutogen/CMakeLists.txt index 4b84486..bf40166 100644 --- a/Tests/QtAutogen/CMakeLists.txt +++ b/Tests/QtAutogen/CMakeLists.txt @@ -119,26 +119,26 @@ endif() # -- Test # Ensure a repeated build succeeds when a header containing a QObject changes try_compile(MOC_RERUN - "${CMAKE_CURRENT_BINARY_DIR}/automoc_rerun" - "${CMAKE_CURRENT_SOURCE_DIR}/automoc_rerun" - automoc_rerun + "${CMAKE_CURRENT_BINARY_DIR}/mocRerun" + "${CMAKE_CURRENT_SOURCE_DIR}/mocRerun" + mocRerun CMAKE_FLAGS "-DQT_QMAKE_EXECUTABLE:FILEPATH=${QT_QMAKE_EXECUTABLE}" "-DQT_TEST_VERSION=${QT_TEST_VERSION}" "-DCMAKE_PREFIX_PATH=${Qt_PREFIX_DIR}" OUTPUT_VARIABLE output ) if (NOT MOC_RERUN) - message(SEND_ERROR "Initial build of automoc_rerun failed. Output: ${output}") + message(SEND_ERROR "Initial build of mocRerun failed. Output: ${output}") endif() -configure_file(automoc_rerun/test1.h.in2 automoc_rerun/test1.h COPYONLY) +configure_file(mocRerun/test1b.h.in mocRerun/test1.h COPYONLY) execute_process(COMMAND "${CMAKE_COMMAND}" --build . - WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/automoc_rerun" + WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/mocRerun" RESULT_VARIABLE automoc_rerun_result ) if (automoc_rerun_result) - message(SEND_ERROR "Second build of automoc_rerun failed.") + message(SEND_ERROR "Second build of mocRerun failed.") endif() # -- Test diff --git a/Tests/QtAutogen/automoc_rerun/CMakeLists.txt b/Tests/QtAutogen/mocRerun/CMakeLists.txt index 92a682b..efe936e 100644 --- a/Tests/QtAutogen/automoc_rerun/CMakeLists.txt +++ b/Tests/QtAutogen/mocRerun/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.7) -project(automoc_rerun CXX) +project(mocRerun CXX) if (QT_TEST_VERSION STREQUAL 4) find_package(Qt4 REQUIRED) @@ -16,7 +16,7 @@ endif() set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) -configure_file(test1.h.in1 test1.h COPYONLY) +configure_file(test1a.h.in test1.h COPYONLY) add_executable(test1 ${CMAKE_CURRENT_BINARY_DIR}/test1.h diff --git a/Tests/QtAutogen/automoc_rerun/input.txt b/Tests/QtAutogen/mocRerun/input.txt index da62762..da62762 100644 --- a/Tests/QtAutogen/automoc_rerun/input.txt +++ b/Tests/QtAutogen/mocRerun/input.txt diff --git a/Tests/QtAutogen/automoc_rerun/res1.qrc b/Tests/QtAutogen/mocRerun/res1.qrc index fb804b5..fb804b5 100644 --- a/Tests/QtAutogen/automoc_rerun/res1.qrc +++ b/Tests/QtAutogen/mocRerun/res1.qrc diff --git a/Tests/QtAutogen/automoc_rerun/test1.cpp b/Tests/QtAutogen/mocRerun/test1.cpp index 4316a91..4316a91 100644 --- a/Tests/QtAutogen/automoc_rerun/test1.cpp +++ b/Tests/QtAutogen/mocRerun/test1.cpp diff --git a/Tests/QtAutogen/automoc_rerun/test1.h.in1 b/Tests/QtAutogen/mocRerun/test1a.h.in index fee2c09..fee2c09 100644 --- a/Tests/QtAutogen/automoc_rerun/test1.h.in1 +++ b/Tests/QtAutogen/mocRerun/test1a.h.in diff --git a/Tests/QtAutogen/automoc_rerun/test1.h.in2 b/Tests/QtAutogen/mocRerun/test1b.h.in index 6531d10..6531d10 100644 --- a/Tests/QtAutogen/automoc_rerun/test1.h.in2 +++ b/Tests/QtAutogen/mocRerun/test1b.h.in |