Files
qt5-legatus-legacy/Lts/Tools/DBUpdate/CMakeLists.txt
T
2026-08-13 18:33:10 +02:00

333 lines
13 KiB
CMake
Executable File

#
# $Id$
# $HeadURL$
# $Author$
# Created by Iuliana Ojog, 2021-02-10
#
SET(SRCS
db_update.cpp
db_update.h
logger.cpp
logger.h
global_updates_model.cpp
global_updates_model.h
exercises_model.cpp
exercises_model.h
show_history.cpp
show_history.h
history_model.cpp
history_model.h
main.cpp
)
SET(UPDATES
updates/1.00_create_db_version_tables.upd
updates/2.00_create_user_ets_ex_00.upd
updates/2.40_create_user_flt.upd
# updates/samples/1.01_sample_pdm_translation.upd
# updates/samples/1.02_sample_grant_create.upd
# updates/samples/1.03_sample_ex_rep.upd
# updates/samples/1.04_sample_flm_foreign_key.upd
# updates/samples/1.05_sample_asm_maps_bremen.upd
)
SET(UPDATES_AHTC
updates/ahtc/1.01_ahtc_ex_rec_equipment_state.upd
updates/ahtc/1.02_ahtc_pdm_vulnerability_kind.upd
updates/ahtc/1.03_ahtc_ex_aes.upd
updates/ahtc/1.04_ahtc_opm_rights_description.upd
updates/ahtc/1.05_ahtc_ism_mpa_barcodes.upd
updates/ahtc/1.06_ahtc_ex_sanitation_unique_id.upd
updates/ahtc/1.07_ahtc_pdm_building_charge_effect.upd
updates/ahtc/1.08_ahtc_pdm_sanitation_procedures.upd
updates/ahtc/1.09_ahtc_ex_rec_hitline_info.upd
updates/ahtc/1.10_ahtc_pdm_charge_type_2035.upd
updates/ahtc/1.11_ahtc_role_ctc_sv.upd
updates/ahtc/1.12_ahtc_ism_mpa_name.upd
updates/ahtc/1.13_ahtc_asm_egcu_relay_info.upd
updates/ahtc/1.14_ahtc_ex_bld_egcu_relay_infos.upd
updates/ahtc/1.15_ahtc_asm_egcu_relay_info_values.upd
updates/ahtc/1.16_ahtc_pdm_changes.upd
updates/ahtc/1.17_ahtc_opm_rights_egcu.upd
updates/ahtc/1.18_ahtc_pdm_dis_entity.upd
updates/ahtc/1.19_ahtc_pdm_gear_type.upd
updates/ahtc/1.20_ahtc_ex_eem_event_index.upd
updates/ahtc/1.21_ahtc_ism_and_ex_bld_bridge.upd
updates/ahtc/1.22_ahtc_ism_resource_management.upd
updates/ahtc/1.23_ahtc_ism_bridges.upd
updates/ahtc/1.24_ahtc_pdm_puma_vba.upd
updates/ahtc/1.25_ahtc_pdm_dis_entities_all.upd
updates/ahtc/1.26_ahtc_ism_assets.upd
updates/ahtc/1.27_ahtc_asm_egcu_relay_info_values.upd
updates/ahtc/1.28_ahtc_pdm_gear_type_charge_type.upd
updates/ahtc/1.29_ahtc_ism_building_names.upd
updates/ahtc/1.30_ahtc_ism_ips.upd
updates/ahtc/1.31_ahtc_flm_clean.upd
updates/ahtc/1.32_ahtc_flm_folders_ex_130.upd
updates/ahtc/1.33_ahtc_pdm_gear_type_charge_type_385.upd
updates/ahtc/1.34_ahtc_ex_clean_eem.upd
updates/ahtc/1.35_ahtc_ex_sanitation_qualification.upd
updates/ahtc/1.36_ahtc_pdm_building_charge_effect.upd
updates/ahtc/1.37_ahtc_ppm_equipment_type.upd
updates/ahtc/1.38_ahtc_ex_impact_position.upd
updates/ahtc/1.39_ahtc_ppm_properties.upd
updates/ahtc/1.40_ahtc_exm_sequence.upd
updates/ahtc/1.41_ahtc_asm_workstations.upd
updates/ahtc/1.42_ahtc_pdm_charge_type.upd
)
SET(UPDATES_GUEZ
updates/guez/1.01_guez_ex_rec_equipment_state.upd
updates/guez/1.02_guez_pdm_vulnerability_kind.upd
updates/guez/1.03_guez_ex_aes.upd
updates/guez/1.04_guez_opm_rights_description.upd
updates/guez/1.05_guez_ism_mpa_barcodes.upd
updates/guez/1.06_guez_ex_sanitation_unique_id.upd
updates/guez/1.07_guez_pdm_building_charge_effect.upd
updates/guez/1.08_guez_pdm_sanitation_procedures.upd
updates/guez/1.09_guez_ex_rec_hitline_info.upd
updates/guez/1.10_guez_pdm_charge_type_2035.upd
updates/guez/1.11_guez_role_ctc_sv.upd
updates/guez/1.12_guez_ism_mpa_name.upd
updates/guez/1.13_guez_asm_egcu_relay_info.upd
updates/guez/1.14_guez_ex_bld_egcu_relay_infos.upd
updates/guez/1.15_guez_asm_egcu_relay_info_values.upd
updates/guez/1.16_guez_pdm_changes.upd
updates/guez/1.17_guez_opm_rights_egcu.upd
updates/guez/1.18_guez_pdm_dis_entity.upd
updates/guez/1.19_guez_pdm_gear_type.upd
updates/guez/1.20_guez_ex_eem_event_index.upd
updates/guez/1.21_guez_ism_and_ex_bld_bridge.upd
updates/guez/1.22_guez_ism_resource_management.upd
updates/guez/1.23_guez_ism_bridges.upd
updates/guez/1.24_guez_pdm_puma_vba.upd
updates/guez/1.25_guez_pdm_dis_entities_all.upd
updates/guez/1.26_guez_ism_assets.upd
updates/guez/1.27_guez_asm_egcu_relay_info_values.upd
updates/guez/1.28_guez_pdm_gear_type_charge_type.upd
updates/guez/1.29_guez_ism_building_names.upd
updates/guez/1.30_guez_ism_ips.upd
updates/guez/1.31_guez_flm_clean.upd
updates/guez/1.32_guez_flm_folders_ex_130.upd
updates/guez/1.33_guez_pdm_gear_type_charge_type_385.upd
updates/guez/1.34_guez_ex_clean_eem.upd
updates/guez/1.35_guez_ex_sanitation_qualification.upd
updates/guez/1.36_guez_pdm_building_charge_effect.upd
updates/guez/1.37_guez_ppm_equipment_type.upd
#updates/guez/1.38_guez_ex_impact_position.upd
#updates/guez/1.39_guez_ppm_properties.upd
updates/guez/1.40_guez_exm_set_transferred.upd
updates/guez/1.41_guez_ex_clean_eem_set_unique_key.upd
#updates/guez/1.42_guez_pdm_building_charge_effect.upd
updates/guez/1.43_guez_ex_rep_treatment_vitality.upd
updates/guez/2.01_guez_rep_event_type.upd
updates/guez/2.02_guez_ex_nlos_tables.upd
updates/guez/2.03_guez_pdm_gear_type_properties.upd
updates/guez/2.10_guez_ex_ppm_dynamic_data_originator.upd
updates/guez/2.11_guez_ex_rep_pvsan.upd
updates/guez/2.12_guez_opm_san_nineliner_rights.upd
updates/guez/2.13_guez_aes_function_areas.upd
updates/guez/2.14_guez_ex_bld_history_state.upd
updates/guez/2.17_guez_aes_function_areas.upd
updates/guez/2.16_guez_flm_folders_ex_158.upd
updates/guez/2.19_guez_flm_new_structure.upd
updates/guez/2.20_guez_ism_structure_element.upd
updates/guez/2.21_guez_pdm_PzAbwVMiV.upd
updates/guez/2.23_guez_flm_delete_old_structure.upd
updates/guez/2.24_guez_flm_change_order.upd
updates/guez/2.26_guez_ism_schedule_status.upd
updates/guez/2.27_guez_flt_building_component_settings.upd
# updates/guez/2.31_guez_ism_view_schedules.upd
# updates/guez/2.32_guez_asm_schnoeggersburg_drone_topo2022.upd
updates/guez/2.33_guez_ism_remove_buildingnetworkswitch.upd
updates/guez/2.35_guez_ism_add_sections.upd
updates/guez/2.36_guez_ism_change_radio_basestation.upd
updates/guez/2.38_guez_opm_rights_resource_mgmt.upd
updates/guez/2.39_guez_delete_mounting_point_type_entries.upd
updates/guez/2.42_guez_ism_unique_key.upd
updates/guez/2.43_guez_avm_avs_events_last_update.upd
updates/guez/2.44_guez_ism_update_ips.upd
updates/guez/2.45_guez_alm_emergency_call.upd
updates/guez/2.46_guez_opm_rights_emergency_call.upd
updates/guez/2.47_guez_pdm_gear_type_update.upd
updates/guez/2.48_guez_pdm_charge_type_set_lrf_ltd.upd
updates/guez/2.49_guez_pdm_gear_type_single_mine_virtual.upd
updates/guez/2.50_guez_aes_update_entity.upd
updates/guez/2.51_guez_opm_rights_mine_single_virtual.upd
updates/guez/2.52_guez_ex_rec_international_mode.upd
updates/guez/2.53_ism_special_area.upd
updates/guez/2.54_ppm_silhouette.upd
updates/guez/2.55_aes_explosion_single.upd
updates/guez/2.56_guez_pdm_charge_type.upd
updates/guez/2.57_guez_ism_special_area.upd
updates/guez/2.58_guez_pdm_type.upd
updates/guez/2.59_guez_avm_update.upd
updates/guez/2.60_guez_aes_functional_area.upd
updates/guez/2.61_guez_pdm_charge_type_240.upd
updates/guez/2.62_guez_avm.upd
updates/guez/2.62_guez_pdm_charge_types_from_minelayer.upd
updates/guez/2.63_guez_avm_frequency_planning_status.upd
updates/guez/2.64_guez_aes_functional_area.upd
updates/guez/2.65_aes_mine_area_segment.upd
updates/guez/2.66_guez_aes_functional_area_translation.upd
updates/guez/2.67_guez_pdm_fire_purposes.upd
updates/guez/2.68_guez_aes_explosion_cluster.upd
updates/guez/2.69_guez_pdm_charge_type.upd
updates/guez/2.70_guez_ism_asset.upd
updates/guez/2.71_pdm_event_type.upd
updates/guez/2.72_bremen_ppm_template_type.upd
updates/guez/2.73_guez_pdm_translation.upd
updates/guez/2.74_guez_avm_tvc_channel.upd
updates/guez/2.75_restore_radio_readiness.upd
updates/guez/2.76_guez_opm_operators.upd
updates/guez/2.77_guez_b_c_contamination.upd
updates/guez/2.78_guez_ex_recording_tables.upd
updates/guez/2.79_guez_ex_aes_danger_area.upd
updates/guez/2.80_guez_avm_restore_heidebote-s.upd
updates/guez/2.81_guez_pdm_gear_type_rocket.upd
updates/guez/2.82_guez_ism_footprint.upd
updates/guez/2.83_guez_pdm_charge_type.upd
updates/guez/2.84_guez_pdm_building_charge.upd
updates/guez/2.85_guez_opm_operator_right.upd
updates/guez/2.86_guez_ex_recording_tables.upd
updates/guez/2.87_guez_aes_explosion_cluster.upd
updates/guez/2.88_guez_pdm_charge_type_set_laserGuidable.upd
updates/guez/2.89_guez_pdm_charge_type.upd
updates/guez/2.90_guez_aes_weather.upd
updates/guez/2.91_guez_pdm_charge_type.upd
updates/guez/2.92_aes_explosion_cluster.upd
updates/guez/2.93_guez_rep_treatment.upd
updates/guez/2.94_guez_ism_asset_thales_test_components.upd
updates/guez/2.95_guez_pdm_charge_type_pzabwmiv.upd
updates/guez/2.96_guez_pdm_LTD.upd
updates/guez/2.97_guez_rename_user.upd
updates/guez/2.98_guez_aes_static_weather.upd
updates/guez/2.99_guez_pdm_show_LTD_hitline.upd
updates/guez/2.100_guez_pdm_charge_type.upd
updates/guez/2.101_guez_opm_groups.upd
updates/guez/2.102_guez_pdm_fuse_type_factor.upd
updates/guez/2.103_guez_exm_properties.upd
updates/guez/2.104_guez_ism_structure_element.upd
updates/guez/2.105_guez_pdm_charge_type.upd
updates/guez/2.106_guez_rep_airsupport.upd
updates/guez/2.107_guez_pdm_event_type.upd
updates/guez/2.108_guez_pdm_VLAD.upd
updates/guez/2.109_guez_ppm.upd
updates/guez/2.110_guez_pdm_ADLER_munition.upd
updates/guez/2.111_guez_ppm_UAS_type.upd
updates/guez/2.112_guez_permission_uas.upd
updates/guez/2.113_guez_pdm_air_support.upd
updates/guez/2.119_guez_nom_schema.upd
updates/guez/2.120_guez_nom_notification.upd
updates/guez/2.121_guez_ppm_party.upd
updates/guez/2.125_guez_pdm_charge_type.upd
updates/guez/2.126_guez_pdm_saa_tables.upd
updates/guez/2.127_guez_ppm_types_adler.upd
updates/guez/2.128_guez_aes_entity_received.upd
updates/guez/2.130_guez_opm_operator_rights.upd
updates/guez/2.134_guez_opm_operator_rights.upd
updates/guez/2.136_opm_operator_exercise.upd
updates/guez/2.135_guez_asm_asset_saa.upd
updates/guez/2.136_opm_operator_exercise.upd
updates/guez/2.138_guez_pdm_effect_source.upd
updates/guez/2.139_guez_aes_effect_source.upd
updates/guez/2.142_guez_flm_is_hidden.upd
updates/guez/2.145_guez_esm_vehicle_status.upd
updates/guez/2.146_guez_aes_explosion_cluster.upd
updates/guez/2.135_guez_asm_asset_saa.upd
updates/guez/2.123_guez_pdm_charge_type.upd
updates/guez/2.124_guez_ppm_mission.upd
updates/guez/2.122_guez_pdm_uas_charge_Type.upd
updates/guez/2.132_guez_opm_operator_rights.upd
updates/guez/2.137_guez_pdm_fire_purpose.upd
updates/guez/2.140_guez_ppm_rec_nbcprotection.upd
updates/guez/2.141_guez_aes_charge_effect.upd
updates/guez/2.144_guez_pdm_charge_type.upd
updates/guez/2.147_guez_pdm_translations.upd
updates/guez/2.148_guez_flm_file_type.upd
updates/guez/2.149_guez_ppm_type.upd
updates/guez/2.150_guez_pdm_changes.upd
updates/guez/2.151_guez_pdm_igniter_changes.upd
updates/guez/2.152_guez_asm_asset_add_saaList.upd
updates/guez/2.153_guez_aes_igniter_changes.upd
updates/guez/2.154_guez_pdm_charges.upd
updates/guez/2.155_guez_pdm_uas.upd
updates/guez/2.156_guez_opm_operator_exercise.upd
updates/guez/2.157_guez_aes_effect_cluster.upd
updates/guez/2.158_guez_aes_recording_tables.upd
updates/guez/2.159_guez_pdm_fire_purpose.upd
updates/guez/2.160_guez_opm_operator_rights.upd
updates/guez/2.161_guez_pdm_gear_type.upd
updates/guez/2.162_guez_aes_effect_cluster.upd
updates/guez/2.163_guez_pdm_load_type.upd
updates/guez/2.164_guez_aes_mine_area_triggered_mines.upd
updates/guez/2.165_guez_ppm_type.upd
updates/guez/2.166_guez_ppm_charge_type_mine_class.upd
updates/guez/2.167_guez_ppm_type_rework.upd
updates/guez/2.168_pdm_add_cadence.upd
updates/guez/2.169_guez_ppm_impact_radius.upd
updates/guez/2.170_guez_nom_notification.upd
updates/guez/2.171_add_uas_ied_into_charge_type_igniter_type.upd
updates/guez/2.172_guez_laser_munition_as_he_munition.upd
updates/guez/2.173_guez_pdm_effect_source_unknown.upd
updates/guez/2.174_rep_report_effect_source.upd
updates/guez/2.175_pdm_charge_type_igniter.upd
updates/guez/2.177_guez_DM72_update_charge_type_properties.upd
updates/guez/2.178_guez_pdm_target_type_target_subtype.upd
updates/guez/2.179_guez_ppm_uas_update.upd
updates/guez/2.180_guez_ex_rec_uas.upd
)
SET(UPDATES_QATAR
updates/qatar/1.01_qatar_charge.upd
)
SET(UPDATES_QATARMOUT
updates/qatar/1.01_qatar_charge.upd
)
NGL_WRAP_UI(SRCS ui/db_update.ui ui/show_history.ui)
NGL_ADD_EXECUTABLE(SV dbUpdate ${SRCS})
NGL_TARGET_LINK_LIBRARIES(dbUpdate
Qt5::Widgets
Qt5::Core
nglapplication
ngldb
nglcoreapplication
ngltools
ngltranslator
nglwidgets
nglsettings
NGLLogger
LtsCommandLineParser
)
NGL_INSTALL_TARGET(dbUpdate)
NGL_INSTALL(SV FILES log4cxx_dbu.props DESTINATION bin)
NGL_INSTALL(SV FILES ${UPDATES} DESTINATION bin/updates)
IF(GUEZ_MODE)
NGL_INSTALL(SV FILES ${UPDATES_GUEZ} DESTINATION bin/updates)
ELSE()
IF( DEFINED _pname)
IF(UNIX AND "${_pname}" STREQUAL "qatarmout")
MESSAGE("Install updates for QATAR MOUT")
NGL_INSTALL(SV FILES ${UPDATES_QATARMOUT} DESTINATION bin/updates)
ELSEIF(UNIX AND "${_pname}" STREQUAL "qatar")
MESSAGE("Install updates for QATAR")
NGL_INSTALL(SV FILES ${UPDATES_QATAR} DESTINATION bin/updates)
ELSE()
NGL_INSTALL(SV FILES ${UPDATES_AHTC} DESTINATION bin/updates)
ENDIF()
ENDIF()
ENDIF()