aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-10-15 00:51:05 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-11-19 03:31:47 +0100
commitb8dc6bb3cc2554f0fbadf37b0178f22e0766df2d (patch)
tree00a9f8a2b2dc2dbdbdc8b1f3fc06b94fb4599123 /CMakeLists.txt
parentb352a0fc8d49536322ffffa3b2d16d135d9a7996 (diff)
downloadtdv-b8dc6bb3cc2554f0fbadf37b0178f22e0766df2d.tar.gz
tdv-b8dc6bb3cc2554f0fbadf37b0178f22e0766df2d.tar.xz
tdv-b8dc6bb3cc2554f0fbadf37b0178f22e0766df2d.zip
Avoid flicker while resizing
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
1 files changed, 7 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9612bfe..813d86c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -20,10 +20,6 @@ set (project_VERSION "${project_VERSION_MAJOR}")
set (project_VERSION "${project_VERSION}.${project_VERSION_MINOR}")
set (project_VERSION "${project_VERSION}.${project_VERSION_PATCH}")
-# Configuration
-include (CheckFunctionExists)
-CHECK_FUNCTION_EXISTS ("wcwidth" HAVE_WCWIDTH)
-
# Dependencies
find_package (ZLIB REQUIRED)
find_package (PkgConfig REQUIRED)
@@ -46,6 +42,13 @@ endif (USE_SYSTEM_TERMO)
include_directories (${ZLIB_INCLUDE_DIRS}
${dependencies_INCLUDE_DIRS} ${Termo_INCLUDE_DIRS})
+# Configuration
+include (CheckFunctionExists)
+CHECK_FUNCTION_EXISTS ("wcwidth" HAVE_WCWIDTH)
+
+set (CMAKE_REQUIRED_LIBRARIES ${dependencies_LIBRARIES})
+CHECK_FUNCTION_EXISTS ("resize_term" HAVE_RESIZE_TERM)
+
# Localization
find_package (Gettext REQUIRED)
file (GLOB project_PO_FILES ${CMAKE_CURRENT_SOURCE_DIR}/po/*.po)