mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Make it possible to ignore translation targets and add install target
Contributes to #41
This commit is contained in:
parent
6eb9f5139b
commit
e62dee6993
1 changed files with 50 additions and 37 deletions
|
@ -4,6 +4,7 @@ cmake_minimum_required(VERSION 2.8.12)
|
|||
|
||||
set(URANIUM_SCRIPTS_DIR "${CMAKE_SOURCE_DIR}/../uranium/scripts" CACHE DIRECTORY "The location of the scripts directory of the Uranium repository")
|
||||
|
||||
if(${URANIUM_SCRIPTS_DIR})
|
||||
# Extract Strings
|
||||
add_custom_target(extract-messages ${URANIUM_SCRIPTS_DIR}/extract-messages ${CMAKE_SOURCE_DIR} cura)
|
||||
|
||||
|
@ -46,3 +47,15 @@ if(GETTEXT_FOUND)
|
|||
endforeach()
|
||||
endforeach()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
include(GNUInstallDirs)
|
||||
find_package(PythonInterp 3.4.0 REQUIRED)
|
||||
|
||||
set(PYTHON_SITE_PACKAGES_DIR ${CMAKE_INSTALL_LIBDIR}/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages CACHE PATH "Install location of Python package")
|
||||
install(DIRECTORY resources DESTINATION ${CMAKE_INSTALL_DATADIR}/cura)
|
||||
file(GLOB cura_plugins_SRCS plugins/*)
|
||||
install(DIRECTORY ${cura_plugins_SRCS} DESTINATION ${CMAKE_INSTALL_LIBDIR}/cura)
|
||||
file(GLOB cura_SRCS src/*)
|
||||
install(FILES ${cura_SRCS} DESTINATION ${PYTHON_SITE_PACKAGES_DIR}/cura)
|
||||
install(FILES cura.py DESTINATION ${CMAKE_INSTALL_BINDIR})
|
Loading…
Add table
Add a link
Reference in a new issue