setup source groups in the cmake to make IDEs more organized
This commit is contained in:
		
							parent
							
								
									c6bd61d2de
								
							
						
					
					
						commit
						1ce4970d62
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
					@ -163,6 +163,8 @@ set(MAIN_SOURCE
 | 
				
			||||||
	src/sharedstate.cpp
 | 
						src/sharedstate.cpp
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					source_group("MKXP Source" FILES ${MAIN_SOURCE} ${MAIN_HEADERS})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Setup embedded source ##
 | 
					## Setup embedded source ##
 | 
				
			||||||
 | 
					
 | 
				
			||||||
set(EMBEDDED_INPUT
 | 
					set(EMBEDDED_INPUT
 | 
				
			||||||
| 
						 | 
					@ -222,6 +224,8 @@ foreach(item ${EMBEDDED_INPUT})
 | 
				
			||||||
	ProcessWithXXD(EMBEDDED_SOURCE ${item} ${CMAKE_CURRENT_BINARY_DIR})
 | 
						ProcessWithXXD(EMBEDDED_SOURCE ${item} ${CMAKE_CURRENT_BINARY_DIR})
 | 
				
			||||||
endforeach()
 | 
					endforeach()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					source_group("Embedded Source" FILES ${EMBEDDED_INPUT} ${EMBEDDED_SOURCE})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Setup binding source ##
 | 
					## Setup binding source ##
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if (BINDING STREQUAL "MRI")
 | 
					if (BINDING STREQUAL "MRI")
 | 
				
			||||||
| 
						 | 
					@ -304,6 +308,8 @@ else()
 | 
				
			||||||
	message(FATAL_ERROR "Must choose a valid binding type.  MRI, MRUBY, or NULL")
 | 
						message(FATAL_ERROR "Must choose a valid binding type.  MRI, MRUBY, or NULL")
 | 
				
			||||||
endif()
 | 
					endif()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					source_group("Binding Source" FILES ${BINDING_SOURCE} ${BINDING_HEADERS})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Setup main executable ##
 | 
					## Setup main executable ##
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if(APPLE)
 | 
					if(APPLE)
 | 
				
			||||||
| 
						 | 
					@ -328,6 +334,7 @@ link_directories(
 | 
				
			||||||
add_executable(${PROJECT_NAME} MACOSX_BUNDLE
 | 
					add_executable(${PROJECT_NAME} MACOSX_BUNDLE
 | 
				
			||||||
	${MAIN_HEADERS}
 | 
						${MAIN_HEADERS}
 | 
				
			||||||
	${MAIN_SOURCE}
 | 
						${MAIN_SOURCE}
 | 
				
			||||||
 | 
						${BINDING_HEADERS}
 | 
				
			||||||
	${BINDING_SOURCE}
 | 
						${BINDING_SOURCE}
 | 
				
			||||||
	${EMBEDDED_SOURCE}
 | 
						${EMBEDDED_SOURCE}
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue