+ Rename output executables to match directory structure + Remove libraries for small examples + Supress -Wreturn-type warnings for singleton that is intentionally not copyable
		
			
				
	
	
		
			17 lines
		
	
	
		
			857 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			857 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
################################################################################
 | 
						|
## Author: Shaun Reed				                                      			      ##
 | 
						|
## Legal: All Content (c) 2022 Shaun Reed, all rights reserved	      	      ##
 | 
						|
##									                                                          ##
 | 
						|
## Contact: shaunrd0@gmail.com	| URL: www.shaunreed.com | GitHub: shaunrd0   ##
 | 
						|
################################################################################
 | 
						|
## This directory is for storing / compiling our executable code
 | 
						|
 | 
						|
# Create a reference / variable to refer to our source code
 | 
						|
set(APP_SRC say-hello.cpp)
 | 
						|
 | 
						|
# Add our executable, naming it and linking it to our source code
 | 
						|
add_executable(cmake-example-template ${APP_SRC})
 | 
						|
 | 
						|
# Link to our custom library, defined in c-cmake/src/
 | 
						|
target_link_libraries(cmake-example-template cmake-example-lib)
 |