mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +00:00 
			
		
		
		
	INTERFACE doesn't define the symbol when compiling the library itself. PUBLIC should be used when the definition is needed both by the library and by the users.
		
			
				
	
	
		
			12 lines
		
	
	
		
			304 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			304 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
set(SRCS
 | 
						|
            getopt.c
 | 
						|
            )
 | 
						|
set(HEADERS
 | 
						|
            getopt.h
 | 
						|
            )
 | 
						|
 | 
						|
create_directory_groups(${SRCS} ${HEADERS})
 | 
						|
add_library(getopt ${SRCS} ${HEADERS})
 | 
						|
target_compile_definitions(getopt PUBLIC STATIC_GETOPT)
 | 
						|
target_include_directories(getopt INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
 |