forked from mirror/openmw-tes3mp
don't use globbing
This commit is contained in:
parent
acc5c3bbbf
commit
17a5c22c8f
3 changed files with 115 additions and 9 deletions
|
@ -23,10 +23,9 @@ endforeach (u)
|
||||||
source_group ("components\\${dir}" FILES ${files})
|
source_group ("components\\${dir}" FILES ${files})
|
||||||
endmacro (add_component_dir)
|
endmacro (add_component_dir)
|
||||||
|
|
||||||
macro (copy_all_files file_expression destination_dir)
|
macro (copy_all_files source_dir destination_dir files)
|
||||||
file (GLOB ALL "${file_expression}")
|
foreach (f ${files})
|
||||||
foreach (f ${ALL})
|
|
||||||
get_filename_component(filename ${f} NAME)
|
get_filename_component(filename ${f} NAME)
|
||||||
configure_file(${f} ${destination_dir}/${filename} COPYONLY)
|
configure_file(${source_dir}/${f} ${destination_dir}/${filename} COPYONLY)
|
||||||
endforeach (f)
|
endforeach (f)
|
||||||
endmacro (copy_all_files)
|
endmacro (copy_all_files)
|
||||||
|
|
|
@ -1,9 +1,50 @@
|
||||||
project(resources)
|
project(resources)
|
||||||
|
|
||||||
copy_all_files(${CMAKE_CURRENT_SOURCE_DIR}/water/* "${OpenMW_BINARY_DIR}/resources/water/")
|
set(WATER_FILES
|
||||||
|
underwater_dome.mesh
|
||||||
|
water_nm.png
|
||||||
|
)
|
||||||
|
|
||||||
copy_all_files(${CMAKE_CURRENT_SOURCE_DIR}/gbuffer/* "${OpenMW_BINARY_DIR}/resources/gbuffer/")
|
set(GBUFFER_FILES
|
||||||
|
gbuffer.compositor
|
||||||
|
)
|
||||||
|
|
||||||
copy_all_files(${CMAKE_CURRENT_SOURCE_DIR}/shadows/* "${OpenMW_BINARY_DIR}/resources/shadows/")
|
set(MATERIAL_FILES
|
||||||
|
atmosphere.shader
|
||||||
|
atmosphere.shaderset
|
||||||
|
clouds.shader
|
||||||
|
clouds.shaderset
|
||||||
|
core.h
|
||||||
|
moon.shader
|
||||||
|
moon.shaderset
|
||||||
|
objects.mat
|
||||||
|
objects.shader
|
||||||
|
objects.shaderset
|
||||||
|
openmw.configuration
|
||||||
|
quad2.shader
|
||||||
|
quad.mat
|
||||||
|
quad.shader
|
||||||
|
quad.shaderset
|
||||||
|
shadowcaster.mat
|
||||||
|
shadowcaster.shader
|
||||||
|
shadowcaster.shaderset
|
||||||
|
shadows.h
|
||||||
|
sky.mat
|
||||||
|
stars.shader
|
||||||
|
stars.shaderset
|
||||||
|
sun.shader
|
||||||
|
sun.shaderset
|
||||||
|
terrain.shader
|
||||||
|
terrain.shaderset
|
||||||
|
underwater.h
|
||||||
|
water.mat
|
||||||
|
water.shader
|
||||||
|
water.shaderset
|
||||||
|
|
||||||
copy_all_files(${CMAKE_CURRENT_SOURCE_DIR}/materials/* "${OpenMW_BINARY_DIR}/resources/materials/")
|
)
|
||||||
|
|
||||||
|
copy_all_files(${CMAKE_CURRENT_SOURCE_DIR}/water "${OpenMW_BINARY_DIR}/resources/water/" "${WATER_FILES}")
|
||||||
|
|
||||||
|
copy_all_files(${CMAKE_CURRENT_SOURCE_DIR}/gbuffer "${OpenMW_BINARY_DIR}/resources/gbuffer/" "${GBUFFER_FILES}")
|
||||||
|
|
||||||
|
copy_all_files(${CMAKE_CURRENT_SOURCE_DIR}/materials "${OpenMW_BINARY_DIR}/resources/materials/" "${MATERIAL_FILES}")
|
||||||
|
|
|
@ -3,4 +3,70 @@
|
||||||
set(SDIR ${CMAKE_CURRENT_SOURCE_DIR})
|
set(SDIR ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
set(DDIR ${OpenMW_BINARY_DIR}/resources/mygui)
|
set(DDIR ${OpenMW_BINARY_DIR}/resources/mygui)
|
||||||
|
|
||||||
copy_all_files(${SDIR}/* ${DDIR})
|
set(MYGUI_FILES
|
||||||
|
atlas1.cfg
|
||||||
|
bigbars.png
|
||||||
|
black.png
|
||||||
|
core.skin
|
||||||
|
core.xml
|
||||||
|
EBGaramond-Regular.ttf
|
||||||
|
mwgui.png
|
||||||
|
Obliviontt.zip
|
||||||
|
openmw_alchemy_window.layout
|
||||||
|
openmw_book.layout
|
||||||
|
openmw_box.skin.xml
|
||||||
|
openmw_button.skin.xml
|
||||||
|
openmw_chargen_birth.layout
|
||||||
|
openmw_chargen_class_description.layout
|
||||||
|
openmw_chargen_class.layout
|
||||||
|
openmw_chargen_create_class.layout
|
||||||
|
openmw_chargen_generate_class_result.layout
|
||||||
|
openmw_chargen_race.layout
|
||||||
|
openmw_chargen_review.layout
|
||||||
|
openmw_chargen_select_attribute.layout
|
||||||
|
openmw_chargen_select_skill.layout
|
||||||
|
openmw_chargen_select_specialization.layout
|
||||||
|
openmw_confirmation_dialog.layout
|
||||||
|
openmw_console.layout
|
||||||
|
openmw_console.skin.xml
|
||||||
|
openmw_container_window.layout
|
||||||
|
openmw_count_window.layout
|
||||||
|
openmw_dialogue_window.layout
|
||||||
|
openmw_dialogue_window_skin.xml
|
||||||
|
openmw_edit.skin.xml
|
||||||
|
openmw.font.xml
|
||||||
|
openmw_hud_box.skin.xml
|
||||||
|
openmw_hud_energybar.skin.xml
|
||||||
|
openmw_hud.layout
|
||||||
|
openmw_infobox.layout
|
||||||
|
openmw_interactive_messagebox.layout
|
||||||
|
openmw_inventory_window.layout
|
||||||
|
openmw_journal.layout
|
||||||
|
openmw_journal_skin.xml
|
||||||
|
openmw_layers.xml
|
||||||
|
openmw_list.skin.xml
|
||||||
|
openmw_mainmenu.layout
|
||||||
|
openmw_mainmenu_skin.xml
|
||||||
|
openmw_map_window.layout
|
||||||
|
openmw_map_window_skin.xml
|
||||||
|
openmw_messagebox.layout
|
||||||
|
openmw.pointer.xml
|
||||||
|
openmw_progress.skin.xml
|
||||||
|
openmw_resources.xml
|
||||||
|
openmw_scroll.layout
|
||||||
|
openmw_scroll_skin.xml
|
||||||
|
openmw_settings_window.layout
|
||||||
|
openmw_settings.xml
|
||||||
|
openmw_spell_window.layout
|
||||||
|
openmw_stats_window.layout
|
||||||
|
openmw_text_input.layout
|
||||||
|
openmw_text.skin.xml
|
||||||
|
openmw_tooltips.layout
|
||||||
|
openmw_trade_window.layout
|
||||||
|
openmw_windows.skin.xml
|
||||||
|
smallbars.png
|
||||||
|
VeraMono.ttf
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
copy_all_files(${CMAKE_CURRENT_SOURCE_DIR} ${DDIR} "${MYGUI_FILES}")
|
||||||
|
|
Loading…
Reference in a new issue