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