Builds but opengl linking errors on windows
This commit is contained in:
parent
60fe53ff06
commit
6a31952257
268 changed files with 58117 additions and 22 deletions
CMakeLists.txtbuild.bat
libs/glm/glm
CMakeLists.txtcommon.hpp
detail
_features.hpp_fixes.hpp_noise.hpp_swizzle.hpp_swizzle_func.hpp_vectorize.hppdummy.cppfunc_common.hppfunc_common.inlfunc_common_simd.inlfunc_exponential.hppfunc_exponential.inlfunc_exponential_simd.inlfunc_geometric.hppfunc_geometric.inlfunc_geometric_simd.inlfunc_integer.hppfunc_integer.inlfunc_integer_simd.inlfunc_matrix.hppfunc_matrix.inlfunc_matrix_simd.inlfunc_packing.hppfunc_packing.inlfunc_packing_simd.inlfunc_trigonometric.hppfunc_trigonometric.inlfunc_trigonometric_simd.inlfunc_vector_relational.hppfunc_vector_relational.inlfunc_vector_relational_simd.inlglm.cppprecision.hppsetup.hpptype_float.hpptype_gentype.hpptype_gentype.inltype_half.hpptype_half.inltype_int.hpptype_mat.hpptype_mat.inltype_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_vec.hpptype_vec.inltype_vec1.hpptype_vec1.inltype_vec2.hpptype_vec2.inltype_vec3.hpptype_vec3.inltype_vec4.hpptype_vec4.inltype_vec4_simd.inl
exponential.hppext.hppfwd.hppgeometric.hppglm.hppgtc
|
@ -6,21 +6,9 @@ project(dungeon)
|
|||
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${dungeon_SOURCE_DIR}/cmake")
|
||||
|
||||
if(MSVC)
|
||||
if(DEFINED GLEW_PATH)
|
||||
list(APPEND CMAKE_PREFIX_PATH ${GLEW_PATH})
|
||||
if(CMAKE_SIZEOF_VOID_P MATCHES "8")
|
||||
list(APPEND CMAKE_PREFIX_PATH "${GLEW_PATH}/lib/Release/x64")
|
||||
else()
|
||||
list(APPEND CMAKE_PREFIX_PATH "${GLEW_PATH}/lib/Release/Win32")
|
||||
endif()
|
||||
endif(DEFINED GLEW_PATH)
|
||||
endif(MSVC)
|
||||
|
||||
find_package(SDL2 REQUIRED)
|
||||
find_package(GLEW REQUIRED)
|
||||
include_directories(${SDL2_INCLUDE_DIR} ${GLEW_INCLUDE_DIRS} "${dungeon_SOURCE_DIR}/libs/glm")
|
||||
link_libraries(${SDL2_LIBRARY} ${GLEW_LIBRARIES})
|
||||
include_directories(${SDL2_INCLUDE_DIR} "libs/glm")
|
||||
link_libraries(${SDL2_LIBRARY})
|
||||
|
||||
file(GLOB SOURCES "src/*.cpp")
|
||||
file(GLOB SOURCES "src/*.cpp" "src/*.c" "src/*.h")
|
||||
add_executable(dungeon ${SOURCES})
|
||||
|
|
|
@ -2,9 +2,8 @@
|
|||
|
||||
:: Set your paths here
|
||||
set SDL2_PATH="E:\Programmering\C++\_libs\SDL2-2.0.5"
|
||||
set GLEW_PATH="E:\Programmering\C++\_libs\GLEW-2.1.0"
|
||||
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -D SDL2_PATH=%SDL2_PATH% -D GLEW_PATH=%GLEW_PATH% ..
|
||||
cmake build -D SDL2_PATH:STRING=%SDL2_PATH% ..
|
||||
cd ..
|
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