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-11-26 17:03:32 +01:00
committed by Eberhard Gräther
parent 0070431265
commit 1162a52c1d
+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)