Thanks for the reply.
Problem is, This is C++ code. The project is located at ~/Projects. Because I use cmake and like to have a different build location it is mostiyl build at ~/Desktop/$project_name/ or $temp/$project_name.
The main build is to run cmake --build to execute make or MSVC. I use variants to run “cmake -G … $project_path” to create the Makefile, run tests or run the compiled application.
For example:
[code] “build_systems”:
{
"name": "MyProject",
"working_dir": "C:/Users/Silberling/Desktop/$project_name",
"shell_cmd": "cmake --build .",
"variants":
{
"name": "CMake Debug",
"shell_cmd": "cmake -G \"MinGW Makefiles\" -DCMAKE_BUILD_TYPE=Debug $project_path"
},
{
"name": "CMake Release",
"shell_cmd": "cmake -G \"MinGW Makefiles\" -DCMAKE_BUILD_TYPE=Release $project_path"
},
{
"name": "Test",
"shell_cmd": "cmake --test .",
"shell": true
},
{
"name": "Run",
"shell_cmd": "MyProjectBinary some arguments",
"shell": true
},
{
"name": "Clean",
"shell_cmd": "cmake --clean ."
}
]
}
][/code]
(Incomplete build description)
The platform specific options might suite my needs. They have to work with the variants. I’m going to take a look at them this weekend.