build: Install SourcetrailPythonIndexer only if Python language package is enabled (#800)

Regards https://github.com/CoatiSoftware/Sourcetrail/issues/758
This commit is contained in:
Michael Vetter
2019-12-16 15:53:59 +01:00
committed by Eberhard Graether
parent 23236541f8
commit 9918cfd99a
+6 -4
View File
@@ -55,10 +55,12 @@ function(AddSharedToComponent)
PATTERN "python/SourcetrailPythonIndexer" EXCLUDE
)
INSTALL(PROGRAMS
${CMAKE_SOURCE_DIR}/bin/app/data/python/SourcetrailPythonIndexer
DESTINATION Sourcetrail/data/python
)
if (BUILD_PYTHON_LANGUAGE_PACKAGE)
INSTALL(PROGRAMS
${CMAKE_SOURCE_DIR}/bin/app/data/python/SourcetrailPythonIndexer
DESTINATION Sourcetrail/data/python
)
endif()
InstallQt(5)