From f675a7c07c84d71e3cee1d61bf0e0a1b800e7d0a Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Mon, 20 Sep 2010 17:28:23 +0200
Subject: Require Lua 5.1 and GTK+ 2.12.
---
CMakeLists.txt | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b7b1828..18cd642 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -27,7 +27,7 @@ set (project_VERSION "${project_VERSION}.${project_VERSION_PATCH}")
set (CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
# Gather package information
-find_package (GTK2 2.8 REQUIRED gtk)
+find_package (GTK2 2.12 REQUIRED gtk)
# Test this machine
include (CheckCSourceCompiles)
@@ -52,6 +52,10 @@ if (WIN32)
set (HAVE_THREADSAFE_STRTOK true)
endif (WIN32)
+# Lua
+find_package (Lua51 REQUIRED)
+
+
# Localization
find_package (Gettext)
if (GETTEXT_FOUND)
@@ -130,9 +134,9 @@ glib_genmarshal (${CMAKE_CURRENT_SOURCE_DIR}/src/ld-marshal
g_cclosure_user_marshal)
# Build the executable
-include_directories (${GTK2_INCLUDE_DIRS})
+include_directories (${GTK2_INCLUDE_DIRS} ${LUA_INCLUDE_DIR})
add_executable (logdiag ${logdiag_SOURCES} ${logdiag_HEADERS})
-target_link_libraries (logdiag ${GTK2_LIBRARIES})
+target_link_libraries (logdiag ${GTK2_LIBRARIES} ${LUA_LIBRARIES})
# Installation
install (TARGETS logdiag DESTINATION bin)
--
cgit v1.2.3-70-g09d2