restructure
This commit is contained in:
parent
f1bdc0c7a6
commit
5e02c1a212
406 changed files with 47 additions and 57 deletions
CMakeLists.txt
client
cmake
include/client/glm
common.hpp
detail
_features.hpp_fixes.hpp_noise.hpp_swizzle.hpp_swizzle_func.hpp_vectorize.hppcompute_common.hppcompute_vector_relational.hppfunc_common.inlfunc_common_simd.inlfunc_exponential.inlfunc_exponential_simd.inlfunc_geometric.inlfunc_geometric_simd.inlfunc_integer.inlfunc_integer_simd.inlfunc_matrix.inlfunc_matrix_simd.inlfunc_packing.inlfunc_packing_simd.inlfunc_trigonometric.inlfunc_trigonometric_simd.inlfunc_vector_relational.inlfunc_vector_relational_simd.inlglm.cppqualifier.hppsetup.hpptype_float.hpptype_half.hpptype_half.inltype_int.hpptype_mat2x2.hpptype_mat2x2.inltype_mat2x3.hpptype_mat2x3.inltype_mat2x4.hpptype_mat2x4.inltype_mat3x2.hpptype_mat3x2.inltype_mat3x3.hpptype_mat3x3.inltype_mat3x4.hpptype_mat3x4.inltype_mat4x2.hpptype_mat4x2.inltype_mat4x3.hpptype_mat4x3.inltype_mat4x4.hpptype_mat4x4.inltype_mat4x4_simd.inltype_quat.hpptype_quat.inltype_quat_simd.inltype_vec1.hpptype_vec1.inltype_vec2.hpptype_vec2.inltype_vec3.hpptype_vec3.inltype_vec4.hpptype_vec4.inltype_vec4_simd.inl
exponential.hppext.hppext
matrix_double2x2.hppmatrix_double2x2_precision.hppmatrix_double2x3.hppmatrix_double2x3_precision.hppmatrix_double2x4.hppmatrix_double2x4_precision.hppmatrix_double3x2.hppmatrix_double3x2_precision.hppmatrix_double3x3.hppmatrix_double3x3_precision.hppmatrix_double3x4.hppmatrix_double3x4_precision.hppmatrix_double4x2.hppmatrix_double4x2_precision.hppmatrix_double4x3.hppmatrix_double4x3_precision.hppmatrix_double4x4.hppmatrix_double4x4_precision.hppmatrix_float2x2.hppmatrix_float2x2_precision.hppmatrix_float2x3.hppmatrix_float2x3_precision.hppmatrix_float2x4.hppmatrix_float2x4_precision.hppmatrix_float3x2.hppmatrix_float3x2_precision.hppmatrix_float3x3.hppmatrix_float3x3_precision.hppmatrix_float3x4.hpp
47
CMakeLists.txt
Normal file
47
CMakeLists.txt
Normal file
|
@ -0,0 +1,47 @@
|
|||
cmake_minimum_required(VERSION 3.12)
|
||||
project(sockscape)
|
||||
|
||||
file(GLOB_RECURSE server_src
|
||||
"src/*.hpp"
|
||||
"src/*.cpp"
|
||||
"src/*.c"
|
||||
"src/*.h"
|
||||
)
|
||||
|
||||
file(GLOB_RECURSE client_src
|
||||
"client/src/*.hpp"
|
||||
"clientsrc/*.cpp"
|
||||
)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake")
|
||||
|
||||
find_package(OPENGL REQUIRED)
|
||||
find_package(GLEW REQUIRED)
|
||||
find_package(SDL2 REQUIRED)
|
||||
find_package(SDL2_image REQUIRED)
|
||||
find_package(SDL2_ttf REQUIRED)
|
||||
|
||||
add_executable(client client_src)
|
||||
target_include_directories(client ${PROJECT_SOURCE_DIR}/include
|
||||
${OPENGL_INCLUDE_DIR}
|
||||
${GLEW_INCLUDE_DIR}
|
||||
${SDL2_INCLUDE_DIR}
|
||||
${SDL2_IMAGE_INCLUDE_DIR}
|
||||
${SDL2_TTF_INCLUDE_DIR})
|
||||
target_link_libraries(client ${OPENGL_LIBRARIES}
|
||||
${GLEW_LIBRARY}
|
||||
${SDL2_LIBRARY}
|
||||
${SDL2_IMAGE_LIBRARIES}
|
||||
${SDL2_TTF_LIBRARIES})
|
||||
install(TARGETS client RUNTIME DESTINATION bin/client)
|
||||
|
||||
add_executable(server server_src)
|
||||
if(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
|
||||
target_link_libraries(server wsock32 ws2_32)
|
||||
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
||||
target_link_libraries(server dl pthread nsl resolv)
|
||||
else()
|
||||
target_link_libraries(server dl pthread socket nsl resolv)
|
||||
endif()
|
||||
install(TARGETS server RUNTIME DESTINATION bin/server)
|
|
@ -1,31 +0,0 @@
|
|||
cmake_minimum_required(VERSION 3.12)
|
||||
project(client)
|
||||
|
||||
file(GLOB_RECURSE client_str
|
||||
"src/*.hpp"
|
||||
"src/*.cpp"
|
||||
)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake")
|
||||
|
||||
find_package(OPENGL REQUIRED)
|
||||
find_package(GLEW REQUIRED)
|
||||
find_package(SDL2 REQUIRED)
|
||||
find_package(SDL2_image REQUIRED)
|
||||
find_package(SDL2_ttf REQUIRED)
|
||||
|
||||
add_executable(client src/main.cpp)
|
||||
include_directories(${PROJECT_SOURCE_DIR}/include
|
||||
${OPENGL_INCLUDE_DIR}
|
||||
${GLEW_INCLUDE_DIR}
|
||||
${SDL2_INCLUDE_DIR}
|
||||
${SDL2_IMAGE_INCLUDE_DIR}
|
||||
${SDL2_TTF_INCLUDE_DIR})
|
||||
target_link_libraries(client ${OPENGL_LIBRARIES}
|
||||
${GLEW_LIBRARY}
|
||||
${SDL2_LIBRARY}
|
||||
${SDL2_IMAGE_LIBRARIES}
|
||||
${SDL2_TTF_LIBRARIES})
|
||||
|
||||
install(TARGETS client RUNTIME DESTINATION bin)
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue