mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
CMake
This commit is contained in:
22
source/Core/LangSupport/CMakeLists.txt
Normal file
22
source/Core/LangSupport/CMakeLists.txt
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT "translation_${LANG}.cpp"
|
||||
COMMAND
|
||||
|
||||
python3 ${CMAKE_CURRENT_SOURCE_DIR}/../../../Translations/make_translation.py -o translation_${LANG}.cpp ${LANG}
|
||||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../../../Translations/translation_${LANG}.json
|
||||
VERBATIM)
|
||||
|
||||
|
||||
set(sources
|
||||
translation_${LANG}.cpp
|
||||
# lang_multi.cpp
|
||||
lang_single.cpp
|
||||
)
|
||||
|
||||
|
||||
add_library(languages ${sources})
|
||||
target_link_libraries(languages PUBLIC drivers brieflz )
|
||||
|
||||
Reference in New Issue
Block a user