mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-24 11:22:39 +01:00
26 lines
847 B
CMake
26 lines
847 B
CMake
if(MINGW)
|
|
|
|
Message("Compiling for Windows!")
|
|
|
|
#Find libs
|
|
find_package(SDL2 REQUIRED)
|
|
find_package(OpenGL REQUIRED)
|
|
#We want to link GLEW statically
|
|
set(GLEW_USE_STATIC_LIBS ON)
|
|
find_package(GLEW REQUIRED)
|
|
|
|
#We want to link GLEW statically
|
|
set(GLEW_USE_STATIC_LIBS ON)
|
|
|
|
#Setup project include directories
|
|
include_directories(${GLEW_INCLUDE_DIR})
|
|
include_directories(${SDL2_INCLUDE_DIR})
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-narrowing -std=c++11")
|
|
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wno-narrowing -std=c++11")
|
|
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Wno-narrowing -std=c++11")
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-narrowing -std=c++11")
|
|
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wno-narrowing -std=c++11")
|
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Wno-narrowing -std=c++11")
|
|
|
|
endif() |