mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 03:45:32 +00:00
cmake: Move USED_OSG_(COMPONENTS|PLUGINS) from extern to top-level
This commit is contained in:
parent
99ba45a308
commit
93fe84aea8
2 changed files with 19 additions and 21 deletions
|
@ -272,6 +272,25 @@ if(NOT HAVE_STDINT_H)
|
|||
message(FATAL_ERROR "stdint.h was not found" )
|
||||
endif()
|
||||
|
||||
set(USED_OSG_COMPONENTS
|
||||
osgDB
|
||||
osgViewer
|
||||
osgText
|
||||
osgGA
|
||||
osgParticle
|
||||
osgUtil
|
||||
osgFX
|
||||
osgShadow
|
||||
osgAnimation)
|
||||
set(USED_OSG_PLUGINS
|
||||
osgdb_bmp
|
||||
osgdb_dds
|
||||
osgdb_freetype
|
||||
osgdb_jpeg
|
||||
osgdb_osg
|
||||
osgdb_png
|
||||
osgdb_serializers_osg
|
||||
osgdb_tga)
|
||||
if(OPENMW_USE_SYSTEM_OSG)
|
||||
find_package(OpenSceneGraph 3.3.4 REQUIRED ${USED_OSG_COMPONENTS})
|
||||
if(OSG_STATIC)
|
||||
|
|
21
extern/CMakeLists.txt
vendored
21
extern/CMakeLists.txt
vendored
|
@ -70,27 +70,6 @@ if(NOT OPENMW_USE_SYSTEM_MYGUI)
|
|||
set(MyGUI_LIBRARIES MyGUIEngine PARENT_SCOPE)
|
||||
endif()
|
||||
|
||||
set(USED_OSG_COMPONENTS
|
||||
osgDB
|
||||
osgViewer
|
||||
osgText
|
||||
osgGA
|
||||
osgParticle
|
||||
osgUtil
|
||||
osgFX
|
||||
osgShadow
|
||||
osgAnimation)
|
||||
set(USED_OSG_COMPONENTS ${USED_OSG_COMPONENTS} PARENT_SCOPE)
|
||||
set(USED_OSG_PLUGINS
|
||||
osgdb_bmp
|
||||
osgdb_dds
|
||||
osgdb_freetype
|
||||
osgdb_jpeg
|
||||
osgdb_osg
|
||||
osgdb_png
|
||||
osgdb_serializers_osg
|
||||
osgdb_tga)
|
||||
set(USED_OSG_PLUGINS ${USED_OSG_PLUGINS} PARENT_SCOPE)
|
||||
if(NOT OPENMW_USE_SYSTEM_OSG)
|
||||
set(OSG_STATIC ON CACHE BOOL "")
|
||||
|
||||
|
|
Loading…
Reference in a new issue