2023-10-01 11:52:07 -04:00
|
|
|
cmake_minimum_required(VERSION 3.18.4)
|
|
|
|
|
|
|
|
project(SQCSim-Server VERSION 0.1)
|
|
|
|
|
2023-10-01 14:02:43 -04:00
|
|
|
set(CMAKE_COMPILER_OPTIONS "-Wno-narrowing")
|
2023-10-01 11:52:07 -04:00
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
set(CMAKE_STANDARD_REQUIRED True)
|
|
|
|
|
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "../out")
|
|
|
|
|
|
|
|
set(SQCSIM_COMMON_DIR "../../SQCSim-common/")
|
|
|
|
|
|
|
|
add_library(SQCSim-common
|
|
|
|
"${SQCSIM_COMMON_DIR}blockinfo.cpp"
|
|
|
|
"${SQCSIM_COMMON_DIR}bullet.cpp"
|
|
|
|
"${SQCSIM_COMMON_DIR}chunk.cpp"
|
|
|
|
"${SQCSIM_COMMON_DIR}netprotocol.cpp"
|
|
|
|
"${SQCSIM_COMMON_DIR}opensimplex.cpp"
|
|
|
|
"${SQCSIM_COMMON_DIR}player.cpp"
|
|
|
|
"${SQCSIM_COMMON_DIR}transformation.cpp"
|
|
|
|
"${SQCSIM_COMMON_DIR}world.cpp"
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(SQCSim-server
|
|
|
|
"../connection.cpp"
|
|
|
|
"../server.cpp"
|
|
|
|
"../main.cpp"
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(SQCSim-server PUBLIC SQCSim-common)
|