|
|
@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.0) |
|
|
project(raylib) |
|
|
project(raylib) |
|
|
|
|
|
|
|
|
# Avoid excessive expansion of variables in conditionals. In particular, if |
|
|
# Avoid excessive expansion of variables in conditionals. In particular, if |
|
|
# "PLATFORM" is "DRM" than: |
|
|
|
|
|
|
|
|
# "PLATFORM" is "DRM" then: |
|
|
# |
|
|
# |
|
|
# if (${PLATFORM} MATCHES "DRM") |
|
|
# if (${PLATFORM} MATCHES "DRM") |
|
|
# |
|
|
# |
|
|
@ -13,6 +13,11 @@ project(raylib) |
|
|
# See https://cmake.org/cmake/help/latest/policy/CMP0054.html |
|
|
# See https://cmake.org/cmake/help/latest/policy/CMP0054.html |
|
|
cmake_policy(SET CMP0054 NEW) |
|
|
cmake_policy(SET CMP0054 NEW) |
|
|
|
|
|
|
|
|
|
|
|
# Makes a hidden visibility preset on a static lib respected |
|
|
|
|
|
# This is used to hide glfw's symbols from the library exports when building an so/dylib |
|
|
|
|
|
# See https://cmake.org/cmake/help/latest/policy/CMP0063.html |
|
|
|
|
|
cmake_policy(SET CMP0063 NEW) |
|
|
|
|
|
|
|
|
# Directory for easier includes |
|
|
# Directory for easier includes |
|
|
# Anywhere you see include(...) you can check <root>/cmake for that file |
|
|
# Anywhere you see include(...) you can check <root>/cmake for that file |
|
|
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) |
|
|
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) |
|
|
|