From 90d4797ff7574496193a1d53e08ecf1d98cb8d73 Mon Sep 17 00:00:00 2001 From: carl Date: Tue, 19 Feb 2019 00:32:17 +0800 Subject: [PATCH] * Initial support of CMake --- modules/src/data/CMakeLists.txt | 39 +++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 modules/src/data/CMakeLists.txt diff --git a/modules/src/data/CMakeLists.txt b/modules/src/data/CMakeLists.txt new file mode 100644 index 000000000..47b06a5aa --- /dev/null +++ b/modules/src/data/CMakeLists.txt @@ -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 +)