aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqso <qso@users.sf.net>2019-01-04 23:43:48 +0100
committerqso <qso@users.sf.net>2019-01-04 23:43:48 +0100
commiteb8a2396c4e0a5e4e38b743d14891a0d51a43e41 (patch)
tree8898f6bb0c405a4d120beee3b1afe122768f0492
parent241f7165816624da45fca58578885b17589ec1f7 (diff)
downloadlibquotient-eb8a2396c4e0a5e4e38b743d14891a0d51a43e41.tar.gz
libquotient-eb8a2396c4e0a5e4e38b743d14891a0d51a43e41.zip
added option for installation of qmc-example application
-rw-r--r--CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8a3193a4..2881fe7e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.1)
project(qmatrixclient CXX)
+option(QMATRIXCLIENT_INSTALL_EXAMPLE "install qmc-example application" ON)
+
include(CheckCXXCompilerFlag)
if (NOT WIN32)
include(GNUInstallDirs)
@@ -198,7 +200,9 @@ if (WIN32)
install(FILES mime/packages/freedesktop.org.xml DESTINATION mime/packages)
endif (WIN32)
-install(TARGETS qmc-example RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
+if (QMATRIXCLIENT_INSTALL_EXAMPLE)
+ install(TARGETS qmc-example RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
+endif (QMATRIXCLIENT_INSTALL_EXAMPLE)
if (UNIX AND NOT APPLE)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/QMatrixClient.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)