Require Lua 5.1 and GTK+ 2.12.
This commit is contained in:
parent
efc3ad6f5c
commit
f675a7c07c
|
@ -27,7 +27,7 @@ set (project_VERSION "${project_VERSION}.${project_VERSION_PATCH}")
|
||||||
set (CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
|
set (CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
|
||||||
|
|
||||||
# Gather package information
|
# Gather package information
|
||||||
find_package (GTK2 2.8 REQUIRED gtk)
|
find_package (GTK2 2.12 REQUIRED gtk)
|
||||||
|
|
||||||
# Test this machine
|
# Test this machine
|
||||||
include (CheckCSourceCompiles)
|
include (CheckCSourceCompiles)
|
||||||
|
@ -52,6 +52,10 @@ if (WIN32)
|
||||||
set (HAVE_THREADSAFE_STRTOK true)
|
set (HAVE_THREADSAFE_STRTOK true)
|
||||||
endif (WIN32)
|
endif (WIN32)
|
||||||
|
|
||||||
|
# Lua
|
||||||
|
find_package (Lua51 REQUIRED)
|
||||||
|
|
||||||
|
|
||||||
# Localization
|
# Localization
|
||||||
find_package (Gettext)
|
find_package (Gettext)
|
||||||
if (GETTEXT_FOUND)
|
if (GETTEXT_FOUND)
|
||||||
|
@ -130,9 +134,9 @@ glib_genmarshal (${CMAKE_CURRENT_SOURCE_DIR}/src/ld-marshal
|
||||||
g_cclosure_user_marshal)
|
g_cclosure_user_marshal)
|
||||||
|
|
||||||
# Build the executable
|
# Build the executable
|
||||||
include_directories (${GTK2_INCLUDE_DIRS})
|
include_directories (${GTK2_INCLUDE_DIRS} ${LUA_INCLUDE_DIR})
|
||||||
add_executable (logdiag ${logdiag_SOURCES} ${logdiag_HEADERS})
|
add_executable (logdiag ${logdiag_SOURCES} ${logdiag_HEADERS})
|
||||||
target_link_libraries (logdiag ${GTK2_LIBRARIES})
|
target_link_libraries (logdiag ${GTK2_LIBRARIES} ${LUA_LIBRARIES})
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
install (TARGETS logdiag DESTINATION bin)
|
install (TARGETS logdiag DESTINATION bin)
|
||||||
|
|
Loading…
Reference in New Issue