* Initial support of CMake
authorcarl <cecodere@yahoo.ca>
Mon, 18 Feb 2019 16:32:17 +0000 (00:32 +0800)
committercarl <cecodere@yahoo.ca>
Mon, 18 Feb 2019 16:54:23 +0000 (00:54 +0800)
modules/src/data/CMakeLists.txt [new file with mode: 0644]

diff --git a/modules/src/data/CMakeLists.txt b/modules/src/data/CMakeLists.txt
new file mode 100644 (file)
index 0000000..47b06a5
--- /dev/null
@@ -0,0 +1,39 @@
+cmake_minimum_required (VERSION 2.9)
+project (data)
+
+set(SRCS
+ array.c
+ array.h
+ astring.c
+ astring.h
+ diagnostics.c
+ diagnostics.h
+ imap.c
+ imap.h
+ pmap.c
+ pmap.h
+ smap.c
+ smap.h
+ stringlist.c
+ stringlist.h 
+)
+
+
+
+set(INCLUDE_DIRS
+ ${CMAKE_CURRENT_SOURCE_DIR}
+)
+
+
+
+add_library(${PROJECT_NAME} ${SRCS})
+target_include_directories(${PROJECT_NAME} PUBLIC ${INCLUDE_DIRS})
+
+set_target_properties(${PROJECT_NAME} PROPERTIES PUBLIC_HEADER "array.h;astring.h;diagnostics.h;imap.h;pmap.h;smap.h;stringlist.h")
+
+install(TARGETS ${PROJECT_NAME} 
+        RUNTIME DESTINATION bin
+        LIBRARY DESTINATION lib
+        ARCHIVE DESTINATION lib
+        PUBLIC_HEADER DESTINATION include
+)