So, this question is both yes and no. Can you build CMake projects directly from premake? No. However, that doesn't mean it's not possible using alternative methods.
Here are some possible solutions:
- Because premake is just lua, you could use os.execute(), and pass along your cmake build command, at the top of the premake file. Then, later down in the file, just link the newly generated library.
- Make a batch script called something like "build.bat", that builds the cmake library, and runs the premake file, which includes the newly generated library file.