@ -1,3 +1,6 @@
project ( OpenMW )
cmake_minimum_required ( VERSION 3.1.0 )
# A p p s a n d t o o l s
# A p p s a n d t o o l s
option ( BUILD_OPENMW "Build OpenMW" ON )
option ( BUILD_OPENMW "Build OpenMW" ON )
option ( BUILD_LAUNCHER "Build Launcher" ON )
option ( BUILD_LAUNCHER "Build Launcher" ON )
@ -13,17 +16,14 @@ option(BUILD_WITH_CODE_COVERAGE "Enable code coverage with gconv" OFF)
option ( BUILD_UNITTESTS "Enable Unittests with Google C++ Unittest" OFF )
option ( BUILD_UNITTESTS "Enable Unittests with Google C++ Unittest" OFF )
option ( BULLET_USE_DOUBLES "Use double precision for Bullet" OFF )
option ( BULLET_USE_DOUBLES "Use double precision for Bullet" OFF )
set ( OpenGL_GL_PREFERENCE LEGACY ) # U s e L E G A C Y a s w e u s e G L 2 ; G L N V D i s f o r G L 3 a n d u p .
if ( NOT BUILD_LAUNCHER AND NOT BUILD_OPENCS AND NOT BUILD_WIZARD )
if ( NOT BUILD_LAUNCHER AND NOT BUILD_OPENCS AND NOT BUILD_WIZARD )
set ( USE_QT FALSE )
set ( USE_QT FALSE )
else ( )
else ( )
set ( USE_QT TRUE )
set ( USE_QT TRUE )
endif ( )
endif ( )
# s e t t h e m i n i m u m r e q u i r e d v e r s i o n a c r o s s t h e b o a r d
cmake_minimum_required ( VERSION 3.1.0 )
project ( OpenMW )
# I f t h e u s e r d o e s n ' t s u p p l y a C M A K E _ B U I L D _ T Y P E v i a c o m m a n d l i n e , c h o o s e o n e f o r t h e m .
# I f t h e u s e r d o e s n ' t s u p p l y a C M A K E _ B U I L D _ T Y P E v i a c o m m a n d l i n e , c h o o s e o n e f o r t h e m .
IF ( NOT CMAKE_BUILD_TYPE )
IF ( NOT CMAKE_BUILD_TYPE )
SET ( CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
SET ( CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
@ -58,7 +58,7 @@ set(OPENMW_VERSION_COMMITDATE "")
set ( OPENMW_VERSION "${OPENMW_VERSION_MAJOR}.${OPENMW_VERSION_MINOR}.${OPENMW_VERSION_RELEASE}" )
set ( OPENMW_VERSION "${OPENMW_VERSION_MAJOR}.${OPENMW_VERSION_MINOR}.${OPENMW_VERSION_RELEASE}" )
set ( OPENMW_DOC_BASEURL "https://openmw.readthedocs.io/en/ ma ster /")
set ( OPENMW_DOC_BASEURL "https://openmw.readthedocs.io/en/ stabl e/")
set ( GIT_CHECKOUT FALSE )
set ( GIT_CHECKOUT FALSE )
if ( EXISTS ${ PROJECT_SOURCE_DIR } /.git )
if ( EXISTS ${ PROJECT_SOURCE_DIR } /.git )