https://github.com/caseymcc/createlaunchers
CMake module for creating batch/shell scripts and Visual Studio user file for launching your application.
https://github.com/caseymcc/createlaunchers
cmake debug hunter visual-studio
Last synced: 6 months ago
JSON representation
CMake module for creating batch/shell scripts and Visual Studio user file for launching your application.
- Host: GitHub
- URL: https://github.com/caseymcc/createlaunchers
- Owner: caseymcc
- License: other
- Created: 2018-11-19T16:15:15.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-22T03:00:30.000Z (almost 6 years ago)
- Last Synced: 2025-01-21T23:33:25.234Z (over 1 year ago)
- Topics: cmake, debug, hunter, visual-studio
- Language: CMake
- Size: 24.4 KB
- Stars: 6
- Watchers: 1
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/ruslo/hunter)
# CreateLaunchers
CMake module for creating batch/shell scripts and Visual Studio user file for launching your application.
This is a modified version of the CreateLaunchers from https://github.com/rpavlik/cmake-modules. It has been seperated from the rest of the cmake modules into its own repo and provided with cmake installer and setup as a hunter package.
Usage
-----
```cmake
#use hunter to get the latest version
#optional, you can just download and include it in you CMakeLists file
hunter_add_package(CreateLauncher)
find_package(CreateLauncher CONFIG REQUIRED)
#Now include the modules, directory for CreateLaunchers would
# have been add to CMAKE_MODULE_PATH
include(CreateLaunchers)
#Creates bash or shell script to launch the target from commandline
# -When using a VS generator it also creates VS .user so that the
# target can be launched by the VS debugger with the requested settings
# -When using gdb it will create shell scripts that will call gdb to start
# the target with the requested settings
create_target_launcher(
[COMMAND ]
[ARGS ]
[FORWARD_ARGS]
[RUNTIME_LIBRARY_DIRS ]
[WORKING_DIRECTORY ]
[ENVIRONMENT [...]])
```
CreateLaunchers uses file(GENERATE ...) internally to create the launchers therefore it will support generator expressions.