mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-21 02:00:33 +01:00
cmake: MongoDB cleanup
- explicitly list files Reviewed-by: Roger Meier <r.meier@siemens.com>
This commit is contained in:
parent
16e8ed8ab5
commit
47c70bb11e
@ -1,13 +1,35 @@
|
|||||||
set(LIBNAME "PocoMongoDB")
|
set(LIBNAME "PocoMongoDB")
|
||||||
|
|
||||||
aux_source_directory(src SRCS)
|
set(SRCS
|
||||||
|
src/Array.cpp
|
||||||
|
src/Binary.cpp
|
||||||
|
src/Connection.cpp
|
||||||
|
src/Cursor.cpp
|
||||||
|
src/Database.cpp
|
||||||
|
src/DeleteRequest.cpp
|
||||||
|
src/Document.cpp
|
||||||
|
src/Element.cpp
|
||||||
|
src/GetMoreRequest.cpp
|
||||||
|
src/InsertRequest.cpp
|
||||||
|
src/JavaScriptCode.cpp
|
||||||
|
src/KillCursorsRequest.cpp
|
||||||
|
src/Message.cpp
|
||||||
|
src/MessageHeader.cpp
|
||||||
|
src/ObjectId.cpp
|
||||||
|
src/QueryRequest.cpp
|
||||||
|
src/RegularExpression.cpp
|
||||||
|
src/ReplicaSet.cpp
|
||||||
|
src/RequestMessage.cpp
|
||||||
|
src/ResponseMessage.cpp
|
||||||
|
src/UpdateRequest.cpp
|
||||||
|
)
|
||||||
|
|
||||||
if (NOT POCO_STATIC)
|
if (NOT POCO_STATIC)
|
||||||
add_definitions(-DMongoDB_EXPORTS)
|
add_definitions(-DMongoDB_EXPORTS)
|
||||||
endif (NOT POCO_STATIC)
|
endif (NOT POCO_STATIC)
|
||||||
|
|
||||||
add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
|
add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
|
||||||
set_target_properties( ${LIBNAME}
|
set_target_properties( ${LIBNAME}
|
||||||
PROPERTIES
|
PROPERTIES
|
||||||
VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||||
target_link_libraries( ${LIBNAME} PocoNet PocoFoundation)
|
target_link_libraries( ${LIBNAME} PocoNet PocoFoundation)
|
||||||
@ -17,7 +39,7 @@ install(
|
|||||||
DESTINATION include
|
DESTINATION include
|
||||||
PATTERN ".svn" EXCLUDE
|
PATTERN ".svn" EXCLUDE
|
||||||
)
|
)
|
||||||
|
|
||||||
install(
|
install(
|
||||||
TARGETS ${LIBNAME}
|
TARGETS ${LIBNAME}
|
||||||
LIBRARY DESTINATION lib${LIB_SUFFIX}
|
LIBRARY DESTINATION lib${LIB_SUFFIX}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user