CMake & Makefile
Në shqip përdoret i njëjti emër.
ShpjegimiSQ
Kur projekti ka shumë skedarë, s'i kompajlon me dorë: Makefile-i ose CMake-u i shkruajnë një herë hapat e ndërtimit, dhe pastaj mjafton një komandë. CMake-u është standardi i sotëm për projektet C++ — si Maven-i për Java-n.
EnglishEN
When a project has many files, you don't compile them by hand: a Makefile or CMake writes down the build steps once, and then one command is enough. CMake is today's standard for C++ projects — like Maven for Java.
Si ta mendosh
Si udhëzimet e montimit të një dollapi IKEA: i ndjek hap pas hapi, dhe rezultati del njësoj çdo herë.
Lexoje në anglisht
Like the assembly instructions for an IKEA wardrobe: follow them step by step and you get the same result every time.
Shembull kodicmake
cmake_minimum_required(VERSION 3.20)
project(Loja)
add_executable(loja main.cpp loja.cpp)