I've been working on some kind of "game engine" in c++ and every time I launch my "engine" it's compiling all files again which takes not too much time right now, but I think it will when I'll be adding new files. I am using vs code and my "args" in tasks.json currently look like this:
    "args": [
            "-g",
            "include\\implementation\\engine\\my_time.cpp",
            "include\\implementation\\engine\\texture_render.cpp",
            "include\\implementation\\engine\\game.cpp",
            "include\\implementation\\engine\\additional_draw.cpp",
            "include\\implementation\\engine\\vector2.cpp",
            "include\\implementation\\engine\\color.cpp",
            "include\\implementation\\engine\\my_math.cpp",
            "include\\implementation\\game\\planet.cpp",
            "src\\main.cpp",
            "-o",
            "build\\game.exe",
            "-IC:/SDL2-2.0.14/i686-w64-mingw32/include",
            "-LC:/SDL2-2.0.14/i686-w64-mingw32/lib",
            "-lmingw32",
            "-lSDL2main",
            "-lSDL2",
            "-lSDL2_ttf",
            "-mwindows"
        ]
So my question is that, is there any way to avoid all that recompilation?