CMakeLists.txt: Add 'vorbisfile' to dependencies if RGSS2=ON
Also add missing define.
This commit is contained in:
		
							parent
							
								
									0a94b518dc
								
							
						
					
					
						commit
						d7e0429ea6
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
					@ -201,10 +201,13 @@ set(EMBEDDED_INPUT
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if (RGSS2)
 | 
					if (RGSS2)
 | 
				
			||||||
 | 
						pkg_check_modules(RGSS2 REQUIRED vorbisfile)
 | 
				
			||||||
 | 
						list(APPEND DEFINES
 | 
				
			||||||
 | 
							RGSS2
 | 
				
			||||||
 | 
						)
 | 
				
			||||||
	list(APPEND MAIN_SOURCE
 | 
						list(APPEND MAIN_SOURCE
 | 
				
			||||||
		src/vorbissource.cpp
 | 
							src/vorbissource.cpp
 | 
				
			||||||
	)
 | 
						)
 | 
				
			||||||
 | 
					 | 
				
			||||||
	list(APPEND EMBEDDED_INPUT
 | 
						list(APPEND EMBEDDED_INPUT
 | 
				
			||||||
		shader/blur.frag
 | 
							shader/blur.frag
 | 
				
			||||||
		shader/blurH.vert
 | 
							shader/blurH.vert
 | 
				
			||||||
| 
						 | 
					@ -370,6 +373,7 @@ target_include_directories(${PROJECT_NAME} PRIVATE
 | 
				
			||||||
	${SDL2_INCLUDE_DIRS} # Blindly assume other SDL bits are in same directory
 | 
						${SDL2_INCLUDE_DIRS} # Blindly assume other SDL bits are in same directory
 | 
				
			||||||
	${Boost_INCLUDE_DIR}
 | 
						${Boost_INCLUDE_DIR}
 | 
				
			||||||
	${MRI_INCLUDE_DIRS}
 | 
						${MRI_INCLUDE_DIRS}
 | 
				
			||||||
 | 
						${RGSS2_INCLUDE_DIRS}
 | 
				
			||||||
	${OPENAL_INCLUDE_DIR}
 | 
						${OPENAL_INCLUDE_DIR}
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -383,6 +387,7 @@ target_link_libraries(${PROJECT_NAME}
 | 
				
			||||||
	${PIXMAN_LIBRARIES}
 | 
						${PIXMAN_LIBRARIES}
 | 
				
			||||||
	${Boost_LIBRARIES}
 | 
						${Boost_LIBRARIES}
 | 
				
			||||||
	${MRI_LIBRARIES}
 | 
						${MRI_LIBRARIES}
 | 
				
			||||||
 | 
						${RGSS2_LIBRARIES}
 | 
				
			||||||
	${OPENAL_LIBRARY}
 | 
						${OPENAL_LIBRARY}
 | 
				
			||||||
	${ZLIB_LIBRARY}
 | 
						${ZLIB_LIBRARY}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue