Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qmake/Makefile variables
Forum Updated to NodeBB v4.3 + New Features

Qmake/Makefile variables

Scheduled Pinned Locked Moved Qt Creator and other tools
1 Posts 1 Posters 2.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    titetluc
    wrote on last edited by
    #1

    Hello all,

    I am currently developping a unit testing environment for developpers
    This environment is based on Qt/GTest

    I defined one additionnal target (using the QMAKE_EXTRA_TARGETS qmake variable) to start the unit tests

    $qmake
    $make test

    This is working fine.

    But my final objective is to be able to give some additional parameters to this target

    For example, I would to start the following command

    $qmake
    $make test --gtest_filter=MyTest.Basic --gtest_repeat=10

    How can I reach this objective using qmake mechanism?
    In other words, how can I configure qmake so that Makefile addionnal variables are taken into account?
    I search about this subject in this forum but without success

    This objective is easy when using the raw Makefile mechanism

    $ cat Makefile
    gtest_filter=
    all:
    echo $(gtest_filter)
    $ make gtest_filter=hello
    echo hello
    hello

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved