Created
October 25, 2023 04:37
-
-
Save neeraj9/e6cba6aec48cb40aeb2894a5b7794fa7 to your computer and use it in GitHub Desktop.
A simple build script in Meson for main.cpp and an include folder
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
project('myapp', 'cpp', | |
default_options : ['cpp_std=c++20', 'warning_level=2']) | |
main_target_name = 'myapp' | |
sources = ['src/main.cpp', 'src/common.cpp'] | |
hdrs = include_directories('include') | |
executable(main_target_name, sources, | |
include_directories : hdrs, | |
install : true) | |
install_data(['LICENSE', 'README.md'], | |
install_dir : 'data') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment