Browse Source

Merge pull request #121 from kd7tck/develop

I made this for some others I am now working with
pull/124/head
Ray 8 years ago
parent
commit
27df983ee0
2 changed files with 32 additions and 2 deletions
  1. +32
    -0
      CMakeLists.txt
  2. +0
    -2
      src/windows_compile.bat

+ 32
- 0
CMakeLists.txt View File

@ -0,0 +1,32 @@
cmake_minimum_required (VERSION 3.0)
project (raylib)
SET(PLATFORM_TO_USE "PLATFORM_DESKTOP" CACHE STRING "Platform to compile for")
SET_PROPERTY(CACHE PLATFORM_TO_USE PROPERTY STRINGS PLATFORM_DESKTOP PLATFORM_RPI PLATFORM_WEB)
set(CMAKE_C_FLAGS "-O1 -Wall -std=gnu99 -fgnu89-inline")
IF(${PLATFORM_TO_USE} MATCHES "PLATFORM_DESKTOP")
add_definitions(-DPLATFORM_DESKTOP, -DGRAPHICS_API_OPENGL_33)
include_directories("." "src/" "external/openal_soft/include" "external/glew/include" "external/glfw3/include")
ENDIF()
IF(${PLATFORM_TO_USE} MATCHES "PLATFORM_RPI")
add_definitions(-DPLATFORM_RPI, -GRAPHICS_API_OPENGL_ES2)
include_directories("." "/opt/vc/include" "/opt/vc/include/interface/vmcs_host/linux" "/opt/vc/include/interface/vcos/pthreads")
ENDIF()
IF(${PLATFORM_TO_USE} MATCHES "PLATFORM_WEB")
add_definitions(-DPLATFORM_WEB, -GRAPHICS_API_OPENGL_ES2)
include_directories("." "src/" "external/openal_soft/include" "external/glew/include" "external/glfw3/include")
ENDIF()
file(GLOB SOURCES "src/*.c")
add_library(raylib STATIC ${SOURCES})
install(TARGETS raylib DESTINATION lib/)

+ 0
- 2
src/windows_compile.bat View File

@ -1,2 +0,0 @@
set PATH=C:\raylib\MinGW\bin;%PATH%
mingw32-make

Loading…
Cancel
Save