forked from leozz37/ModernCppStarter
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade all use package versions (#6)
- Loading branch information
1 parent
fcbedfe
commit b66dba3
Showing
22 changed files
with
543 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Define environment in this dir only with direnv. | ||
# On first usage enter: direnv allow | ||
# man direnv for more infos | ||
# | ||
# see too https://cmake.org/cmake/help/latest/manual/cmake-env-variables.7.html | ||
export CMAKE_PREFIX_PATH=${PWD}/stagedir | ||
export CMAKE_EXPORT_COMPILE_COMMANDS=YES | ||
export CTEST_OUTPUT_ON_FAILURE=YES | ||
|
||
export CPM_USE_LOCAL_PACKAGES=YES | ||
export CPM_SOURCE_CACHE=${PWD}/.cache/CPM | ||
|
||
export LD_LIBRARY_PATH=${CMAKE_PREFIX_PATH}/lib | ||
export BUILD_DIR=${PWD}/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
*~ | ||
*.swp | ||
/build* | ||
/stagedir | ||
/.vscode | ||
/cpm_modules | ||
.DS_Store | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
{ | ||
"version": 6, | ||
"cmakeMinimumRequired": { | ||
"major": 3, | ||
"minor": 25, | ||
"patch": 0 | ||
}, | ||
"configurePresets": [ | ||
{ | ||
"name": "default", | ||
"displayName": "Default user Config", | ||
"description": "Default build using Ninja generator", | ||
"generator": "Ninja", | ||
"binaryDir": "${sourceDir}/build/default", | ||
"installDir": "${sourceDir}/stagedir", | ||
"cacheVariables": { | ||
"CMAKE_PREFIX_PATH": { | ||
"type": "path", | ||
"value": "${sourceDir}/stagedir" | ||
}, | ||
"CMAKE_CXX_STANDARD": "20", | ||
"CMAKE_BUILD_TYPE": "Release", | ||
"CMAKE_DEBUG_POSTFIX": "D", | ||
"BUILD_SHARED_LIBS": "YES" | ||
}, | ||
"environment": { | ||
"CPM_USE_LOCAL_PACKAGES": "NO", | ||
"PATH": "$env{HOME}/.local/bin${pathListSep}$penv{PATH}" | ||
}, | ||
"warnings": { | ||
"deprecated": true, | ||
"uninitialized": true | ||
} | ||
}, | ||
{ | ||
"name": "ninja-multi", | ||
"inherits": "default", | ||
"displayName": "Ninja Multi-Config", | ||
"description": "Default build using Ninja Multi-Config generator", | ||
"generator": "Ninja Multi-Config" | ||
}, | ||
{ | ||
"name": "windows-only", | ||
"inherits": "default", | ||
"displayName": "Windows-only configuration", | ||
"description": "This build is only available on Windows", | ||
"condition": { | ||
"type": "equals", | ||
"lhs": "${hostSystemName}", | ||
"rhs": "Windows" | ||
} | ||
} | ||
], | ||
"buildPresets": [ | ||
{ | ||
"name": "default", | ||
"configurePreset": "default" | ||
}, | ||
{ | ||
"name": "install", | ||
"configurePreset": "default", | ||
"targets": ["install"] | ||
} | ||
], | ||
"packagePresets": [ | ||
{ | ||
"name": "default", | ||
"configurePreset": "default", | ||
"generators": [ | ||
"TGZ" | ||
] | ||
} | ||
], | ||
"workflowPresets": [ | ||
{ | ||
"name": "default", | ||
"steps": [ | ||
{ | ||
"type": "configure", | ||
"name": "default" | ||
}, | ||
{ | ||
"type": "build", | ||
"name": "default" | ||
}, | ||
{ | ||
"type": "build", | ||
"name": "install" | ||
}, | ||
{ | ||
"type": "package", | ||
"name": "default" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.