Mercurial > minori
diff CMakeLists.txt @ 195:975a3f0965e2
locale: only attempt loading locales after QApplication is init'd
also the general application stuff and anime list is separated in settings
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Thu, 07 Dec 2023 11:14:01 -0500 |
parents | 8548dc425697 |
children | 71832ffe425a |
line wrap: on
line diff
--- a/CMakeLists.txt Thu Dec 07 03:17:05 2023 -0500 +++ b/CMakeLists.txt Thu Dec 07 11:14:01 2023 -0500 @@ -123,7 +123,6 @@ set_source_files_properties(${TS_FILES} PROPERTIES OUTPUT_LOCATION "${CMAKE_CURRENT_BINARY_DIR}/rc/locale") -# dumb little hack to get this working on Qt5 and Qt6 if(UPDATE_TRANSLATIONS) cmake_language(CALL qt${QT_VERSION_MAJOR}_create_translation ${SRC_FILES} ${TS_FILES} OPTIONS "-I${CMAKE_CURRENT_SOURCE_DIR}/include") endif() @@ -196,6 +195,7 @@ target_compile_options(minori PRIVATE -Wall -Wpedantic -Wextra -Wsuggest-override -Wold-style-cast) if(APPLE) target_compile_definitions(minori PUBLIC MACOSX) + set_target_properties(minori PROPERTIES MACOSX_BUNDLE TRUE) elseif(WIN32) target_compile_definitions(minori PUBLIC WIN32) endif()