diff options
| author | Charles E. Rolke <chug@apache.org> | 2011-12-02 23:11:32 +0000 |
|---|---|---|
| committer | Charles E. Rolke <chug@apache.org> | 2011-12-02 23:11:32 +0000 |
| commit | 5166b43ae82b89aa58ebb42d0d8ede81b202c52c (patch) | |
| tree | 4e60d00170032a6cf4594e3157cadfcc1c3afbcd /qpid/cpp/examples | |
| parent | 300c81906776ed563e6ddabfc82e7cc9d4769f47 (diff) | |
| download | qpid-python-5166b43ae82b89aa58ebb42d0d8ede81b202c52c.tar.gz | |
QPID-2643 Visual Studio 2010
In the SDK build script remove VS2008 projects and replace them
with a CMakeLists.txt that can generate example projects and solutions
on demand for any version of Visual Studio.
Tidy up the actual CMake script.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1209774 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/examples')
| -rw-r--r-- | qpid/cpp/examples/winsdk-cmake/CMakeLists.txt | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/qpid/cpp/examples/winsdk-cmake/CMakeLists.txt b/qpid/cpp/examples/winsdk-cmake/CMakeLists.txt index dd0d64f897..dc6a7c8343 100644 --- a/qpid/cpp/examples/winsdk-cmake/CMakeLists.txt +++ b/qpid/cpp/examples/winsdk-cmake/CMakeLists.txt @@ -17,31 +17,31 @@ # under the License.
#
+#
# Description
# For WinSDK:
# Top-level CMake source to build version-independent C++
# example solution and project files for Visual Studio.
#
# Usage:
-# mkdir msvc9-win32
-# cd msvc9-win32
-# cmake -G "Visual Studio 9 2008" ..\winsdk-cmake
-# cd ..
+# Target: Visual Studio 2008, 32-bit
+# cd <WinSDK>\examples\examples-cmake
+# cmake -G "Visual Studio 9 2008" .
+#
+# Target: Visual Studio 2008, 64-bit
+# cd <WinSDK>\examples\examples-cmake
+# cmake -G "Visual Studio 9 2008 Win64" .
#
-# mkdir msvc9-x64
-# cd msvc9-x64
-# cmake -G "Visual Studio 9 2008 Win64" ..\winsdk-cmake
-# cd ..
+# Target: Visual Studio 2010, 32-bit
+# cd <WinSDK>\examples\examples-cmake
+# cmake -G "Visual Studio 10" .
#
-# mkdir msvc10-win32
-# cd msvc10-win32
-# cmake -G "Visual Studio 10" ..\winsdk-cmake
-# cd ..
+# Target: Visual Studio 2010, 64-bit
+# cd <WinSDK>\examples\examples-cmake
+# cmake -G "Visual Studio 10 Win64" .
#
-# mkdir msvc10-x64
-# cd msvc10-x64
-# cmake -G "Visual Studio 10 Win64" ..\winsdk-cmake
-# cd ..
+# Then execute the examples.sln created by cmake to build
+# the examples in Debug or Release configurations.
#
project(examples)
@@ -68,9 +68,9 @@ macro(add_example_properties example) set_target_properties(${example} PROPERTIES OUTPUT_NAME "${example}" )
set_target_properties(${example} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../../bin/${CMAKE_BUILD_TYPE})
- target_link_libraries(${example} qpidmessaging)
- target_link_libraries(${example} qpidcommon )
- target_link_libraries(${example} qpidtypes )
+ target_link_libraries(${example} optimized qpidmessaging debug qpidmessagingd)
+ target_link_libraries(${example} optimized qpidcommon debug qpidcommond )
+ target_link_libraries(${example} optimized qpidtypes debug qpidtypesd )
endmacro(add_example_properties)
macro(add_example srcdirectory example)
|
