Merge branch 'cmake'
commit
9794c4b928
@ -0,0 +1,24 @@
|
|||||||
|
|
||||||
|
macro (add_openmw_dir dir)
|
||||||
|
set (files)
|
||||||
|
foreach (u ${ARGN})
|
||||||
|
file (GLOB ALL RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "${dir}/${u}.*")
|
||||||
|
foreach (f ${ALL})
|
||||||
|
list (APPEND files "${f}")
|
||||||
|
list (APPEND OPENMW_FILES "${f}")
|
||||||
|
endforeach (f)
|
||||||
|
endforeach (u)
|
||||||
|
source_group ("apps\\openmw\\${dir}" FILES ${files})
|
||||||
|
endmacro (add_openmw_dir)
|
||||||
|
|
||||||
|
macro (add_component_dir dir)
|
||||||
|
set (files)
|
||||||
|
foreach (u ${ARGN})
|
||||||
|
file (GLOB ALL RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "${dir}/${u}.*")
|
||||||
|
foreach (f ${ALL})
|
||||||
|
list (APPEND files "${f}")
|
||||||
|
list (APPEND COMPONENT_FILES "${f}")
|
||||||
|
endforeach (f)
|
||||||
|
endforeach (u)
|
||||||
|
source_group ("components\\${dir}" FILES ${files})
|
||||||
|
endmacro (add_component_dir)
|
@ -0,0 +1,66 @@
|
|||||||
|
project (Components)
|
||||||
|
|
||||||
|
# source files
|
||||||
|
|
||||||
|
add_component_dir (bsa
|
||||||
|
bsa_archive bsa_file
|
||||||
|
)
|
||||||
|
|
||||||
|
add_component_dir (cfg
|
||||||
|
configurationmanager
|
||||||
|
)
|
||||||
|
|
||||||
|
add_component_dir (nif
|
||||||
|
controlled effect nif_types record controller extra node record_ptr data nif_file property
|
||||||
|
)
|
||||||
|
|
||||||
|
add_component_dir (nifogre
|
||||||
|
ogre_nif_loader
|
||||||
|
)
|
||||||
|
|
||||||
|
add_component_dir (nifbullet
|
||||||
|
bullet_nif_loader
|
||||||
|
)
|
||||||
|
|
||||||
|
add_component_dir (to_utf8
|
||||||
|
to_utf8
|
||||||
|
)
|
||||||
|
|
||||||
|
add_component_dir (file_finder
|
||||||
|
file_finder filename_less search
|
||||||
|
)
|
||||||
|
|
||||||
|
add_component_dir (esm_store
|
||||||
|
cell_store reclists store
|
||||||
|
)
|
||||||
|
|
||||||
|
add_component_dir (esm
|
||||||
|
attr defs esm_reader loadacti loadalch loadappa loadarmo loadbody loadbook loadbsgn loadcell
|
||||||
|
loadclas loadclot loadcont loadcrea loadcrec loaddial loaddoor loadench loadfact loadglob loadgmst
|
||||||
|
loadinfo loadingr loadland loadlevlist loadligh loadlocks loadltex loadmgef loadmisc loadnpcc
|
||||||
|
loadnpc loadpgrd loadrace loadregn loadscpt loadskil loadsndg loadsoun loadspel loadsscr loadstat
|
||||||
|
loadweap records
|
||||||
|
)
|
||||||
|
|
||||||
|
add_component_dir (misc
|
||||||
|
slice_array stringops
|
||||||
|
)
|
||||||
|
|
||||||
|
add_component_dir (files
|
||||||
|
linuxpath windowspath macospath path multidircollection collections fileops
|
||||||
|
)
|
||||||
|
|
||||||
|
add_component_dir (compiler
|
||||||
|
context controlparser errorhandler exception exprparser extensions fileparser generator
|
||||||
|
lineparser literals locals output parser scanner scriptparser skipparser streamerrorhandler
|
||||||
|
stringparser tokenloc
|
||||||
|
)
|
||||||
|
|
||||||
|
add_component_dir (interpreter
|
||||||
|
context controlopcodes genericopcodes installopcodes interpreter localopcodes mathopcodes
|
||||||
|
miscopcodes opcodes runtime scriptopcodes spatialopcodes types
|
||||||
|
)
|
||||||
|
|
||||||
|
include_directories(${BULLET_INCLUDE_DIRS})
|
||||||
|
|
||||||
|
add_library (components STATIC ${COMPONENT_FILES})
|
Loading…
Reference in New Issue