Search code examples
cmakepremake

How to build and use CMake C++ libraries with Premake?


Is there a good and easy way to build CMake projects using Premake and incorporate (link, include, etc.) them?


Solution

  • Premake doesn't have native facilities to incorporate CMake projects in their scripts.

    You might still run application from premake/Lua if wanted.

    I would just build and install 3rd party using their build system (unless you convert their script to premake's one).

    Then regular project usage just have includedirs/libdirs/links possibly defines to be set. so use them as any system library.