mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 10:32:57 +01:00
Add more build files
This commit is contained in:
parent
72f041c21f
commit
2f4d4129ab
29
MongoDB/CMakeLists.txt
Normal file
29
MongoDB/CMakeLists.txt
Normal 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
2
MongoDB/dependencies
Normal file
@ -0,0 +1,2 @@
|
||||
Foundation
|
||||
Net
|
20
MongoDB/testsuite/CMakeLists.txt
Normal file
20
MongoDB/testsuite/CMakeLists.txt
Normal 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 )
|
||||
|
17
MongoDB/testsuite/Makefile
Normal file
17
MongoDB/testsuite/Makefile
Normal 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
|
Loading…
Reference in New Issue
Block a user