* [Companion] I18N:
* Introduce new Translations class to centralize all related functionality;
* Add ability to search multiple locations for .qm translation binaries (local folders, resources, system paths);
* Add ability to reload translations dynamically w/out application restart;
* Improve support for loading Qt translations (if available);
* [build][i18n] Look for and include pre-built Qt translations with other translation resources; Generate translations.qrc dynamically with rest of build files; Add EN "translation" file (simpler UI string edits and possible abstractions); Rename ZH translation file to be country-specific.
* [build] Centralize finding all the Qt bits into root CMakeLists; Make sure QT_QMAKE_EXECUTABLE is defined; Disable dysfunctional simulator installer script generation.
* Cosmetics (unused includes).
* [Companion] Make language options menu dynamic based on available translations, and always show native language name; Allow changing language of some elements w/out restarting (esp. menus/toolbar buttons); Simplify menus/actions/handlers for themes and icon sizes.
* [build] Better way to generate translations.qrc using input file again (previous method was generating new qrc for each reconfig); Make sure common library is linked to other modules which may need it; Remove unused script.
33 lines
723 B
CMake
33 lines
723 B
CMake
include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
set(generaledit_NAMES
|
|
generaledit
|
|
generalsetup
|
|
trainer
|
|
hardware
|
|
)
|
|
|
|
set(generaledit_SRCS
|
|
calibration.cpp
|
|
)
|
|
|
|
set(generaledit_HDRS
|
|
calibration.h
|
|
)
|
|
|
|
set(generaledit_UIS
|
|
)
|
|
|
|
foreach(name ${generaledit_NAMES})
|
|
set(generaledit_SRCS ${generaledit_SRCS} ${name}.cpp)
|
|
set(generaledit_HDRS ${generaledit_HDRS} ${name}.h)
|
|
set(generaledit_UIS ${generaledit_UIS} ${name}.ui)
|
|
endforeach()
|
|
|
|
qt5_wrap_ui(generaledit_SRCS ${generaledit_UIS})
|
|
qt5_wrap_cpp(generaledit_SRCS ${generaledit_HDRS})
|
|
|
|
add_library(generaledit ${generaledit_SRCS})
|
|
qt5_use_modules(generaledit Widgets Xml Multimedia)
|
|
target_link_libraries(generaledit PRIVATE ${CPN_COMMON_LIB})
|