Closed skfzyy closed 2 years ago
Hi,
This type of error usually happen if the generator doesn't support custom commands. I think that this is a problem coming from this cmake/cmake
addon that you seem to be using.
Try to use a custom command in your project, and check if the generated CMake file contains that command. If it doesn't, I suggest to open an issue on the cmake
addon page, because I can't do anything. And if it does contain the custom command, it might be some bug in my addon, in which case I will need the link to that cmake
addon, in order to reproduce the issue.
premake-cmake has been updated to support custom build.
For info, I'm in the process to add premake-qt in my testing project premake-sample-projects. It currently (partially) works for cmake/codeblocks/codelite/ninja/vs*. (I have quote issues). It doesn't work for gmake2 which seems to work differently to visit files :-/.
Hi, thanks for the update, so it indeed was an issue with the cmake addon :) I'm closing this issue then. For the problems with gmake2 action, there's the specific issue (still opened unfortunately, I wish I had more time T_T) and if you have any other issue with other actions, feel free to open issues for those.
Regards, Damien.
sorry for disturbing you. I encounter some issues when using premake-qt
there is my premake script:
and there is my c++ file which needs to generate a moc file:
I plan to use the CMake module of premake to generate CMakeLists.txt. when I run "premake5 cmake" , it runs succeeded but next, when I run cmake -B Build, the cmake report does not find QtMoc moc_XXXX.h error.
and I find the QtMoc folder does not have anything(or it means that the moc files are not generated)
I don't know whether I use premake-qt in the wrong way or should I change my premake script?