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
|
@ -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…
Reference in a new issue