# Cmake setting in vscode

**URL:** https://discourse.slicer.org/t/cmake-setting-in-vscode/28981
**Category:** Development
**Tags:** build, cmake
**Created:** [April 18, 2023, 7:30am UTC](https://discourse.slicer.org/t/cmake-setting-in-vscode/28981 "2023-04-18T07:30:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![park](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/park/32/5717_2.png) [@park](https://discourse.slicer.org/u/park)
#### Post date: [April 18, 2023, 7:30am UTC](https://discourse.slicer.org/t/cmake-setting-in-vscode/28981/1 "2023-04-18T07:30:06Z")

</div>

Hi all,

I am tring to create an enviornment for 3D slicer using vscode.  
I have built my project using the “setting.json” as shown below:

```auto
{
    "cmake.configureArgs": [
        "-DCMAKE_BUILD_TYPE=Debug",
        "-G", "Visual Studio 17 2022",
        "-DCMAKE_CONFIGURATION_TYPES:STRING=Debug",
        "-DCMAKE_INSTALL_PREFIX:PATH=install",
        "-DCMAKE_VERBOSE_MAKEFILE:BOOL=OFF",
        "-DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON"
      ],

    "cmake.configureSettings": {
        "CMAKE_GENERATOR_TOOLSET": "host=x64",
        "Qt5_DIR": "C:/Qt/5.15.2/msvc2019_64/lib/cmake/Qt5"
    },
    "cmake.buildDirectory": "D:/BUILD_Slicer/S5D",

}

```

The build is successful without any errors. However, whenever I make changes to some code and rebuild, all codes are built again instead of just the edited code. This is very time-consuming. Is there any way to solve this problem?

Tae Young Park
