Initial commit
This commit is contained in:
commit
1c6b515826
13 changed files with 33425 additions and 0 deletions
26
CMakeLists.txt
Normal file
26
CMakeLists.txt
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
cmake_minimum_required(VERSION 3.10)
|
||||
project(starshine)
|
||||
|
||||
set(C_STANDARD 11)
|
||||
|
||||
if(NOT NO_CLIENT)
|
||||
set(no_build_client OFF)
|
||||
message(STATUS "Set no build client OFF as none was specified.")
|
||||
set(NO_CLIENT ${no_build_client} CACHE STRING "Set build client." FORCE)
|
||||
endif()
|
||||
|
||||
if(NOT NO_SERVER)
|
||||
set(no_build_server OFF)
|
||||
message(STATUS "Set no build server OFF as none was specified.")
|
||||
set(NO_CLIENT ${no_build_server} CACHE STRING "Set build server." FORCE)
|
||||
endif()
|
||||
|
||||
add_subdirectory(core)
|
||||
|
||||
if (NOT no_build_client)
|
||||
add_subdirectory(${PROJECT_SOURCE_DIR}/client)
|
||||
endif()
|
||||
|
||||
if (NOT no_build_server)
|
||||
add_subdirectory(${PROJECT_SOURCE_DIR}/server)
|
||||
endif()
|
||||
Loading…
Add table
Add a link
Reference in a new issue