include(CopyImportFiles) # Why do we list all the files instead of using glob? # This way, if we add a new file, the build system will know to regenerate # and the new file will be copied over. set(DB_FILES_TO_IMPORT "abra_db.yml" "achievement_db.yml" "achievement_level_db.yml" "attendance.yml" "attr_fix.yml" "battleground_db.yml" "captcha_db.yml" "castle_db.yml" "const.yml" "create_arrow_db.yml" "elemental_db.yml" "enchantgrade.yml" "exp_guild.yml" "exp_homun.yml" "guild_skill_tree.yml" "homunculus_db.yml" "instance_db.yml" "item_cash.yml" "item_combos.yml" "item_db.yml" "item_enchant.yml" "item_group_db.yml" "item_noequip.txt" "item_packages.yml" "item_randomopt_db.yml" "item_randomopt_group.yml" "item_reform.yml" "job_noenter_map.txt" "job_stats.yml" "laphine_synthesis.yml" "laphine_upgrade.yml" "level_penalty.yml" "magicmushroom_db.yml" "map_cache.dat" "map_drops.yml" "map_index.txt" "mercenary_db.yml" "mob_avail.yml" "mob_chat_db.yml" "mob_db.yml" "mob_item_ratio.yml" "mob_skill_db.txt" "mob_summon.yml" "pet_db.yml" "produce_db.txt" "quest_db.yml" "refine.yml" "reputation_group.yml" "reputation.yml" "size_fix.yml" "skill_changematerial_db.txt" "skill_damage_db.txt" "skill_db.yml" "skill_nocast_db.txt" "skill_tree.yml" "spellbook_db.yml" "statpoint.yml" "status_disabled.txt" "status.yml" "stylist.yml" ) copy_import_files(${CMAKE_CURRENT_SOURCE_DIR}/import-tmpl/ ${CMAKE_CURRENT_SOURCE_DIR}/import "${DB_FILES_TO_IMPORT}")