You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.2 KiB
40 lines
1.2 KiB
This file is part of MXE. See LICENSE.md for licensing information.
|
|
|
|
Contains ad hoc patches for cross building.
|
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Boris Pek <tehnick-8@yandex.ru>
|
|
Date: Fri, 28 Jun 2018 01:43:09 +0300
|
|
Subject: [PATCH 1/1] Make build of test application optional
|
|
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 1111111..2222222 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -18,9 +18,11 @@ include(ECMSetupVersion)
|
|
include(ECMGeneratePriFile)
|
|
|
|
option(BUILD_WITH_QT4 "Build qtkeychain with Qt4 no matter if Qt5 was found" OFF)
|
|
+option(BUILD_TEST_APPLICATION "Build test application" ON)
|
|
option(BUILD_TRANSLATIONS "Build translations" ON)
|
|
option(QTKEYCHAIN_STATIC "Build static library" OFF)
|
|
|
|
+
|
|
if(CMAKE_SYSTEM_NAME STREQUAL Android)
|
|
set(ANDROID 1)
|
|
endif()
|
|
@@ -224,8 +226,10 @@ install(TARGETS ${QTKEYCHAIN_TARGET_NAME}
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
)
|
|
|
|
-add_executable( testclient testclient.cpp )
|
|
-target_link_libraries( testclient ${QTKEYCHAIN_TARGET_NAME})
|
|
+if(BUILD_TEST_APPLICATION)
|
|
+ add_executable( testclient testclient.cpp )
|
|
+ target_link_libraries( testclient ${QTKEYCHAIN_TARGET_NAME})
|
|
+endif()
|
|
|
|
|
|
###
|