This extends and refactors the original CMake script to make it nicer. The structure of it is loosely based on that used in bs::framework project. - Separate the Main SDK build definitions to its own CMakeLists.txt. Source file lists for each project were also moved to file CMakeSources.cmake, cataloged based on a folder they're in and the filter definitions for VS were added. - During build the executable/library artifacts are now stored in <BUILD_DIR>/<BIN_OR_LIB>/<ARCHITECTURE>/<BUILD_TYPE>. The scripts were modified to reflect that change. - Added most of the build flags from the original VS project with some new one. - Added some properties to explicitly configure the build environment. - Add ability to install the libraries for distribution. - Other small renaming, cleanups and things that I've forgotten.
30 lines
650 B
CMake
30 lines
650 B
CMake
set(GGPO_EXAMPLES_VECTORWAR_INC_NOFILTER
|
|
"gamestate.h"
|
|
"gdi_renderer.h"
|
|
"ggpo_perfmon.h"
|
|
"nongamestate.h"
|
|
"renderer.h"
|
|
"Resource.h"
|
|
"targetver.h"
|
|
"vectorwar.h"
|
|
)
|
|
|
|
set(GGPO_EXAMPLES_VECTORWAR_SRC_NOFILTER
|
|
"gamestate.cpp"
|
|
"gdi_renderer.cpp"
|
|
"ggpo_perfmon.cpp"
|
|
"main.cpp"
|
|
"vectorwar.cpp"
|
|
)
|
|
|
|
set(GGPO_EXAMPLES_VECTORWAR_WIN32RES
|
|
"VectorWar.rc"
|
|
)
|
|
|
|
source_group(" " FILES ${GGPO_EXAMPLES_VECTORWAR_INC_NOFILTER} ${GGPO_EXAMPLES_VECTORWAR_SRC_NOFILTER} ${GGPO_EXAMPLES_VECTORWAR_WIN32RES})
|
|
|
|
set(GGPO_EXAMPLES_VECTORWAR_SRC
|
|
${GGPO_EXAMPLES_VECTORWAR_INC_NOFILTER}
|
|
${GGPO_EXAMPLES_VECTORWAR_SRC_NOFILTER}
|
|
${GGPO_EXAMPLES_VECTORWAR_WIN32RES}
|
|
) |