poco/MongoDB/CMakeLists.txt
Pascal Bach 47c70bb11e cmake: MongoDB cleanup
- explicitly list files

Reviewed-by: Roger Meier <r.meier@siemens.com>
2014-07-10 09:15:06 +02:00

54 lines
1.1 KiB
CMake

set(LIBNAME "PocoMongoDB")
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)
add_definitions(-DMongoDB_EXPORTS)
endif (NOT POCO_STATIC)
add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
set_target_properties( ${LIBNAME}
PROPERTIES
VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
target_link_libraries( ${LIBNAME} PocoNet PocoFoundation)
install(
DIRECTORY include/Poco
DESTINATION include
PATTERN ".svn" EXCLUDE
)
install(
TARGETS ${LIBNAME}
LIBRARY DESTINATION lib${LIB_SUFFIX}
ARCHIVE DESTINATION lib${LIB_SUFFIX}
RUNTIME DESTINATION bin
)
if (ENABLE_TESTS)
add_subdirectory(testsuite)
endif ()