From f1138fa6849bcde8570cd4580ad2eefde34908e7 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 15 Jul 2008 18:53:16 +0000 Subject: [PATCH] From Jean-Sebastian Guay, "Here are the CMakeLists.txt files for the osgWidget examples, changed to use SETUP_EXAMPLE like the other examples." --- examples/osgwidgetaddremove/CMakeLists.txt | 12 +++++------- examples/osgwidgetbox/CMakeLists.txt | 12 +++++------- examples/osgwidgetcanvas/CMakeLists.txt | 12 +++++------- examples/osgwidgetframe/CMakeLists.txt | 12 +++++------- examples/osgwidgetinput/CMakeLists.txt | 12 +++++------- examples/osgwidgetlabel/CMakeLists.txt | 12 +++++------- examples/osgwidgetmenu/CMakeLists.txt | 12 +++++------- examples/osgwidgetnotebook/CMakeLists.txt | 12 +++++------- examples/osgwidgetscrolled/CMakeLists.txt | 12 +++++------- examples/osgwidgetshader/CMakeLists.txt | 12 +++++------- examples/osgwidgetstyled/CMakeLists.txt | 12 +++++------- examples/osgwidgettable/CMakeLists.txt | 12 +++++------- examples/osgwidgetversion/CMakeLists.txt | 12 +++++------- examples/osgwidgetwindow/CMakeLists.txt | 12 +++++------- 14 files changed, 70 insertions(+), 98 deletions(-) diff --git a/examples/osgwidgetaddremove/CMakeLists.txt b/examples/osgwidgetaddremove/CMakeLists.txt index ee761196a..aa67dad3e 100644 --- a/examples/osgwidgetaddremove/CMakeLists.txt +++ b/examples/osgwidgetaddremove/CMakeLists.txt @@ -1,9 +1,7 @@ -PROJECT(osgwidgetaddremove) +#this file is automatically generated -LINK_LIBRARIES(debug osgWidgetd optimized osgWidget) -ADD_EXECUTABLE(osgwidgetaddremove osgwidgetaddremove.cpp) - -SET_TARGET_PROPERTIES(osgwidgetaddremove PROPERTIES DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX}) - -INSTALL(TARGETS osgwidgetaddremove DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) +SET(TARGET_SRC osgwidgetaddremove.cpp ) +SET(TARGET_ADDED_LIBRARIES osgWidget ) +#### end var setup ### +SETUP_EXAMPLE(osgwidgetaddremove) diff --git a/examples/osgwidgetbox/CMakeLists.txt b/examples/osgwidgetbox/CMakeLists.txt index b233181f3..a4c816128 100644 --- a/examples/osgwidgetbox/CMakeLists.txt +++ b/examples/osgwidgetbox/CMakeLists.txt @@ -1,9 +1,7 @@ -PROJECT(osgwidgetbox) +#this file is automatically generated -LINK_LIBRARIES(debug osgWidgetd optimized osgWidget) -ADD_EXECUTABLE(osgwidgetbox osgwidgetbox.cpp) - -SET_TARGET_PROPERTIES(osgwidgetbox PROPERTIES DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX}) - -INSTALL(TARGETS osgwidgetbox DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) +SET(TARGET_SRC osgwidgetbox.cpp ) +SET(TARGET_ADDED_LIBRARIES osgWidget ) +#### end var setup ### +SETUP_EXAMPLE(osgwidgetbox) diff --git a/examples/osgwidgetcanvas/CMakeLists.txt b/examples/osgwidgetcanvas/CMakeLists.txt index f6b4424d2..df7b3b0bc 100644 --- a/examples/osgwidgetcanvas/CMakeLists.txt +++ b/examples/osgwidgetcanvas/CMakeLists.txt @@ -1,9 +1,7 @@ -PROJECT(osgwidgetcanvas) +#this file is automatically generated -LINK_LIBRARIES(debug osgWidgetd optimized osgWidget) -ADD_EXECUTABLE(osgwidgetcanvas osgwidgetcanvas.cpp) - -SET_TARGET_PROPERTIES(osgwidgetcanvas PROPERTIES DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX}) - -INSTALL(TARGETS osgwidgetcanvas DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) +SET(TARGET_SRC osgwidgetcanvas.cpp ) +SET(TARGET_ADDED_LIBRARIES osgWidget ) +#### end var setup ### +SETUP_EXAMPLE(osgwidgetcanvas) diff --git a/examples/osgwidgetframe/CMakeLists.txt b/examples/osgwidgetframe/CMakeLists.txt index 2f31b0d72..f2922c5a2 100644 --- a/examples/osgwidgetframe/CMakeLists.txt +++ b/examples/osgwidgetframe/CMakeLists.txt @@ -1,9 +1,7 @@ -PROJECT(osgwidgetframe) +#this file is automatically generated -LINK_LIBRARIES(debug osgWidgetd optimized osgWidget) -ADD_EXECUTABLE(osgwidgetframe osgwidgetframe.cpp) - -SET_TARGET_PROPERTIES(osgwidgetframe PROPERTIES DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX}) - -INSTALL(TARGETS osgwidgetframe DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) +SET(TARGET_SRC osgwidgetframe.cpp ) +SET(TARGET_ADDED_LIBRARIES osgWidget ) +#### end var setup ### +SETUP_EXAMPLE(osgwidgetframe) diff --git a/examples/osgwidgetinput/CMakeLists.txt b/examples/osgwidgetinput/CMakeLists.txt index f5f1f4ce9..240e2c4a1 100644 --- a/examples/osgwidgetinput/CMakeLists.txt +++ b/examples/osgwidgetinput/CMakeLists.txt @@ -1,9 +1,7 @@ -PROJECT(osgwidgetinput) +#this file is automatically generated -LINK_LIBRARIES(debug osgWidgetd optimized osgWidget) -ADD_EXECUTABLE(osgwidgetinput osgwidgetinput.cpp) - -SET_TARGET_PROPERTIES(osgwidgetinput PROPERTIES DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX}) - -INSTALL(TARGETS osgwidgetinput DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) +SET(TARGET_SRC osgwidgetinput.cpp ) +SET(TARGET_ADDED_LIBRARIES osgWidget ) +#### end var setup ### +SETUP_EXAMPLE(osgwidgetinput) diff --git a/examples/osgwidgetlabel/CMakeLists.txt b/examples/osgwidgetlabel/CMakeLists.txt index 4760a4264..f01e1c6d5 100644 --- a/examples/osgwidgetlabel/CMakeLists.txt +++ b/examples/osgwidgetlabel/CMakeLists.txt @@ -1,9 +1,7 @@ -PROJECT(osgwidgetlabel) +#this file is automatically generated -LINK_LIBRARIES(debug osgWidgetd optimized osgWidget) -ADD_EXECUTABLE(osgwidgetlabel osgwidgetlabel.cpp) - -SET_TARGET_PROPERTIES(osgwidgetlabel PROPERTIES DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX}) - -INSTALL(TARGETS osgwidgetlabel DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) +SET(TARGET_SRC osgwidgetlabel.cpp ) +SET(TARGET_ADDED_LIBRARIES osgWidget ) +#### end var setup ### +SETUP_EXAMPLE(osgwidgetlabel) diff --git a/examples/osgwidgetmenu/CMakeLists.txt b/examples/osgwidgetmenu/CMakeLists.txt index 87c64d52a..dc75087ec 100644 --- a/examples/osgwidgetmenu/CMakeLists.txt +++ b/examples/osgwidgetmenu/CMakeLists.txt @@ -1,9 +1,7 @@ -PROJECT(osgwidgetmenu) +#this file is automatically generated -LINK_LIBRARIES(debug osgWidgetd optimized osgWidget) -ADD_EXECUTABLE(osgwidgetmenu osgwidgetmenu.cpp) - -SET_TARGET_PROPERTIES(osgwidgetmenu PROPERTIES DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX}) - -INSTALL(TARGETS osgwidgetmenu DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) +SET(TARGET_SRC osgwidgetmenu.cpp ) +SET(TARGET_ADDED_LIBRARIES osgWidget ) +#### end var setup ### +SETUP_EXAMPLE(osgwidgetmenu) diff --git a/examples/osgwidgetnotebook/CMakeLists.txt b/examples/osgwidgetnotebook/CMakeLists.txt index 0ecff512e..9e7fb0814 100644 --- a/examples/osgwidgetnotebook/CMakeLists.txt +++ b/examples/osgwidgetnotebook/CMakeLists.txt @@ -1,9 +1,7 @@ -PROJECT(osgwidgetnotebook) +#this file is automatically generated -LINK_LIBRARIES(debug osgWidgetd optimized osgWidget) -ADD_EXECUTABLE(osgwidgetnotebook osgwidgetnotebook.cpp) - -SET_TARGET_PROPERTIES(osgwidgetnotebook PROPERTIES DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX}) - -INSTALL(TARGETS osgwidgetnotebook DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) +SET(TARGET_SRC osgwidgetnotebook.cpp ) +SET(TARGET_ADDED_LIBRARIES osgWidget ) +#### end var setup ### +SETUP_EXAMPLE(osgwidgetnotebook) diff --git a/examples/osgwidgetscrolled/CMakeLists.txt b/examples/osgwidgetscrolled/CMakeLists.txt index 939bc0835..bbafc94e1 100644 --- a/examples/osgwidgetscrolled/CMakeLists.txt +++ b/examples/osgwidgetscrolled/CMakeLists.txt @@ -1,9 +1,7 @@ -PROJECT(osgwidgetscrolled) +#this file is automatically generated -LINK_LIBRARIES(debug osgWidgetd optimized osgWidget) -ADD_EXECUTABLE(osgwidgetscrolled osgwidgetscrolled.cpp) - -SET_TARGET_PROPERTIES(osgwidgetscrolled PROPERTIES DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX}) - -INSTALL(TARGETS osgwidgetscrolled DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) +SET(TARGET_SRC osgwidgetscrolled.cpp ) +SET(TARGET_ADDED_LIBRARIES osgWidget ) +#### end var setup ### +SETUP_EXAMPLE(osgwidgetscrolled) diff --git a/examples/osgwidgetshader/CMakeLists.txt b/examples/osgwidgetshader/CMakeLists.txt index 8a53ba2d7..d3b023d91 100644 --- a/examples/osgwidgetshader/CMakeLists.txt +++ b/examples/osgwidgetshader/CMakeLists.txt @@ -1,9 +1,7 @@ -PROJECT(osgwidgetshader) +#this file is automatically generated -LINK_LIBRARIES(debug osgWidgetd optimized osgWidget) -ADD_EXECUTABLE(osgwidgetshader osgwidgetshader.cpp) - -SET_TARGET_PROPERTIES(osgwidgetshader PROPERTIES DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX}) - -INSTALL(TARGETS osgwidgetshader DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) +SET(TARGET_SRC osgwidgetshader.cpp ) +SET(TARGET_ADDED_LIBRARIES osgWidget ) +#### end var setup ### +SETUP_EXAMPLE(osgwidgetshader) diff --git a/examples/osgwidgetstyled/CMakeLists.txt b/examples/osgwidgetstyled/CMakeLists.txt index c871cf7df..10c421a69 100644 --- a/examples/osgwidgetstyled/CMakeLists.txt +++ b/examples/osgwidgetstyled/CMakeLists.txt @@ -1,9 +1,7 @@ -PROJECT(osgwidgetstyled) +#this file is automatically generated -LINK_LIBRARIES(debug osgWidgetd optimized osgWidget) -ADD_EXECUTABLE(osgwidgetstyled osgwidgetstyled.cpp) - -SET_TARGET_PROPERTIES(osgwidgetstyled PROPERTIES DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX}) - -INSTALL(TARGETS osgwidgetstyled DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) +SET(TARGET_SRC osgwidgetstyled.cpp ) +SET(TARGET_ADDED_LIBRARIES osgWidget ) +#### end var setup ### +SETUP_EXAMPLE(osgwidgetstyled) diff --git a/examples/osgwidgettable/CMakeLists.txt b/examples/osgwidgettable/CMakeLists.txt index 635dad065..ccc97666a 100644 --- a/examples/osgwidgettable/CMakeLists.txt +++ b/examples/osgwidgettable/CMakeLists.txt @@ -1,9 +1,7 @@ -PROJECT(osgwidgettable) +#this file is automatically generated -LINK_LIBRARIES(debug osgWidgetd optimized osgWidget) -ADD_EXECUTABLE(osgwidgettable osgwidgettable.cpp) - -SET_TARGET_PROPERTIES(osgwidgettable PROPERTIES DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX}) - -INSTALL(TARGETS osgwidgettable DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) +SET(TARGET_SRC osgwidgettable.cpp ) +SET(TARGET_ADDED_LIBRARIES osgWidget ) +#### end var setup ### +SETUP_EXAMPLE(osgwidgettable) diff --git a/examples/osgwidgetversion/CMakeLists.txt b/examples/osgwidgetversion/CMakeLists.txt index fe42593c0..dcf5f9337 100644 --- a/examples/osgwidgetversion/CMakeLists.txt +++ b/examples/osgwidgetversion/CMakeLists.txt @@ -1,9 +1,7 @@ -PROJECT(osgwidgetversion) +#this file is automatically generated -LINK_LIBRARIES(debug osgWidgetd optimized osgWidget) -ADD_EXECUTABLE(osgwidgetversion osgwidgetversion.cpp) - -SET_TARGET_PROPERTIES(osgwidgetversion PROPERTIES DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX}) - -INSTALL(TARGETS osgwidgetversion DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) +SET(TARGET_SRC osgwidgetversion.cpp ) +SET(TARGET_ADDED_LIBRARIES osgWidget ) +#### end var setup ### +SETUP_EXAMPLE(osgwidgetversion) diff --git a/examples/osgwidgetwindow/CMakeLists.txt b/examples/osgwidgetwindow/CMakeLists.txt index 961d468a3..9ff5cc15d 100644 --- a/examples/osgwidgetwindow/CMakeLists.txt +++ b/examples/osgwidgetwindow/CMakeLists.txt @@ -1,9 +1,7 @@ -PROJECT(osgwidgetwindow) +#this file is automatically generated -LINK_LIBRARIES(debug osgWidgetd optimized osgWidget) -ADD_EXECUTABLE(osgwidgetwindow osgwidgetwindow.cpp) - -SET_TARGET_PROPERTIES(osgwidgetwindow PROPERTIES DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX}) - -INSTALL(TARGETS osgwidgetwindow DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) +SET(TARGET_SRC osgwidgetwindow.cpp ) +SET(TARGET_ADDED_LIBRARIES osgWidget ) +#### end var setup ### +SETUP_EXAMPLE(osgwidgetwindow)