Files
cmake_common/python.cmake
T
isanae d187ef06bd new variables install_dir, run_elevated
replaced CMAKE_PROJECT_NAME with PROJECT_NAME, the former doesn't change when there are multiple projects
optional plugins for deploy_qt()
fixed gamebryo handling
added requires_library(), handles loot, cpptoml and python
2020-04-25 00:53:33 -04:00

20 lines
434 B
CMake

include(${CMAKE_CURRENT_LIST_DIR}/helpers/PyQt5TranslationMacros.cmake)
macro(do_python_project)
find_package(Qt5LinguistTools)
if(${create_translations})
pyqt5_create_translation(
qm_files
${CMAKE_SOURCE_DIR}/src ${additional_translations}
${CMAKE_SOURCE_DIR}/src/${PROJECT_NAME}_en.ts
)
endif()
file(GLOB_RECURSE source_files CONFIGURE_DEPENDS *.py)
set(input_files
${source_files}
${qm_files})
endmacro()