mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-23 19:02:35 +01:00
23 lines
706 B
CMake
23 lines
706 B
CMake
if(LINUX)
|
|
|
|
#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)
|
|
|
|
#Setup project include directories
|
|
include_directories(${GLEW_INCLUDE_DIR})
|
|
include_directories(${SDL2_INCLUDE_DIR})
|
|
|
|
set(PSX_LIB libPSX.a)
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-narrowing")
|
|
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wno-narrowing")
|
|
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Wno-narrowing")
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-narrowing")
|
|
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wno-narrowing")
|
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Wno-narrowing")
|
|
|
|
endif() |