2011-11-06 08:30:15 +00:00
|
|
|
project (Components)
|
2013-09-07 20:57:40 +00:00
|
|
|
set (CMAKE_BUILD_TYPE DEBUG)
|
2014-01-22 16:33:55 +00:00
|
|
|
|
|
|
|
# Version file
|
|
|
|
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/version/version.hpp.cmake" "${CMAKE_CURRENT_SOURCE_DIR}/version/version.hpp")
|
|
|
|
|
2011-11-06 08:30:15 +00:00
|
|
|
# source files
|
|
|
|
|
2012-03-30 16:38:33 +00:00
|
|
|
add_component_dir (settings
|
|
|
|
settings
|
|
|
|
)
|
|
|
|
|
2012-04-11 18:13:15 +00:00
|
|
|
add_component_dir (nifoverrides
|
|
|
|
nifoverrides
|
|
|
|
)
|
|
|
|
|
2011-11-06 08:30:15 +00:00
|
|
|
add_component_dir (bsa
|
2014-03-09 10:42:39 +00:00
|
|
|
bsa_archive bsa_file resources
|
2011-11-06 08:30:15 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_component_dir (nif
|
2013-02-24 21:51:56 +00:00
|
|
|
controlled effect niftypes record controller extra node record_ptr data niffile property
|
2011-11-06 08:30:15 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_component_dir (nifogre
|
2013-12-08 15:38:13 +00:00
|
|
|
ogrenifloader skeleton material mesh particles controller
|
2011-11-06 08:30:15 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_component_dir (nifbullet
|
2013-02-24 21:52:23 +00:00
|
|
|
bulletnifloader
|
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
|
2011-11-06 08:30:15 +00:00
|
|
|
loadclas loadclot loadcont loadcrea loadcrec loaddial loaddoor loadench loadfact loadglob loadgmst
|
2013-03-22 04:50:54 +00:00
|
|
|
loadinfo loadingr loadland loadlevlist loadligh loadlock loadprob loadrepa loadltex loadmgef loadmisc loadnpcc
|
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
|
2014-02-16 14:06:34 +00:00
|
|
|
savedgame journalentry queststate locals globalscript player objectstate cellid cellstate globalmap lightstate inventorystate containerstate npcstate creaturestate dialoguestate statstate
|
2014-05-17 03:21:17 +00:00
|
|
|
npcstats creaturestats weatherstate quickkeys fogstate spellstate activespells creaturelevliststate doorstate projectilestate
|
2011-11-06 08:30:15 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_component_dir (misc
|
2014-04-20 17:28:39 +00:00
|
|
|
utf8stream stringops
|
2011-11-06 08:30:15 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_component_dir (files
|
2013-12-14 04:07:08 +00:00
|
|
|
linuxpath windowspath macospath fixedpath multidircollection collections configurationmanager
|
|
|
|
constrainedfiledatastream lowlevelfile
|
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-02-14 10:15:16 +00:00
|
|
|
quickfileparser
|
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
|
|
|
|
2014-02-16 18:04:12 +00:00
|
|
|
add_definitions(-DTERRAIN_USE_SHADER=1)
|
2013-08-16 11:01:52 +00:00
|
|
|
add_component_dir (terrain
|
2014-03-06 01:58:46 +00:00
|
|
|
quadtreenode chunk world storage material buffercache defs
|
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
|
|
|
|
)
|
2012-12-23 19:23:24 +00:00
|
|
|
|
2013-10-30 13:04:33 +00:00
|
|
|
add_component_dir (ogreinit
|
2014-01-22 16:33:55 +00:00
|
|
|
ogreinit ogreplugin
|
|
|
|
)
|
|
|
|
|
|
|
|
add_component_dir (version
|
|
|
|
version
|
|
|
|
)
|
2013-10-30 13:04:33 +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
|
|
|
|
2013-02-02 15:25:41 +00:00
|
|
|
find_package(Qt4 COMPONENTS QtCore QtGui)
|
2013-01-27 21:40:38 +00:00
|
|
|
|
2013-02-02 15:25:41 +00:00
|
|
|
if(QT_QTGUI_LIBRARY AND QT_QTCORE_LIBRARY)
|
2013-09-22 04:06:29 +00:00
|
|
|
add_component_qt_dir (contentselector
|
|
|
|
model/modelitem model/esmfile
|
|
|
|
model/naturalsort model/contentmodel
|
2013-10-23 02:52:35 +00:00
|
|
|
view/combobox view/contentselector
|
2013-02-02 15:25:41 +00:00
|
|
|
)
|
2013-01-27 21:40:38 +00:00
|
|
|
|
2013-02-02 15:25:41 +00:00
|
|
|
include(${QT_USE_FILE})
|
2013-08-17 03:23:21 +00:00
|
|
|
QT4_WRAP_UI(ESM_UI_HDR ${ESM_UI})
|
2013-02-02 15:25:41 +00:00
|
|
|
QT4_WRAP_CPP(MOC_SRCS ${COMPONENT_MOC_FILES})
|
|
|
|
endif(QT_QTGUI_LIBRARY AND QT_QTCORE_LIBRARY)
|
2013-01-27 21:40:38 +00:00
|
|
|
|
2013-08-17 03:23:21 +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
|
|
|
|
|
|
|
target_link_libraries(components ${Boost_LIBRARIES} ${OGRE_LIBRARIES})
|
|
|
|
|
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)
|