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

前端 未结 2 695
生来不讨喜
生来不讨喜 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.

提交回复
热议问题