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. [Solved] qmake: compiling Pro*C source files (Windows)

[Solved] qmake: compiling Pro*C source files (Windows)

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 1 Posters 2.4k Views
  • 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.
  • D Offline
    D Offline
    dword
    wrote on 30 Mar 2011, 11:55 last edited by
    #1

    Hi all,
    I need to add specific compiler for a Pro*C file (yes, just one) in my project. I read the "Customizing Makefile Output" part in the qmake documentation, so I did:
    @
    TEMPLATE = app

    Input

    HEADERS += dynamicsql.h
    SOURCES += dynamicsql.pc

    proc.output = ${QMAKE_FILE_BASE}.c
    proc.command = echo ${QMAKE_FILE_OUT}
    proc.depend_command = echo ${QMAKE_FILE_BASE}
    proc.input = SOURCES
    QMAKE_EXTRA_COMPILERS += proc
    @
    Then I run qmake: 'qmake -tp vc'
    My .proc file does not have any compiler rule, do I've check the makefile generated with a basic 'qmake'. I don't see anything about my build rule.
    What may be wrong?
    Thank you for your help!

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dword
      wrote on 30 Mar 2011, 13:20 last edited by
      #2

      hum, hem, my bad, just needed to add an 's' to 'proc.command' (so it's proc.commands)

      1 Reply Last reply
      0

      1/2

      30 Mar 2011, 11:55

      • Login

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