1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
set(module_name "qlcplus-launcher")
set(TS_FILES
launcher_fi_FI.ts
launcher_de_DE.ts
launcher_fr_FR.ts
launcher_es_ES.ts
launcher_it_IT.ts
launcher_nl_NL.ts
launcher_cz_CZ.ts
launcher_pt_BR.ts
launcher_ca_ES.ts
launcher_ja_JP.ts
)
if(QT_VERSION_MAJOR GREATER 5)
qt_add_translation(QM_FILES ${TS_FILES})
else()
qt5_add_translation(QM_FILES ${TS_FILES})
endif()
add_executable(${module_name}
launcher.cpp launcher.h
main.cpp
${QM_FILES}
)
target_include_directories(${module_name} PRIVATE
../engine/src
../plugins/interfaces
)
target_link_libraries(${module_name} PRIVATE
Qt${QT_MAJOR_VERSION}::Core
Qt${QT_MAJOR_VERSION}::Gui
Qt${QT_MAJOR_VERSION}::Widgets
)
# Resources:
set_source_files_properties("../resources/icons/png/qlcplus-fixtureeditor.png"
PROPERTIES QT_RESOURCE_ALIAS "qlcplus-fixtureeditor.png"
)
set_source_files_properties("../resources/icons/png/qlcplus.png"
PROPERTIES QT_RESOURCE_ALIAS "qlcplus.png"
)
set(launcher_resource_files
"../resources/icons/png/qlcplus-fixtureeditor.png"
"../resources/icons/png/qlcplus.png"
)
if(QT_VERSION_MAJOR GREATER 5)
qt_add_resources(${module_name} "launcher"
PREFIX
"/"
BASE
"."
FILES
${launcher_resource_files}
)
else()
qt5_add_resources($launcher.qrc)
target_sources(${module_name} PRIVATE
${launcher_resource_files})
endif()
install(TARGETS ${module_name}
DESTINATION ${INSTALLROOT}/${BINDIR}
)
|