CMakeLists.txt
author Myhailo Danylenko <isbear@ukrpost.net>
Mon, 09 Feb 2009 13:39:36 +0200
changeset 3 4fd19a188509
parent 2 34b6fedde9eb
child 5 e617c9cf6dd3
permissions -rw-r--r--
Separation of glib


cmake_minimum_required(VERSION 2.6)

# Define targets
add_library(loudmouth MODULE util.c lm_types.c lm_proxy.c lm_ssl.c lm_connection.c lm_message.c lm_message_node.c lm_message_handler.c lm.c)

# Check for dependencies
find_package(Lua51 REQUIRED)

find_package(PkgConfig REQUIRED)
pkg_check_modules(LM REQUIRED loudmouth-1.0)
pkg_check_modules(GLIB REQUIRED glib-2.0)

# Set building options
include_directories(SYSTEM ${LUA_INCLUDE_DIR} ${GLIB_INCLUDE_DIRS} ${LM_INCLUDE_DIRS})
target_link_libraries(loudmouth ${LUA_LIBRARIES} ${GLIB_LIBRARIES} ${LM_LIBRARIES})
set_target_properties(loudmouth PROPERTIES PREFIX "")