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 +)