initial commit: set up a template
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
		
							
								
								
									
										1
									
								
								apps/meson.build
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								apps/meson.build
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
subdir('target')
 | 
			
		||||
							
								
								
									
										12
									
								
								apps/target/main.cc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								apps/target/main.cc
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
			
		||||
#include "matar.hh"
 | 
			
		||||
#include <iostream>
 | 
			
		||||
 | 
			
		||||
int main() {
 | 
			
		||||
    std::cout << "Hello" << std::endl;
 | 
			
		||||
    if (run() > 0) {
 | 
			
		||||
        std::cerr << "Crashed" << std::endl;
 | 
			
		||||
        return 1;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return 0;
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										15
									
								
								apps/target/meson.build
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								apps/target/meson.build
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
target_deps = [
 | 
			
		||||
  lib
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
target_sources = files(
 | 
			
		||||
  'main.cc'
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
executable(
 | 
			
		||||
  meson.project_name(),
 | 
			
		||||
  target_sources,
 | 
			
		||||
  link_with: target_deps,
 | 
			
		||||
  include_directories: includes,
 | 
			
		||||
  install : true
 | 
			
		||||
)
 | 
			
		||||
		Reference in New Issue
	
	Block a user