Skip to content

Instantly share code, notes, and snippets.

@neeraj9
Created October 25, 2023 04:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neeraj9/e6cba6aec48cb40aeb2894a5b7794fa7 to your computer and use it in GitHub Desktop.
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
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