@ -1,25 +1,32 @@
project ( OpenMW )
cmake_minimum_required ( VERSION 3.1.0 )
set ( CMAKE_CXX_STANDARD 20 )
set ( CMAKE_CXX_STANDARD_REQUIRED ON )
include ( GNUInstallDirs )
# f o r l i n k t i m e o p t i m i z a t i o n , r e m o v e i f c m a k e v e r s i o n i s > = 3 . 9
if ( POLICY CMP0069 ) # L T O
cmake_policy ( SET CMP0069 NEW )
cmake_policy ( SET CMP0069 NEW )
endif ( )
# f o r p o s i t i o n - i n d e p e n d e n t e x e c u t a b l e , r e m o v e i f c m a k e v e r s i o n i s > = 3 . 1 4
if ( POLICY CMP0083 )
cmake_policy ( SET CMP0083 NEW )
cmake_policy ( SET CMP0083 NEW )
endif ( )
# t o l i n k w i t h f r e e t y p e l i b r a r y
if ( POLICY CMP0079 )
cmake_policy ( SET CMP0079 NEW )
cmake_policy ( SET CMP0079 NEW )
endif ( )
# d o n ' t a d d / W 3 f l a g b y d e f a u l t f o r MSVC
if ( POLICY CMP0092 )
cmake_policy ( SET CMP0092 NEW )
endif ( )
project ( OpenMW )
set ( CMAKE_CXX_STANDARD 20 )
set ( CMAKE_CXX_STANDARD_REQUIRED ON )
include ( GNUInstallDirs )
option ( OPENMW_GL4ES_MANUAL_INIT "Manually initialize gl4es. This is more reliable on platforms without a windowing system. Requires gl4es to be configured with -DNOEGL=ON -DNO_LOADER=ON -DNO_INIT_CONSTRUCTOR=ON." OFF )
if ( OPENMW_GL4ES_MANUAL_INIT )
add_definitions ( -DOPENMW_GL4ES_MANUAL_INIT )