How to place header and ui file in different folders using autouic in cmake

前端 未结 2 694
生来不讨喜
生来不讨喜 2021-01-05 09:26

According to the documentation, regarding autouic:

If a preprocessor #include directive is found which matches ui_.h, and a .ui file exists, then uic

相关标签:
2条回答
  • 2021-01-05 10:07

    Issue mentioned in this answer is now resolved.

    This worked in CMake v3.9.0-rc6:

    set(CMAKE_AUTOUIC_SEARCH_PATHS your/folder/here)
    

    See documentation of AUTOUIC_SEARCH_PATHS.

    0 讨论(0)
  • 2021-01-05 10:17

    Update

    A search path, CMAKE_AUTOUIC_SEARCH_PATHS, has been added to CMake version 3.9.


    After further investigation, it seems like it's not possible to do. There is an open issue in their tracking system, but it is so far not implemented:

    Add Search path for AUTOUIC

    0 讨论(0)
提交回复
热议问题