Add more build files

This commit is contained in:
fbraem 2013-02-16 20:51:58 +01:00
parent 72f041c21f
commit 2f4d4129ab
4 changed files with 68 additions and 0 deletions

29
MongoDB/CMakeLists.txt Normal file
View File

@ -0,0 +1,29 @@
set(LIBNAME "PocoMongoDB")
aux_source_directory(src SRCS)
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} PocoFoundation)
install(
DIRECTORY include/Poco
DESTINATION include
PATTERN ".svn" EXCLUDE
)
install(
TARGETS ${LIBNAME}
DESTINATION lib
)
if (ENABLE_TESTS)
add_subdirectory(testsuite)
endif ()

2
MongoDB/dependencies Normal file
View File

@ -0,0 +1,2 @@
Foundation
Net

View File

@ -0,0 +1,20 @@
set( TEST_SRCS
src/Driver.cpp
src/MongoDBTest.cpp
src/MongoDBTest.h
src/MongoDBTestSuite.cpp
src/MongoDBTestSuite.h
)
#include_directories()
set( WIN_TEST_SRCS
src/WinDriver.cpp
)
set(TESTUNIT "${LIBNAME}-testrunner")
add_executable( ${TESTUNIT} ${TEST_SRCS} )
#set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
target_link_libraries( ${TESTUNIT} PocoMongoDB PocoFoundation CppUnit )

View File

@ -0,0 +1,17 @@
#
# Makefile
#
# $Id$
#
# Makefile for Poco MongoDB testsuite
#
include $(POCO_BASE)/build/rules/global
objects = Driver MongoDBTest MongoDBTestSuite
target = testrunner
target_version = 1
target_libs = PocoMongoDB PocoFoundation PocoNet CppUnit
include $(POCO_BASE)/build/rules/exec