diff options
author | Dominik Holland <dominik.holland@qt.io> | 2021-02-17 17:34:35 +0100 |
---|---|---|
committer | Dominik Holland <dominik.holland@qt.io> | 2021-05-10 17:28:11 +0200 |
commit | 8e3d637e7776638149119bd62f459178cbca2955 (patch) | |
tree | 077f7a597039a05555da2c2fe33c1535227dd35e /tests/auto/core/ivigenerator/projects/org-example-echo/backend_simulator/CMakeLists.txt | |
parent | eac2590d4266e234f0f2ec4d261d940b14dd79bf (diff) |
cmake integration of the ivigenerator
Rerun pro2cmake.py for all examples and tests.
Ivigenerator based tests and examples are compiling
fine, but the cmake files need to be reworked to be
also able to run them.
Task-number: AUTOSUITE-1633
Change-Id: Icb95ecfa62ecb319d042dc30ea9f643b69a4aacf
Reviewed-by: Robert Griebl <robert.griebl@qt.io>
Diffstat (limited to 'tests/auto/core/ivigenerator/projects/org-example-echo/backend_simulator/CMakeLists.txt')
-rw-r--r-- | tests/auto/core/ivigenerator/projects/org-example-echo/backend_simulator/CMakeLists.txt | 39 |
1 files changed, 18 insertions, 21 deletions
diff --git a/tests/auto/core/ivigenerator/projects/org-example-echo/backend_simulator/CMakeLists.txt b/tests/auto/core/ivigenerator/projects/org-example-echo/backend_simulator/CMakeLists.txt index fbbc287..a6e95bd 100644 --- a/tests/auto/core/ivigenerator/projects/org-example-echo/backend_simulator/CMakeLists.txt +++ b/tests/auto/core/ivigenerator/projects/org-example-echo/backend_simulator/CMakeLists.txt @@ -1,27 +1,24 @@ # Generated from backend_simulator.pro. +set(CMAKE_INCLUDE_CURRENT_DIR ON) -##################################################################### -## echo_simulator Generic Library: -##################################################################### +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) -qt_add_cmake_library(echo_simulator - MODULE - OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../qtivi" - SOURCES - backend_simulator.cpp - INCLUDE_DIRECTORIES - ${CMAKE_CURRENT_BINARY_DIR}/../frontend - PUBLIC_LIBRARIES - # Remove: L${CMAKE_CURRENT_BINARY_DIR}/.. - Qt::Core - Qt::Gui - Qt::IviCore +qt_add_plugin(echo_simulator) +target_sources(echo_simulator PRIVATE + backend_simulator.cpp ) -qt_disable_warnings(echo_simulator) -#### Keys ignored in scope 1:.:.:backend_simulator.pro:<TRUE>: -# QFACE_FORMAT = "backend_simulator" -# QFACE_SOURCES = "../../../org.example.echo.qface" -# TEMPLATE = "lib" +# IVI Generator: +qt6_ivigenerator(echo_simulator + QFACE_SOURCES ../../../org.example.echo.qface + QFACE_FORMAT backend_simulator +) -qt_autogen_tools_initial_setup(echo_simulator) +target_link_libraries(echo_simulator PUBLIC + echo_frontend + Qt::Core + Qt::Gui + Qt::IviCore +) |