In addition to generating CMake files, this generator corrects the CLion project root path to the Premake script's directory instead of the generated CMakeLists.txt's directory.
Depends on https://github.com/Enhex/premake-cmake being already installed.
-
Put these files in a
clion
subdirectory in one of Premake's search paths. -
Add the line
require "clion"
preferably to your premake-system.lua, or to your premake5.lua script. -
Generate
premake5 clion