* Initial support of CMake
This commit is contained in:
parent
0f75cc09ad
commit
90d4797ff7
39
modules/src/data/CMakeLists.txt
Normal file
39
modules/src/data/CMakeLists.txt
Normal file
|
@ -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
|
||||
)
|
Loading…
Reference in a new issue