2011-11-06 08:30:15 +00:00
|
|
|
project (Components)
|
2014-01-22 16:33:55 +00:00
|
|
|
|
|
|
|
# Version file
|
2015-07-18 01:01:06 +00:00
|
|
|
set (VERSION_IN_FILE "${OpenMW_SOURCE_DIR}/files/version.in")
|
2017-10-11 20:58:55 +00:00
|
|
|
set (VERSION_FILE_PATH_BASE "${OpenMW_BINARY_DIR}")
|
|
|
|
set (VERSION_FILE_PATH_RELATIVE resources/version)
|
2014-12-30 21:37:33 +00:00
|
|
|
if (GIT_CHECKOUT)
|
2017-10-24 22:29:18 +00:00
|
|
|
get_generator_is_multi_config(multi_config)
|
|
|
|
add_custom_target (git-version
|
2015-07-18 01:01:06 +00:00
|
|
|
COMMAND ${CMAKE_COMMAND}
|
|
|
|
-DGIT_EXECUTABLE=${GIT_EXECUTABLE}
|
2014-12-30 21:37:33 +00:00
|
|
|
-DPROJECT_SOURCE_DIR=${PROJECT_SOURCE_DIR}
|
2015-07-18 01:01:06 +00:00
|
|
|
-DVERSION_IN_FILE=${VERSION_IN_FILE}
|
2017-10-11 20:58:55 +00:00
|
|
|
-DVERSION_FILE_PATH_BASE=${VERSION_FILE_PATH_BASE}
|
|
|
|
-DVERSION_FILE_PATH_RELATIVE=${VERSION_FILE_PATH_RELATIVE}
|
2015-07-18 01:01:06 +00:00
|
|
|
-DOPENMW_VERSION_MAJOR=${OPENMW_VERSION_MAJOR}
|
|
|
|
-DOPENMW_VERSION_MINOR=${OPENMW_VERSION_MINOR}
|
|
|
|
-DOPENMW_VERSION_RELEASE=${OPENMW_VERSION_RELEASE}
|
|
|
|
-DOPENMW_VERSION=${OPENMW_VERSION}
|
2017-10-24 22:31:40 +00:00
|
|
|
-DMACROSFILE=${CMAKE_SOURCE_DIR}/cmake/OpenMWMacros.cmake
|
|
|
|
"-DCMAKE_CONFIGURATION_TYPES=${CMAKE_CONFIGURATION_TYPES}"
|
|
|
|
-Dgenerator_is_multi_config_var=${multi_config}
|
2014-12-30 21:37:33 +00:00
|
|
|
-P ${CMAKE_CURRENT_SOURCE_DIR}/../cmake/GitVersion.cmake
|
2015-07-18 01:01:06 +00:00
|
|
|
VERBATIM)
|
2014-12-30 21:37:33 +00:00
|
|
|
else (GIT_CHECKOUT)
|
2017-10-11 20:58:55 +00:00
|
|
|
configure_resource_file(${VERSION_IN_FILE} ${VERSION_FILE_PATH_BASE} ${VERSION_FILE_PATH_RELATIVE})
|
2014-12-30 21:37:33 +00:00
|
|
|
endif (GIT_CHECKOUT)
|
2014-01-22 16:33:55 +00:00
|
|
|
|
2011-11-06 08:30:15 +00:00
|
|
|
# source files
|
|
|
|
|
2012-03-30 16:38:33 +00:00
|
|
|
add_component_dir (settings
|
|
|
|
settings
|
|
|
|
)
|
|
|
|
|
2011-11-06 08:30:15 +00:00
|
|
|
add_component_dir (bsa
|
2015-02-17 16:08:55 +00:00
|
|
|
bsa_file
|
2011-11-06 08:30:15 +00:00
|
|
|
)
|
|
|
|
|
2015-03-17 20:59:39 +00:00
|
|
|
add_component_dir (vfs
|
2015-03-19 16:49:41 +00:00
|
|
|
manager archive bsaarchive filesystemarchive registerarchives
|
2015-03-17 20:59:39 +00:00
|
|
|
)
|
2016-08-02 10:52:58 +00:00
|
|
|
|
|
|
|
IF(BUILD_OPENMW OR BUILD_OPENCS)
|
2015-03-26 17:02:51 +00:00
|
|
|
add_component_dir (resource
|
2017-02-22 01:18:18 +00:00
|
|
|
scenemanager keyframemanager imagemanager bulletshapemanager bulletshape niffilemanager objectcache multiobjectcache resourcesystem resourcemanager stats
|
2015-03-26 17:02:51 +00:00
|
|
|
)
|
|
|
|
|
2016-02-16 17:18:48 +00:00
|
|
|
add_component_dir (shader
|
|
|
|
shadermanager shadervisitor
|
|
|
|
)
|
|
|
|
|
2015-03-26 17:02:51 +00:00
|
|
|
add_component_dir (sceneutil
|
2017-09-01 20:56:09 +00:00
|
|
|
clone attach visitor util statesetupdater controller skeleton riggeometry morphgeometry lightcontroller
|
2017-02-23 18:42:12 +00:00
|
|
|
lightmanager lightutil positionattitudetransform workqueue unrefqueue pathgridutil waterutil writescene serialize optimizer
|
2015-03-26 17:02:51 +00:00
|
|
|
)
|
|
|
|
|
2011-11-06 08:30:15 +00:00
|
|
|
add_component_dir (nif
|
2015-09-24 13:21:42 +00:00
|
|
|
controlled effect niftypes record controller extra node record_ptr data niffile property nifkey base nifstream
|
2011-11-06 08:30:15 +00:00
|
|
|
)
|
|
|
|
|
2015-02-23 20:06:10 +00:00
|
|
|
add_component_dir (nifosg
|
2015-04-21 18:30:48 +00:00
|
|
|
nifloader controller particle userdata
|
2015-02-23 20:06:10 +00:00
|
|
|
)
|
|
|
|
|
2015-05-12 01:02:15 +00:00
|
|
|
add_component_dir (nifbullet
|
2015-11-16 22:30:10 +00:00
|
|
|
bulletnifloader
|
2015-05-12 01:02:15 +00:00
|
|
|
)
|
2016-08-02 10:52:58 +00:00
|
|
|
ENDIF(BUILD_OPENMW OR BUILD_OPENCS)
|
2011-11-06 08:30:15 +00:00
|
|
|
|
|
|
|
add_component_dir (to_utf8
|
|
|
|
to_utf8
|
|
|
|
)
|
|
|
|
|
|
|
|
add_component_dir (esm
|
2012-09-23 18:41:41 +00:00
|
|
|
attr defs esmcommon esmreader esmwriter loadacti loadalch loadappa loadarmo loadbody loadbook loadbsgn loadcell
|
2015-01-19 12:16:12 +00:00
|
|
|
loadclas loadclot loadcont loadcrea loaddial loaddoor loadench loadfact loadglob loadgmst
|
2015-01-25 00:53:20 +00:00
|
|
|
loadinfo loadingr loadland loadlevlist loadligh loadlock loadprob loadrepa loadltex loadmgef loadmisc
|
2011-11-06 08:30:15 +00:00
|
|
|
loadnpc loadpgrd loadrace loadregn loadscpt loadskil loadsndg loadsoun loadspel loadsscr loadstat
|
2013-07-22 18:50:04 +00:00
|
|
|
loadweap records aipackage effectlist spelllist variant variantimp loadtes3 cellref filter
|
2015-01-19 09:34:49 +00:00
|
|
|
savedgame journalentry queststate locals globalscript player objectstate cellid cellstate globalmap inventorystate containerstate npcstate creaturestate dialoguestate statstate
|
2014-08-03 08:12:03 +00:00
|
|
|
npcstats creaturestats weatherstate quickkeys fogstate spellstate activespells creaturelevliststate doorstate projectilestate debugprofile
|
2016-10-20 00:12:01 +00:00
|
|
|
aisequence magiceffects util custommarkerstate stolenitems transport animationstate controlsstate
|
2011-11-06 08:30:15 +00:00
|
|
|
)
|
|
|
|
|
2014-08-07 18:31:07 +00:00
|
|
|
add_component_dir (esmterrain
|
|
|
|
storage
|
2011-11-06 08:30:15 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_component_dir (misc
|
2016-07-09 01:18:45 +00:00
|
|
|
utf8stream stringops resourcehelpers rng messageformatparser
|
2011-11-06 08:30:15 +00:00
|
|
|
)
|
|
|
|
|
2014-09-22 13:36:42 +00:00
|
|
|
IF(NOT WIN32 AND NOT APPLE)
|
|
|
|
add_definitions(-DGLOBAL_DATA_PATH="${GLOBAL_DATA_PATH}")
|
|
|
|
add_definitions(-DGLOBAL_CONFIG_PATH="${GLOBAL_CONFIG_PATH}")
|
|
|
|
ENDIF()
|
2011-11-06 08:30:15 +00:00
|
|
|
add_component_dir (files
|
2016-07-26 23:58:31 +00:00
|
|
|
linuxpath androidpath windowspath macospath fixedpath multidircollection collections configurationmanager escape
|
2015-05-28 00:34:38 +00:00
|
|
|
lowlevelfile constrainedfilestream memorystream
|
2011-11-06 08:30:15 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_component_dir (compiler
|
|
|
|
context controlparser errorhandler exception exprparser extensions fileparser generator
|
|
|
|
lineparser literals locals output parser scanner scriptparser skipparser streamerrorhandler
|
2014-02-10 12:01:52 +00:00
|
|
|
stringparser tokenloc nullerrorhandler opcodes extensions0 declarationparser
|
2014-12-17 14:03:05 +00:00
|
|
|
quickfileparser discardparser junkparser
|
2011-11-06 08:30:15 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_component_dir (interpreter
|
|
|
|
context controlopcodes genericopcodes installopcodes interpreter localopcodes mathopcodes
|
2012-12-20 23:16:34 +00:00
|
|
|
miscopcodes opcodes runtime scriptopcodes spatialopcodes types defines
|
2011-11-06 08:30:15 +00:00
|
|
|
)
|
|
|
|
|
2012-12-25 19:20:39 +00:00
|
|
|
add_component_dir (translation
|
|
|
|
translation
|
2012-12-23 19:23:24 +00:00
|
|
|
)
|
2013-11-06 09:21:25 +00:00
|
|
|
|
2013-08-16 11:01:52 +00:00
|
|
|
add_component_dir (terrain
|
2017-03-08 21:16:03 +00:00
|
|
|
storage world buffercache defs terraingrid material terraindrawable texturemanager chunkmanager compositemaprenderer quadtreeworld quadtreenode viewdata
|
2013-08-16 11:01:52 +00:00
|
|
|
)
|
2013-11-06 09:21:25 +00:00
|
|
|
|
2013-08-27 13:48:13 +00:00
|
|
|
add_component_dir (loadinglistener
|
|
|
|
loadinglistener
|
|
|
|
)
|
2016-08-02 10:52:58 +00:00
|
|
|
|
|
|
|
IF(BUILD_OPENMW OR BUILD_OPENCS)
|
2015-04-30 23:15:25 +00:00
|
|
|
add_component_dir (myguiplatform
|
2015-11-08 17:21:25 +00:00
|
|
|
myguirendermanager myguidatamanager myguiplatform myguitexture myguiloglistener additivelayer scalinglayer
|
2015-04-30 23:15:25 +00:00
|
|
|
)
|
|
|
|
|
2014-09-12 02:27:23 +00:00
|
|
|
add_component_dir (widgets
|
2015-01-24 18:26:31 +00:00
|
|
|
box imagebutton tags list numericeditbox sharedstatebutton windowcaption widgets
|
2014-09-12 02:27:23 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_component_dir (fontloader
|
|
|
|
fontloader
|
|
|
|
)
|
|
|
|
|
2015-05-13 00:52:04 +00:00
|
|
|
add_component_dir (sdlutil
|
2015-05-14 18:31:16 +00:00
|
|
|
sdlgraphicswindow imagetosurface sdlinputwrapper sdlvideowrapper OISCompat events sdlcursormanager
|
2015-05-13 00:52:04 +00:00
|
|
|
)
|
2016-08-02 10:52:58 +00:00
|
|
|
ENDIF(BUILD_OPENMW OR BUILD_OPENCS)
|
2015-05-13 00:52:04 +00:00
|
|
|
|
2014-01-22 16:33:55 +00:00
|
|
|
add_component_dir (version
|
|
|
|
version
|
|
|
|
)
|
2013-10-30 13:04:33 +00:00
|
|
|
|
2016-01-12 03:41:44 +00:00
|
|
|
add_component_dir (openmw-mp
|
2017-04-23 05:37:45 +00:00
|
|
|
Log Utils NetworkMessages Version
|
|
|
|
)
|
2017-02-05 07:01:33 +00:00
|
|
|
|
2017-05-25 15:56:22 +00:00
|
|
|
add_component_dir (openmw-mp/Base
|
2018-06-05 10:14:52 +00:00
|
|
|
BaseActor BaseObject BasePacketProcessor BasePlayer BaseStructs BaseWorldstate
|
2017-04-23 05:37:45 +00:00
|
|
|
)
|
2017-02-05 07:01:33 +00:00
|
|
|
|
2017-05-25 15:56:22 +00:00
|
|
|
add_component_dir (openmw-mp/Controllers
|
2018-05-18 03:40:28 +00:00
|
|
|
PlayerPacketController ActorPacketController ObjectPacketController WorldstatePacketController
|
2017-04-23 05:37:45 +00:00
|
|
|
)
|
2017-02-27 23:38:25 +00:00
|
|
|
|
2017-05-25 15:56:22 +00:00
|
|
|
add_component_dir(openmw-mp/Master
|
2017-04-23 05:39:38 +00:00
|
|
|
MasterData PacketMasterQuery PacketMasterUpdate PacketMasterAnnounce BaseMasterPacket ProxyMasterPacket
|
2017-04-23 05:37:45 +00:00
|
|
|
)
|
2016-10-19 17:36:11 +00:00
|
|
|
|
2017-05-25 15:56:22 +00:00
|
|
|
add_component_dir (openmw-mp/Packets
|
2017-04-23 05:37:45 +00:00
|
|
|
BasePacket PacketPreInit
|
|
|
|
)
|
2017-04-05 01:06:45 +00:00
|
|
|
|
2017-05-25 15:56:22 +00:00
|
|
|
add_component_dir (openmw-mp/Packets/Actor
|
2017-04-23 05:37:45 +00:00
|
|
|
ActorPacket
|
2018-05-23 04:48:28 +00:00
|
|
|
|
2017-05-29 01:43:52 +00:00
|
|
|
PacketActorList PacketActorAuthority PacketActorTest PacketActorAI PacketActorAnimFlags PacketActorAnimPlay
|
2018-01-29 20:32:51 +00:00
|
|
|
PacketActorAttack PacketActorCellChange PacketActorDeath PacketActorEquipment PacketActorInteraction PacketActorPosition
|
|
|
|
PacketActorSpeech PacketActorStatsDynamic
|
2017-04-23 05:37:45 +00:00
|
|
|
)
|
2016-10-24 20:44:05 +00:00
|
|
|
|
2017-05-25 15:56:22 +00:00
|
|
|
add_component_dir (openmw-mp/Packets/Player
|
2017-04-23 05:37:45 +00:00
|
|
|
PlayerPacket
|
2018-05-23 04:48:28 +00:00
|
|
|
|
2018-05-21 04:14:08 +00:00
|
|
|
PacketHandshake PacketChatMessage PacketGUIBoxes PacketGameSettings PacketGameWeather
|
2018-01-29 20:32:51 +00:00
|
|
|
|
2018-05-23 04:48:28 +00:00
|
|
|
PacketCellCreate
|
2018-01-29 20:32:51 +00:00
|
|
|
|
2017-06-20 02:28:45 +00:00
|
|
|
PacketPlayerBaseInfo PacketPlayerCharGen PacketPlayerActiveSkills PacketPlayerAnimFlags PacketPlayerAnimPlay
|
2018-01-30 14:01:33 +00:00
|
|
|
PacketPlayerAttack PacketPlayerAttribute PacketPlayerBehavior PacketPlayerBook PacketPlayerBounty
|
|
|
|
PacketPlayerCellChange PacketPlayerCellState PacketPlayerClass PacketPlayerDeath PacketPlayerEquipment
|
|
|
|
PacketPlayerFaction PacketPlayerInteraction PacketPlayerInventory PacketPlayerJail PacketPlayerJournal
|
2018-06-07 09:49:12 +00:00
|
|
|
PacketPlayerKillCount PacketPlayerLevel PacketPlayerMiscellaneous PacketPlayerMomentum PacketPlayerPosition
|
|
|
|
PacketPlayerQuickKeys PacketPlayerRegionAuthority PacketPlayerReputation PacketPlayerRest PacketPlayerResurrect
|
|
|
|
PacketPlayerShapeshift PacketPlayerSkill PacketPlayerSpeech PacketPlayerSpellbook PacketPlayerStatsDynamic
|
|
|
|
PacketPlayerTopic
|
2017-04-23 05:37:45 +00:00
|
|
|
)
|
2016-10-26 09:25:50 +00:00
|
|
|
|
2018-05-12 16:40:00 +00:00
|
|
|
add_component_dir (openmw-mp/Packets/Object
|
|
|
|
ObjectPacket
|
2018-05-23 04:48:28 +00:00
|
|
|
|
2018-01-30 14:01:33 +00:00
|
|
|
PacketConsoleCommand PacketContainer PacketObjectAnimPlay PacketObjectAttach PacketObjectCollision
|
|
|
|
PacketObjectDelete PacketDoorDestination PacketDoorState PacketObjectLock PacketObjectMove PacketObjectPlace
|
|
|
|
PacketObjectReset PacketObjectRotate PacketObjectScale PacketObjectSpawn PacketObjectState PacketObjectTrap
|
|
|
|
PacketMusicPlay PacketVideoPlay PacketScriptLocalShort PacketScriptLocalFloat PacketScriptMemberShort
|
|
|
|
PacketScriptMemberFloat PacketScriptGlobalShort PacketScriptGlobalFloat
|
2017-04-23 05:37:45 +00:00
|
|
|
)
|
2016-01-12 03:41:44 +00:00
|
|
|
|
2018-05-18 03:40:28 +00:00
|
|
|
add_component_dir (openmw-mp/Packets/Worldstate
|
|
|
|
WorldstatePacket
|
2018-05-23 04:48:28 +00:00
|
|
|
|
2018-06-07 09:49:12 +00:00
|
|
|
PacketRecordDynamic PacketWorldCollisionOverride PacketWorldMap PacketWorldTime
|
2018-05-18 03:40:28 +00:00
|
|
|
)
|
|
|
|
|
2016-01-06 11:46:06 +00:00
|
|
|
add_component_dir (fallback
|
|
|
|
fallback validate
|
|
|
|
)
|
|
|
|
|
2016-07-18 03:50:52 +00:00
|
|
|
|
2013-10-23 02:52:35 +00:00
|
|
|
set (ESM_UI ${CMAKE_SOURCE_DIR}/files/ui/contentselector.ui
|
2013-08-17 03:23:21 +00:00
|
|
|
)
|
2013-11-06 09:21:25 +00:00
|
|
|
|
2016-08-02 10:52:58 +00:00
|
|
|
IF(BUILD_OPENMW OR BUILD_OPENCS)
|
2015-12-03 05:54:14 +00:00
|
|
|
if (USE_QT)
|
2015-12-02 19:40:04 +00:00
|
|
|
add_component_qt_dir (contentselector
|
|
|
|
model/modelitem model/esmfile
|
|
|
|
model/naturalsort model/contentmodel
|
|
|
|
model/loadordererror
|
|
|
|
view/combobox view/contentselector
|
|
|
|
)
|
|
|
|
add_component_qt_dir (config
|
|
|
|
gamesettings
|
|
|
|
launchersettings
|
|
|
|
settingsbase
|
|
|
|
)
|
|
|
|
|
|
|
|
add_component_qt_dir (process
|
|
|
|
processinvoker
|
|
|
|
)
|
|
|
|
|
|
|
|
if (DESIRED_QT_VERSION MATCHES 4)
|
|
|
|
include(${QT_USE_FILE})
|
|
|
|
QT4_WRAP_UI(ESM_UI_HDR ${ESM_UI})
|
|
|
|
QT4_WRAP_CPP(MOC_SRCS ${COMPONENT_MOC_FILES})
|
|
|
|
else()
|
|
|
|
QT5_WRAP_UI(ESM_UI_HDR ${ESM_UI})
|
|
|
|
QT5_WRAP_CPP(MOC_SRCS ${COMPONENT_MOC_FILES})
|
|
|
|
endif()
|
2015-06-12 13:10:12 +00:00
|
|
|
endif()
|
2016-08-02 10:52:58 +00:00
|
|
|
ENDIF(BUILD_OPENMW OR BUILD_OPENCS)
|
2013-01-27 21:40:38 +00:00
|
|
|
|
2014-09-11 21:12:38 +00:00
|
|
|
if (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
|
|
|
if("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64" AND NOT APPLE)
|
|
|
|
add_definitions(-fPIC)
|
|
|
|
endif()
|
|
|
|
endif ()
|
|
|
|
|
2016-05-09 16:33:24 +00:00
|
|
|
include_directories(${Bullet_INCLUDE_DIRS} ${CMAKE_CURRENT_BINARY_DIR})
|
2011-11-06 08:30:15 +00:00
|
|
|
|
2013-08-17 03:23:21 +00:00
|
|
|
add_library(components STATIC ${COMPONENT_FILES} ${MOC_SRCS} ${ESM_UI_HDR})
|
2012-01-28 00:36:17 +00:00
|
|
|
|
2016-05-03 02:09:48 +00:00
|
|
|
target_link_libraries(components
|
2015-12-03 05:54:14 +00:00
|
|
|
${Boost_SYSTEM_LIBRARY}
|
|
|
|
${Boost_FILESYSTEM_LIBRARY}
|
|
|
|
${Boost_THREAD_LIBRARY}
|
|
|
|
${Boost_PROGRAM_OPTIONS_LIBRARY}
|
|
|
|
${OSG_LIBRARIES}
|
|
|
|
${OPENTHREADS_LIBRARIES}
|
|
|
|
${OSGPARTICLE_LIBRARIES}
|
|
|
|
${OSGUTIL_LIBRARIES}
|
|
|
|
${OSGDB_LIBRARIES}
|
|
|
|
${OSGVIEWER_LIBRARIES}
|
2017-02-22 01:18:18 +00:00
|
|
|
${OSGTEXT_LIBRARIES}
|
2015-12-03 05:54:14 +00:00
|
|
|
${OSGGA_LIBRARIES}
|
|
|
|
${OSGANIMATION_LIBRARIES}
|
2016-05-09 16:33:24 +00:00
|
|
|
${Bullet_LIBRARIES}
|
2016-11-14 06:01:22 +00:00
|
|
|
${SDL2_LIBRARIES}
|
2018-03-27 18:20:40 +00:00
|
|
|
${OPENGL_gl_LIBRARY}
|
2016-06-12 20:34:53 +00:00
|
|
|
${MyGUI_LIBRARIES}
|
2015-12-03 05:54:14 +00:00
|
|
|
)
|
|
|
|
|
2015-06-12 13:22:19 +00:00
|
|
|
if (WIN32)
|
|
|
|
target_link_libraries(components
|
|
|
|
${Boost_LOCALE_LIBRARY})
|
|
|
|
endif()
|
|
|
|
|
2015-12-03 05:54:14 +00:00
|
|
|
if (USE_QT)
|
2015-12-02 19:40:04 +00:00
|
|
|
if (DESIRED_QT_VERSION MATCHES 4)
|
|
|
|
target_link_libraries(components
|
|
|
|
${QT_QTCORE_LIBRARY}
|
|
|
|
${QT_QTGUI_LIBRARY})
|
|
|
|
else()
|
2018-04-17 21:03:56 +00:00
|
|
|
target_link_libraries(components Qt5::Widgets Qt5::Core)
|
2015-12-02 19:40:04 +00:00
|
|
|
endif()
|
2015-06-12 13:10:12 +00:00
|
|
|
endif()
|
|
|
|
|
2014-12-30 21:37:33 +00:00
|
|
|
if (GIT_CHECKOUT)
|
|
|
|
add_dependencies (components git-version)
|
|
|
|
endif (GIT_CHECKOUT)
|
|
|
|
|
2013-06-22 09:33:22 +00:00
|
|
|
if (WIN32)
|
2015-07-19 14:37:20 +00:00
|
|
|
target_link_libraries(components shlwapi)
|
|
|
|
if(MINGW)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNOGDI")
|
|
|
|
endif(MINGW)
|
2013-06-22 09:33:22 +00:00
|
|
|
endif()
|
|
|
|
|
2012-07-15 19:27:57 +00:00
|
|
|
# Fix for not visible pthreads functions for linker with glibc 2.15
|
|
|
|
if (UNIX AND NOT APPLE)
|
|
|
|
target_link_libraries(components ${CMAKE_THREAD_LIBS_INIT})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
2012-01-28 00:36:17 +00:00
|
|
|
# Make the variable accessible for other subdirectories
|
|
|
|
set(COMPONENT_FILES ${COMPONENT_FILES} PARENT_SCOPE)
|