From 516bc854369243b2f1ba4f1c019aca06cbbd736e Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sat, 31 Jan 2009 19:39:48 +0100 Subject: Whoops, forgot to add new files to last commit... --- libpiano/CMakeLists.txt | 6 ++++++ libpiano/src/CMakeLists.txt | 9 +++++++++ libpiano/src/config.h.in | 1 + 3 files changed, 16 insertions(+) create mode 100644 libpiano/CMakeLists.txt create mode 100644 libpiano/src/CMakeLists.txt create mode 100644 libpiano/src/config.h.in (limited to 'libpiano') diff --git a/libpiano/CMakeLists.txt b/libpiano/CMakeLists.txt new file mode 100644 index 0000000..d3ab672 --- /dev/null +++ b/libpiano/CMakeLists.txt @@ -0,0 +1,6 @@ +cmake_minimum_required (VERSION 2.4) + +set (PACKAGE "libpiano") +project (${PACKAGE}) + +add_subdirectory (src) diff --git a/libpiano/src/CMakeLists.txt b/libpiano/src/CMakeLists.txt new file mode 100644 index 0000000..b3d49a2 --- /dev/null +++ b/libpiano/src/CMakeLists.txt @@ -0,0 +1,9 @@ +find_package (LibXml2 REQUIRED) +find_package (CURL REQUIRED) + +configure_file (${CMAKE_CURRENT_SOURCE_DIR}/config.h.in + ${CMAKE_CURRENT_BINARY_DIR}/config.h) + +include_directories (${LIBXML2_INCLUDE_DIR} ${CURL_INCLUDE_DIRS}) +add_library (piano STATIC crypt.c http.c main.c xml.c) +target_link_libraries (${CURL_LIBRARIES} ${LIBXML_LIBRARIES}) diff --git a/libpiano/src/config.h.in b/libpiano/src/config.h.in new file mode 100644 index 0000000..60600a7 --- /dev/null +++ b/libpiano/src/config.h.in @@ -0,0 +1 @@ +#define PACKAGE "${PACKAGE}" -- cgit v1.2.3