SQCSimulator2023/SQCSim2021/cmake/CMakeLists.txt

70 lines
1.5 KiB
CMake
Raw Normal View History

2023-10-01 14:20:24 -04:00
cmake_minimum_required(VERSION 3.18.4)
project(SQCSim-Client VERSION 0.8)
2023-10-27 12:23:45 -04:00
set(CMAKE_CXX_STANDARD 20)
2023-10-01 14:20:24 -04:00
set(CMAKE_STANDARD_REQUIRED True)
set(CMAKE_BUILD_DIRECTORY "./build")
2023-10-04 15:01:48 -04:00
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "../")
2023-10-01 14:20:24 -04:00
set(SQCSIM_COMMON_DIR "../../SQCSim-common/")
2023-10-04 15:01:48 -04:00
set(SQCSIM_EXTERN_DIR "../external/")
find_package(SFML COMPONENTS system window graphics REQUIRED)
find_package(DevIL REQUIRED)
find_package(OpenGL REQUIRED)
find_package(GLEW REQUIRED)
find_library(IRRKLANG_LIBRARY
NAMES libIrrKlang.so
PATHS "${SQCSIM_EXTERN_DIR}/irrKlang-64bit-1.6.0/lib/linux-gcc-64/")
include_directories(
${SQCSIM_EXTERN_DIR}/irrKlang-64bit-1.6.0/include/
${SFML_INCLUDE_DIRS}
${IL_INCLUDE_DIR}
)
2023-10-01 14:20:24 -04:00
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"
)
2023-10-04 15:01:48 -04:00
add_executable(SQCSim-client
2023-10-01 14:20:24 -04:00
"../audio.cpp"
"../connector.cpp"
"../engine.cpp"
"../mesh.cpp"
"../openglcontext.cpp"
"../shader.cpp"
"../skybox.cpp"
"../texture.cpp"
2023-10-04 15:01:48 -04:00
"../textureatlas.cpp"
2023-10-01 14:20:24 -04:00
"../tool.cpp"
"../vertexbuffer.cpp"
2023-10-28 14:11:01 -04:00
"../renderer.cpp"
"../remoteplayer.cpp"
2023-10-01 14:20:24 -04:00
"../main.cpp"
)
2023-10-04 15:01:48 -04:00
target_link_libraries(SQCSim-client PUBLIC SQCSim-common
${IRRKLANG_LIBRARY}
sfml-system
sfml-window
sfml-graphics
GL
GLU
GLEW
${IL_LIBRARIES}
${ILU_LIBRARIES}
)