summaryrefslogtreecommitdiff
path: root/libwardrobe
diff options
context:
space:
mode:
Diffstat (limited to 'libwardrobe')
-rw-r--r--libwardrobe/CMakeLists.txt6
-rw-r--r--libwardrobe/src/CMakeLists.txt8
-rw-r--r--libwardrobe/src/config.h.in1
3 files changed, 15 insertions, 0 deletions
diff --git a/libwardrobe/CMakeLists.txt b/libwardrobe/CMakeLists.txt
new file mode 100644
index 0000000..18217bb
--- /dev/null
+++ b/libwardrobe/CMakeLists.txt
@@ -0,0 +1,6 @@
+cmake_minimum_required (VERSION 2.4)
+
+set (PACKAGE "libwardrobe")
+project (${PACKAGE})
+
+add_subdirectory (src)
diff --git a/libwardrobe/src/CMakeLists.txt b/libwardrobe/src/CMakeLists.txt
new file mode 100644
index 0000000..960f4ca
--- /dev/null
+++ b/libwardrobe/src/CMakeLists.txt
@@ -0,0 +1,8 @@
+find_package (CURL REQUIRED)
+
+configure_file (${CMAKE_CURRENT_SOURCE_DIR}/config.h.in
+ ${CMAKE_CURRENT_BINARY_DIR}/config.h)
+
+include_directories (${CURL_INCLUDE_DIR})
+
+add_library (wardrobe STATIC main.c md5.c)
diff --git a/libwardrobe/src/config.h.in b/libwardrobe/src/config.h.in
new file mode 100644
index 0000000..60600a7
--- /dev/null
+++ b/libwardrobe/src/config.h.in
@@ -0,0 +1 @@
+#define PACKAGE "${PACKAGE}"