aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2016-06-06 14:38:54 +0200
committerRay <raysan5@gmail.com>2016-06-06 14:38:54 +0200
commitad8a5a95b2524291ffd4aaaef17ef7c28b4ee3ab (patch)
treee1e8958cd8d9894c87f6bca2ba92f3dc25672c46
parent29d505c98e6b24882927347cf24f5736d5f8c849 (diff)
downloadraylib-ad8a5a95b2524291ffd4aaaef17ef7c28b4ee3ab.tar.gz
raylib-ad8a5a95b2524291ffd4aaaef17ef7c28b4ee3ab.zip
Move and update CMakeList
-rw-r--r--src/CMakeLists.txt (renamed from CMakeLists.txt)12
1 files changed, 6 insertions, 6 deletions
diff --git a/CMakeLists.txt b/src/CMakeLists.txt
index eb0052d0..c094ad96 100644
--- a/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -3,30 +3,30 @@ 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")
+set(CMAKE_C_FLAGS "-O1 -Wall -std=gnu99 -fgnu89-inline -Wno-missing-braces")
IF(${PLATFORM_TO_USE} MATCHES "PLATFORM_DESKTOP")
add_definitions(-DPLATFORM_DESKTOP, -DGRAPHICS_API_OPENGL_33)
- include_directories("." "src/" "external/openal_soft/include" "external/glfw3/include")
+ include_directories("." "external/" "external/openal_soft/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")
+ include_directories("." "external/" "/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/glfw3/include")
+ include_directories("." "external/" "external/openal_soft/include" "external/glfw3/include")
ENDIF()
-file(GLOB SOURCES "src/*.c")
+file(GLOB SOURCES "*.c" "external/*.c")
add_library(raylib STATIC ${SOURCES})
-install(TARGETS raylib DESTINATION lib/) \ No newline at end of file
+install(TARGETS raylib DESTINATION ../lib/) \ No newline at end of file