mirror of
https://github.com/boostorg/gil.git
synced 2026-02-02 08:52:10 +00:00
First stab at collection of CMakeLists.txt for Boost.GIL
- Allow building and testing boostorg/gil against Boost from
cloned superproject or installed distribution.
Add CMakeSettings.json config file for VS2017 integration with CMake
- Defines build configurations for VS and Ninja generators.
- Can be used as is or as a template ready to customise.
Add conanfile.txt for Conan package manager (eg. for cmake -DGIL_USE_CONAN=ON).
Add .editignore file to with basic encoding of CMake and CI scripts.
Update .appveyor.yml with two extra CMake-based builds (allowed to fail).
134 lines
3.9 KiB
JSON
134 lines
3.9 KiB
JSON
{
|
|
"_comment": "CMakeSettings.json for building Boost.GIL tests and examples. See https://go.microsoft.com//fwlink//?linkid=834763 for more information about CMake integration with Visual Studio 2017 and this file.",
|
|
"environments": [
|
|
{
|
|
"BuildDir": "${workspaceRoot}\\_build"
|
|
},
|
|
{
|
|
"InstallDir": "${workspaceRoot}\\_install"
|
|
}
|
|
],
|
|
"configurations": [
|
|
{
|
|
"name": "x64-Debug-Ninja",
|
|
"generator": "Ninja",
|
|
"configurationType": "Debug",
|
|
"inheritEnvironments": [ "msvc_x64_x64" ],
|
|
"buildRoot": "${env.BuildDir}\\${name}",
|
|
"installRoot": "${env.InstallDir}\\${name}",
|
|
"cmakeCommandArgs": "",
|
|
"buildCommandArgs": "-v",
|
|
"ctestCommandArgs": "",
|
|
"variables": [
|
|
{ "name": "GIL_USE_CONAN", "value": "ON" }
|
|
]
|
|
},
|
|
{
|
|
"name": "x64-Release-Ninja",
|
|
"generator": "Ninja",
|
|
"configurationType": "RelWithDebInfo",
|
|
"inheritEnvironments": [ "msvc_x64_x64" ],
|
|
"buildRoot": "${env.BuildDir}\\${name}",
|
|
"installRoot": "${env.InstallDir}\\${name}",
|
|
"cmakeCommandArgs": "",
|
|
"buildCommandArgs": "-v",
|
|
"ctestCommandArgs": "",
|
|
"variables": [
|
|
{ "name": "GIL_USE_CONAN", "value": "ON" }
|
|
]
|
|
},
|
|
{
|
|
"name": "x86-Debug-Ninja",
|
|
"generator": "Ninja",
|
|
"configurationType": "Debug",
|
|
"inheritEnvironments": [ "msvc_x86" ],
|
|
"buildRoot": "${env.BuildDir}\\${name}",
|
|
"installRoot": "${env.InstallDir}\\${name}",
|
|
"cmakeCommandArgs": "",
|
|
"buildCommandArgs": "-v",
|
|
"ctestCommandArgs": "",
|
|
"variables": [
|
|
{ "name": "GIL_USE_CONAN", "value": "ON" }
|
|
]
|
|
},
|
|
{
|
|
"name": "x86-Release-Ninja",
|
|
"generator": "Ninja",
|
|
"configurationType": "RelWithDebInfo",
|
|
"inheritEnvironments": [ "msvc_x86" ],
|
|
"buildRoot": "${env.BuildDir}\\${name}",
|
|
"installRoot": "${env.InstallDir}\\${name}",
|
|
"cmakeCommandArgs": "",
|
|
"buildCommandArgs": "-v",
|
|
"ctestCommandArgs": "",
|
|
"variables": [
|
|
{ "name": "GIL_USE_CONAN", "value": "ON" }
|
|
]
|
|
},
|
|
{
|
|
"name": "x64-Debug",
|
|
"generator": "Visual Studio 15 2017 Win64",
|
|
"configurationType": "Debug",
|
|
"buildRoot": "${env.BuildDir}\\${name}",
|
|
"installRoot": "${env.InstallDir}\\${name}",
|
|
"buildCommandArgs": "-m",
|
|
"cmakeCommandArgs": "",
|
|
"ctestCommandArgs": "",
|
|
"variables": [
|
|
{
|
|
"name": "CMAKE_TOOLCHAIN_FILE",
|
|
"value": "C:\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "x64-Release",
|
|
"generator": "Visual Studio 15 2017 Win64",
|
|
"configurationType": "Release",
|
|
"buildRoot": "${env.BuildDir}\\${name}",
|
|
"installRoot": "${env.InstallDir}\\${name}",
|
|
"buildCommandArgs": "-m",
|
|
"cmakeCommandArgs": "",
|
|
"ctestCommandArgs": "",
|
|
"variables": [
|
|
{
|
|
"name": "CMAKE_TOOLCHAIN_FILE",
|
|
"value": "C:\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "x86-Debug",
|
|
"generator": "Visual Studio 15 2017",
|
|
"configurationType": "Debug",
|
|
"buildRoot": "${env.BuildDir}\\${name}",
|
|
"installRoot": "${env.InstallDir}\\${name}",
|
|
"buildCommandArgs": "-m",
|
|
"cmakeCommandArgs": "",
|
|
"ctestCommandArgs": "",
|
|
"variables": [
|
|
{
|
|
"name": "CMAKE_TOOLCHAIN_FILE",
|
|
"value": "C:\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "x86-Release",
|
|
"generator": "Visual Studio 15 2017",
|
|
"configurationType": "Release",
|
|
"buildRoot": "${env.BuildDir}\\${name}",
|
|
"installRoot": "${env.InstallDir}\\${name}",
|
|
"buildCommandArgs": "-m",
|
|
"cmakeCommandArgs": "",
|
|
"ctestCommandArgs": "",
|
|
"variables": [
|
|
{
|
|
"name": "CMAKE_TOOLCHAIN_FILE",
|
|
"value": "C:\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|