summaryrefslogtreecommitdiff
path: root/libpiano/src
diff options
context:
space:
mode:
Diffstat (limited to 'libpiano/src')
-rw-r--r--libpiano/src/CMakeLists.txt9
-rw-r--r--libpiano/src/config.h.in1
2 files changed, 10 insertions, 0 deletions
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}"