aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAlexey Andreyev <aa13q@ya.ru>2019-06-26 16:36:45 +0300
committerAlexey Andreyev <aa13q@ya.ru>2019-07-04 15:26:34 +0300
commitb5f9e1bd20f985c18ec630fa496510018547b728 (patch)
treedba4e2813ddc5da9e2c2ebc111b18c52f9ab6fb4 /CMakeLists.txt
parente1bee9d71d88d6500d2c6124689a0e8685aeab90 (diff)
downloadlibquotient-b5f9e1bd20f985c18ec630fa496510018547b728.tar.gz
libquotient-b5f9e1bd20f985c18ec630fa496510018547b728.zip
Change libQtOlm location. Fix .travis.yml and .appveyor.yml
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt17
1 files changed, 6 insertions, 11 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d3906ffb..19fbdcbe 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -10,11 +10,6 @@ if (NOT WIN32)
include(GNUInstallDirs)
endif(NOT WIN32)
-set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
-
-# Find includes in corresponding build directories
-set(CMAKE_INCLUDE_CURRENT_DIR ON)
-
# Instruct CMake to run moc automatically when needed.
set(CMAKE_AUTOMOC ON)
@@ -54,9 +49,9 @@ find_package(Qt5 5.4.1 REQUIRED Network Gui Multimedia)
get_filename_component(Qt5_Prefix "${Qt5_DIR}/../../../.." ABSOLUTE)
if ((NOT DEFINED USE_INTREE_LIBQOLM OR USE_INTREE_LIBQOLM)
- AND EXISTS ${PROJECT_SOURCE_DIR}/lib/libQtOlm/lib/utils.h)
- add_subdirectory(lib/libQtOlm EXCLUDE_FROM_ALL)
- include_directories(lib/libQtOlm)
+ AND EXISTS ${PROJECT_SOURCE_DIR}/3rdparty/libQtOlm/lib/utils.h)
+ add_subdirectory(3rdparty/libQtOlm EXCLUDE_FROM_ALL)
+ include_directories(3rdparty/libQtOlm)
if (NOT DEFINED USE_INTREE_LIBQOLM)
set (USE_INTREE_LIBQOLM 1)
endif ()
@@ -100,10 +95,10 @@ if (USE_INTREE_LIBQOLM)
if (GIT_FOUND)
execute_process(COMMAND
"${GIT_EXECUTABLE}" rev-parse -q HEAD
- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/lib/libQtOlm/lib
- OUTPUT_VARIABLE LIB_GIT_SHA1
+ WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/3rdparty/libQtOlm
+ OUTPUT_VARIABLE QTOLM_GIT_SHA1
OUTPUT_STRIP_TRAILING_WHITESPACE)
- message( STATUS " Library git SHA1: ${LIB_GIT_SHA1}")
+ message( STATUS " Library git SHA1: ${QTOLM_GIT_SHA1}")
endif (GIT_FOUND)
else ()
message( STATUS "Using libQtOlm ${QtOlm_VERSION} at ${QtOlm_DIR}")