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.
13 lines
348 B
CMake
13 lines
348 B
CMake
include(CMakeSources.cmake)
|
|
|
|
add_executable(VectorWar WIN32
|
|
${GGPO_EXAMPLES_VECTORWAR_SRC}
|
|
)
|
|
|
|
add_common_flags(VectorWar)
|
|
# Change the character set to unicode.
|
|
add_definitions(-D_UNICODE -DUNICODE)
|
|
|
|
# Link against GGPO, winmm (Windows Multimedia API), and ws2_32 (Winsock).
|
|
target_link_libraries(VectorWar LINK_PUBLIC GGPO winmm.lib ws2_32.lib)
|