diff --git a/CMakeLists.txt b/CMakeLists.txt index 7eecfee01..5c97f3958 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -181,6 +181,7 @@ ELSE (DYNAMIC_OPENSCENEGRAPH) SET(OPENSCENEGRAPH_USER_DEFINED_DYNAMIC_OR_STATIC "STATIC") ENDIF(DYNAMIC_OPENSCENEGRAPH) +INCLUDE(OsgMacroUtils) # OSG Core ADD_SUBDIRECTORY(src) diff --git a/CMakeModules/OsgMacroUtils.cmake b/CMakeModules/OsgMacroUtils.cmake index bc4686a15..d48ea9b9c 100644 --- a/CMakeModules/OsgMacroUtils.cmake +++ b/CMakeModules/OsgMacroUtils.cmake @@ -1,283 +1,119 @@ -INCLUDE(UtilityMacros) -#--------------------------------------------------- -# ADD_OSG_LIB ( SUBDIR ) -# collects source files from given subdir and generates a shared library from them -# additional parameters specify symbols, link libraries and omited files -# begin these with keyword DEFINE LINK or EXCLUDE -# e.g. ADD_OSG_LIB( osgDB DEFINE OSGDB_EXPORT LINK osg EXCLUDE osg_mac.cxx ) -# if OSG_PROJECT_LABEL_PREFIX is defined the project label is augmented with prefix -#--------------------------------------------------- +####################################################################################################### +# macro for common setup of plugins, examples and applications it expect some variables to be set: +# either within the local CMakeLists or higher in hierarchy +# TARGET_NAME is the name of the folder and of the actually .exe or .so or .dll +# TARGET_TARGETNAME is the name of the target , this get buit out of a prefix, if present and TARGET_TARGETNAME +# TARGET_SRC are the sources of the target +# TARGET_H are the eventual headers of the target +# TARGET_LIBRARIES are the libraries to link to that are internal to the project and have d suffix for debug +# TARGET_EXTERNAL_LIBRARIES are external libraries and are not differentiated with d suffix +# TARGET_LABEL is the label IDE should show up for targets +########################################################################################################## -MACRO(ADD_OSG_LIB SUBDIR EXPORTDEF) - #MESSAGE(STATUS "=== ADD_OSG_LIB ${SUBDIR}") - MACRO_MESSAGE("---source dir -->${OPENSCENEGRAPH_DIR}/src/${SUBDIR}<---") +MACRO(SETUP_LINK_LIBRARIES) +###################################################################### +# +# This set up the libraries to link to, it assumes there are two variable: one common for a group of examples or plagins +# kept in the variable TARGET_COMMON_LIBRARIES and an example or plugin specific kept in TARGET_ADDED_LIBRARIES +# they are combined in a single list checked for unicity +# the suffix ${CMAKE_DEBUG_POSTFIX} is used for differentiating optimized and debug +# +# a second variable TARGET_EXTERNAL_LIBRARIES hold the list of libraries not differentiated between debug and optimized +################################################################################## + SET(TARGET_LIBRARIES ${TARGET_COMMON_LIBRARIES}) + FOREACH(LINKLIB ${TARGET_ADDED_LIBRARIES}) + SET(TO_INSERT TRUE) + FOREACH (value ${TARGET_COMMON_LIBRARIES}) + IF (${value} STREQUAL ${LINKLIB}) + SET(TO_INSERT FALSE) + ENDIF (${value} STREQUAL ${LINKLIB}) + ENDFOREACH (value ${TARGET_COMMON_LIBRARIES}) + IF(TO_INSERT) + LIST(APPEND TARGET_LIBRARIES ${LINKLIB}) + ENDIF(TO_INSERT) + ENDFOREACH(LINKLIB) + FOREACH(LINKLIB ${TARGET_LIBRARIES}) + TARGET_LINK_LIBRARIES(${TARGET_TARGETNAME} optimized ${LINKLIB} debug "${LINKLIB}${CMAKE_DEBUG_POSTFIX}") + ENDFOREACH(LINKLIB) + FOREACH(LINKLIB ${TARGET_EXTERNAL_LIBRARIES}) + TARGET_LINK_LIBRARIES(${TARGET_TARGETNAME} ${LINKLIB}) + ENDFOREACH(LINKLIB) +ENDMACRO(SETUP_LINK_LIBRARIES) - SET(TARGET_NAME ${SUBDIR}) - FILE(GLOB SRC_FILES ${OPENSCENEGRAPH_DIR}/src/${SUBDIR}/*.cpp) - #FILE(GLOB H_FILES ${OPENSCENEGRAPH_DIR}/include/${SUBDIR}/*) - GET_HEADERS_EXTENSIONLESS("${OPENSCENEGRAPH_DIR}/include/${SUBDIR}" "*" H_FILES) -#patch luigi osgwrapper FILE(GLOB SRC_FILES_SUB ${OPENSCENEGRAPH_DIR}/src/${SUBDIR}/*/*.cpp) -#patch luigi osgwrapper SET(SRC_FILES ${SRC_FILES} ${SRC_FILES_SUB}) - - #-- extract link files, defines, exclude files form additional arguments - - SET(LISTNAME "TEMP") - SET(DEFSTR "") - - #--- parse remaining args - FOREACH(ARG ${ARGN}) - #MESSAGE(STATUS "+ [${ARG}]") - - # if we find our keywords set the active list to given keyname - STRING(COMPARE EQUAL "${ARG}" "LINK" IS_LINK) - STRING(COMPARE EQUAL "${ARG}" "DEFINE" IS_DEFINE) - STRING(COMPARE EQUAL "${ARG}" "EXCLUDE" IS_EXCLUDE) - - #MESSAGE(STATUS "STRSTUFF L ${IS_LINK} D ${IS_DEFINE} E ${IS_EXCLUDE}") - - #--- check for label change - SET(LIST_CHANGED ${IS_LINK} OR ${IS_DEFINE} OR ${IS_EXCLUDE}) - IF(${LIST_CHANGED}) - SET(${LISTNAME} ${CURRLIST}) # in this case change the current list - #MESSAGE(STATUS "STORED LIST [${LISTNAME}] = (${CURRLIST})") - SET(LISTNAME ${ARG}) # new list name - REMOVE(CURRLIST ${CURRLIST} ) # clear current list - ELSE(${LIST_CHANGED}) - SET(CURRLIST ${CURRLIST} ${ARG}) # otherwise just add current entry to current list - ENDIF(${LIST_CHANGED}) - - ENDFOREACH(ARG) - SET(${LISTNAME} ${CURRLIST}) # copy current list to active list - #MESSAGE(STATUS "STORED LIST [${LISTNAME}] = (${CURRLIST})") - REMOVE(CURRLIST ${CURRLIST} ) # clear current list - - #MESSAGE(STATUS "AFTER: EXC (${EXCLUDE}) DEF (${DEFINE}) LINK (${LINK})") - - #--- exclude files from exclude list - FOREACH(EXF ${EXCLUDE}) - REMOVE(SRC_FILES ${OPENSCENEGRAPH_DIR}/src/${SUBDIR}/${EXF}) - ENDFOREACH(EXF) - - SOURCE_GROUP("Header Files" FILES ${H_FILES}) - SET_SOURCE_FILES_PROPERTIES(${H_FILES} PROPERTIES HEADER_FILE_ONLY ON) - - #--- add symbols, first assemble string with multiple /D "symbol" entries - FOREACH(DEF ${DEFINE}) - IF(WIN32) - SET(DEFSTR "${DEFSTR} /D \"${DEF}\"") - #MESSAGE(STATUS "add symbol : " ${DEF}) - ENDIF(WIN32) - IF(UNIX) - SET(DEFSTR "${DEFSTR} -D\"${DEF}\"") - #MESSAGE(STATUS "add symbol : " ${DEF}) - ENDIF(UNIX) - ENDFOREACH(DEF) - - IF(NOT DEFSTR STREQUAL "") # then set defines - SET_SOURCE_FILES_PROPERTIES(${SRC_FILES} PROPERTIES COMPILE_FLAGS ${DEFSTR}) - #MESSAGE(STATUS "********* ADD COMPILE FLAGS ${DEFSTR} **********") - ENDIF(NOT DEFSTR STREQUAL "") - - #--- add library with given name - ADD_LIBRARY(${TARGET_NAME} SHARED ${SRC_FILES} ${H_FILES}) - SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES DEFINE_SYMBOL "${EXPORTDEF}" PROJECT_LABEL "${OSG_PROJECT_LABEL_PREFIX} ${TARGET_NAME}") - - TARGET_LINK_LIBRARIES(${TARGET_NAME} ${LINK}) +############################################################################################ +# this is the common set of command for all the plugins +# - #speed#TARGET_LOCATIONS_ACCUM(${TARGET_NAME}) +MACRO(SETUP_PLUGIN) + #MESSAGE("in -->SETUP_PLUGIN<-- ${TARGET_NAME}-->${TARGET_SRC} <--> ${TARGET_H}<--") + + ## we have set up the target label and targetname by taking into account global prfix (osgdb_) + + IF(NOT TARGET_TARGETNAME) + SET(TARGET_TARGETNAME "${TARGET_DEFAULT_PREFIX}${TARGET_NAME}") + ENDIF(NOT TARGET_TARGETNAME) + IF(NOT TARGET_LABEL) + SET(TARGET_LABEL "${TARGET_DEFAULT_LABEL_PREFIX} ${TARGET_NAME}") + ENDIF(NOT TARGET_LABEL) - REMOVE(DEFINE ${DEFINE}) - REMOVE(LINK ${LINK}) - REMOVE(EXCLUDE ${EXCLUDE}) +# here we use the command to generate the library - #old form# INSTALL_TARGETS(/lib ${TARGET_NAME} ) - INSTALL(TARGETS ${TARGET_NAME} ARCHIVE DESTINATION lib LIBRARY DESTINATION lib RUNTIME DESTINATION bin ) - INSTALL(FILES ${H_FILES} DESTINATION include/${TARGET_NAME} ) + ADD_LIBRARY(${TARGET_TARGETNAME} MODULE ${TARGET_SRC} ${TARGET_H}) -ENDMACRO(ADD_OSG_LIB) - - - -MACRO(ADD_OSG_APPLICATION SUBDIR) - #PROJECT("application_${SUBDIR}") - SET(MYTARGET application_${SUBDIR}) - FILE(GLOB APPLICATION_SRC ${OPENSCENEGRAPH_APPLICATION_DIR}/${SUBDIR}/*.cpp) - FILE(GLOB APPLICATION_H ${OPENSCENEGRAPH_APPLICATION_DIR}/${SUBDIR}/*.h) - IF(NOT APPLICATION_SRC) - MESSAGE("application_${SUBDIR}") - ELSE(NOT APPLICATION_SRC) - ADD_EXECUTABLE(${MYTARGET} ${APPLICATION_SRC} ${APPLICATION_H}) - ENDIF(NOT APPLICATION_SRC) - SET_TARGET_PROPERTIES(${MYTARGET} PROPERTIES DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX}) - SET_TARGET_PROPERTIES(${MYTARGET} PROPERTIES OUTPUT_NAME ${SUBDIR}) - #IF(UNIX) - # MESSAGE("so no qui!!!!!!!!!!") - FOREACH(LINKLIB osg osgDB osgUtil osgViewer osgText osgGA OpenThreads ${ARGV1} ${ARGV2} ${ARGV3} ${ARGV4} ${ARGV5}) - IF(${LINKLIB} MATCHES "osg") - #MESSAGE("TARGET_LINK_LIBRARIES(${MYTARGET} ${LINKLIB}") - TARGET_LINK_LIBRARIES(${MYTARGET} optimized ${LINKLIB} debug "${LINKLIB}${CMAKE_DEBUG_POSTFIX}") - ELSE(${LINKLIB} MATCHES "osg") - IF(${LINKLIB} MATCHES "Producer") - #MESSAGE("TARGET_LINK_LIBRARIES(${MYTARGET} ${LINKLIB}") - TARGET_LINK_LIBRARIES(${MYTARGET} optimized ${LINKLIB} debug "${LINKLIB}${CMAKE_DEBUG_POSTFIX}") - ELSE(${LINKLIB} MATCHES "Producer") - IF(${LINKLIB} MATCHES "OpenThreads") - #MESSAGE("TARGET_LINK_LIBRARIES(${MYTARGET} ${LINKLIB}") - IF(MSVC) -#change in name from standar VS projects TARGET_LINK_LIBRARIES(${MYTARGET} optimized "${LINKLIB}Win32" debug "${LINKLIB}Win32d" ) - TARGET_LINK_LIBRARIES(${MYTARGET} optimized "${LINKLIB}" debug "${LINKLIB}d" ) - ELSE(MSVC) - TARGET_LINK_LIBRARIES(${MYTARGET} optimized ${LINKLIB} debug "${LINKLIB}${CMAKE_DEBUG_POSTFIX}") - ENDIF(MSVC) - ELSE(${LINKLIB} MATCHES "OpenThreads") - #MESSAGE("EXTERNAL LIB:TARGET_LINK_LIBRARIES(${MYTARGET} ${LINKLIB}") - TARGET_LINK_LIBRARIES(${MYTARGET} ${LINKLIB} ) - ENDIF(${LINKLIB} MATCHES "OpenThreads") - ENDIF(${LINKLIB} MATCHES "Producer") - ENDIF(${LINKLIB} MATCHES "osg") - ENDFOREACH(LINKLIB) - #ELSE(UNIX) - # TARGET_LINK_LIBRARIES(${MYTARGET} osg osgDB osgUtil osgProducer ${ARGV1} ${ARGV2} ${ARGV3} ${ARGV4} ${ARGV5}) - #ENDIF(UNIX) - SET_TARGET_PROPERTIES(${MYTARGET} PROPERTIES PROJECT_LABEL "application ${SUBDIR}") - #speed#TARGET_LOCATIONS_ACCUM(${MYTARGET}) - #MESSAGE(STATUS "adding osg application ${MYTARGET}") - - ##INSTALL_TARGETS(/bin ${MYTARGET} ) - INSTALL(TARGETS ${MYTARGET} RUNTIME DESTINATION bin ) -ENDMACRO(ADD_OSG_APPLICATION) - -MACRO(ADD_OSG_EXAMPLE SUBDIR) - #PROJECT("example_${SUBDIR}") - SET(MYTARGET example_${SUBDIR}) - FILE(GLOB EXAMPLE_SRC ${OPENSCENEGRAPH_EXAMPLE_DIR}/${SUBDIR}/*.cpp) - FILE(GLOB EXAMPLE_H ${OPENSCENEGRAPH_EXAMPLE_DIR}/${SUBDIR}/*.h) - IF(NOT EXAMPLE_SRC) - MESSAGE("example_${SUBDIR}") - ELSE(NOT EXAMPLE_SRC) - ADD_EXECUTABLE(${MYTARGET} ${EXAMPLE_SRC} ${EXAMPLE_H}) - ENDIF(NOT EXAMPLE_SRC) - SET_TARGET_PROPERTIES(${MYTARGET} PROPERTIES DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX}) - SET_TARGET_PROPERTIES(${MYTARGET} PROPERTIES OUTPUT_NAME ${SUBDIR}) - SET_TARGET_PROPERTIES(${TARGET} PROPERTIES PROJECT_LABEL "Examples ${MYTARGET}") - #IF(UNIX) - # MESSAGE("so no qui!!!!!!!!!!") - FOREACH(LINKLIB osg osgDB osgUtil osgViewer osgText osgGA OpenThreads ${ARGV1} ${ARGV2} ${ARGV3} ${ARGV4} ${ARGV5}) - IF(${LINKLIB} MATCHES "osg") - #MESSAGE("TARGET_LINK_LIBRARIES(${MYTARGET} ${LINKLIB}") - TARGET_LINK_LIBRARIES(${MYTARGET} optimized ${LINKLIB} debug "${LINKLIB}${CMAKE_DEBUG_POSTFIX}") - ELSE(${LINKLIB} MATCHES "osg") - IF(${LINKLIB} MATCHES "Producer") - #MESSAGE("TARGET_LINK_LIBRARIES(${MYTARGET} ${LINKLIB}") - TARGET_LINK_LIBRARIES(${MYTARGET} optimized ${LINKLIB} debug "${LINKLIB}${CMAKE_DEBUG_POSTFIX}") - ELSE(${LINKLIB} MATCHES "Producer") - IF(${LINKLIB} MATCHES "OpenThreads") - #MESSAGE("TARGET_LINK_LIBRARIES(${MYTARGET} ${LINKLIB}") - IF(MSVC) -#change in name from standar VS projects TARGET_LINK_LIBRARIES(${MYTARGET} optimized "${LINKLIB}Win32" debug "${LINKLIB}Win32d" ) - TARGET_LINK_LIBRARIES(${MYTARGET} optimized "${LINKLIB}" debug "${LINKLIB}d" ) - ELSE(MSVC) - TARGET_LINK_LIBRARIES(${MYTARGET} optimized ${LINKLIB} debug "${LINKLIB}${CMAKE_DEBUG_POSTFIX}") - ENDIF(MSVC) - ELSE(${LINKLIB} MATCHES "OpenThreads") - #MESSAGE("EXTERNAL LIB:TARGET_LINK_LIBRARIES(${MYTARGET} ${LINKLIB}") - TARGET_LINK_LIBRARIES(${MYTARGET} ${LINKLIB} ) - ENDIF(${LINKLIB} MATCHES "OpenThreads") - ENDIF(${LINKLIB} MATCHES "Producer") - ENDIF(${LINKLIB} MATCHES "osg") - ENDFOREACH(LINKLIB) - #ELSE(UNIX) - # TARGET_LINK_LIBRARIES(${MYTARGET} osg osgDB osgUtil osgProducer ${ARGV1} ${ARGV2} ${ARGV3} ${ARGV4} ${ARGV5}) - #ENDIF(UNIX) - SET_TARGET_PROPERTIES(${MYTARGET} PROPERTIES PROJECT_LABEL "example ${SUBDIR}") - #speed#TARGET_LOCATIONS_ACCUM(${MYTARGET}) - #MESSAGE(STATUS "adding osg example ${MYTARGET}") - - ##INSTALL_TARGETS(/bin ${MYTARGET} ) - IF(WIN32) - INSTALL(TARGETS ${MYTARGET} RUNTIME DESTINATION bin ) - ELSE(WIN32) - INSTALL(TARGETS ${MYTARGET} RUNTIME DESTINATION share/OpenSceneGraph/bin ) - ENDIF(WIN32) -ENDMACRO(ADD_OSG_EXAMPLE) - - - -#--------------------------------------------------- -# MACRO GET_TARGETNAME SUBDIR RESULT -# generates a plugin target name for given SUBDIR and sets RESULT accordingly -# e.g. GET_TARGETNAME(osg OSG_TARGET) -> OSG_TARGET is osgdb_osg -MACRO(GET_TARGETNAME SUBDIR RESULT) - SET(${RESULT} osgdb_${SUBDIR}) -ENDMACRO(GET_TARGETNAME) - -#--------------------------------------------------- -# MACRO ADD_OSG_PLUGIN SUBDIR [additional libs to link to] -# adds a plugin project for given SUBDIR, links libraries given as additional arguments -# e.g. ADD_OSG_PLUGIN(osg osgSim) -> generates is osgdb_osg and links with osgSim - -MACRO(ADD_OSG_PLUGIN SUBDIR) - GET_TARGETNAME(${SUBDIR} TARGET) -# MESSAGE("globbing in -->${PROJECT_SOURCE_DIR}/${SUBDIR}<--") - FILE(GLOB PLUGIN_SRC ${PROJECT_SOURCE_DIR}/${SUBDIR}/*.cpp) - FILE(GLOB PLUGIN_H ${PROJECT_SOURCE_DIR}/${SUBDIR}/*.h) - - #ADD_LIBRARY(${TARGET} SHARED ${PLUGIN_SRC} ${PLUGIN_H}) - ADD_LIBRARY(${TARGET} MODULE ${PLUGIN_SRC} ${PLUGIN_H}) + #not sure if needed, but for plugins only msvc need the d suffix IF(NOT MSVC) - SET_TARGET_PROPERTIES(${TARGET} PROPERTIES DEBUG_POSTFIX "") + SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES DEBUG_POSTFIX "") ENDIF(NOT MSVC) - SET_TARGET_PROPERTIES(${TARGET} PROPERTIES PROJECT_LABEL "Plugins ${TARGET}") + SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES PROJECT_LABEL "${TARGET_LABEL}") - FOREACH(LINKLIB osg osgDB osgUtil ${ARGV1} ${ARGV2} ${ARGV3} ${ARGV4} ${ARGV5}) - IF(${LINKLIB} MATCHES "osg") - #MESSAGE("TARGET_LINK_LIBRARIES(${TARGET} optimized ${LINKLIB}") - TARGET_LINK_LIBRARIES(${TARGET} optimized ${LINKLIB} debug "${LINKLIB}${CMAKE_DEBUG_POSTFIX}") - ELSE(${LINKLIB} MATCHES "osg") - TARGET_LINK_LIBRARIES(${TARGET} ${LINKLIB}) - ENDIF(${LINKLIB} MATCHES "osg") - ENDFOREACH(LINKLIB) - #ELSE(UNIX) - # SET_TARGET_PROPERTIES(${TARGET} PROPERTIES PROJECT_LABEL "osgPlugins ${SUBDIR}") - # TARGET_LINK_LIBRARIES(${TARGET} osg osgDB osgUtil ${ARGV1} ${ARGV2} ${ARGV3} ${ARGV4} ${ARGV5}) - #ENDIF(UNIX) - #speed#TARGET_LOCATIONS_ACCUM(${TARGET}) - - #old_form#INSTALL_TARGETS(/lib ${TARGET} ) + SETUP_LINK_LIBRARIES() + +#the installation path are differentiated for win32 that install in bib versus other architecture that install in lib${LIB_POSTFIX}/osgPlugins IF(WIN32) - INSTALL(TARGETS ${TARGET} RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION bin ) + INSTALL(TARGETS ${TARGET_TARGETNAME} RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION bin ) ELSE(WIN32) - INSTALL(TARGETS ${TARGET} RUNTIME DESTINATION bin ARCHIVE DESTINATION lib${LIB_POSTFIX}/osgPlugins LIBRARY DESTINATION lib${LIB_POSTFIX}/osgPlugins ) + INSTALL(TARGETS ${TARGET_TARGETNAME} RUNTIME DESTINATION bin ARCHIVE DESTINATION lib${LIB_POSTFIX}/osgPlugins LIBRARY DESTINATION lib${LIB_POSTFIX}/osgPlugins ) ENDIF(WIN32) -ENDMACRO(ADD_OSG_PLUGIN) +ENDMACRO(SETUP_PLUGIN) +################################################################################################################# +# this is the macro for example and application setup +########################################################### +MACRO(SETUP_EXE) + #MESSAGE("in -->SETUP_EXE<-- ${TARGET_NAME}-->${TARGET_SRC} <--> ${TARGET_H}<--") + IF(NOT TARGET_TARGETNAME) + SET(TARGET_TARGETNAME "${TARGET_DEFAULT_PREFIX}${TARGET_NAME}") + ENDIF(NOT TARGET_TARGETNAME) + IF(NOT TARGET_LABEL) + SET(TARGET_LABEL "${TARGET_DEFAULT_LABEL_PREFIX} ${TARGET_NAME}") + ENDIF(NOT TARGET_LABEL) - -MACRO(ADD_OSG_PLUGIN_EXTERN SOURCE_DIR _TARGET) - - FILE(GLOB PLUGIN_SRC ${SOURCE_DIR}/*.cpp) - FILE(GLOB PLUGIN_H ${SOURCE_DIR}/*.h) - #ADD_LIBRARY(${TARGET} SHARED ${PLUGIN_SRC} ${PLUGIN_H}) - ADD_LIBRARY(${_TARGET} MODULE ${PLUGIN_SRC} ${PLUGIN_H}) - IF(UNIX) - SET_TARGET_PROPERTIES(${_TARGET} PROPERTIES DEBUG_POSTFIX "") - ENDIF(UNIX) - FOREACH(LINKLIB osg osgDB osgUtil ${ARGV2} ${ARGV3} ${ARGV4} ${ARGV5}) - IF(${LINKLIB} MATCHES "osg") - #MESSAGE("TARGET_LINK_LIBRARIES(${TARGET} optimized ${LINKLIB}") - TARGET_LINK_LIBRARIES(${_TARGET} optimized ${LINKLIB} debug "${LINKLIB}${CMAKE_DEBUG_POSTFIX}") - ELSE(${LINKLIB} MATCHES "osg") - TARGET_LINK_LIBRARIES(${_TARGET} ${LINKLIB}) - ENDIF(${LINKLIB} MATCHES "osg") - ENDFOREACH(LINKLIB) - #ELSE(UNIX) - # SET_TARGET_PROPERTIES(${TARGET} PROPERTIES PROJECT_LABEL "osgPlugin ${SUBDIR}") - # TARGET_LINK_LIBRARIES(${TARGET} osg osgDB osgUtil ${ARGV1} ${ARGV2} ${ARGV3} ${ARGV4} ${ARGV5}) - #ENDIF(UNIX) - #speed#TARGET_LOCATIONS_ACCUM(${_TARGET}) + ADD_EXECUTABLE(${TARGET_TARGETNAME} ${TARGET_SRC} ${TARGET_H}) + SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES PROJECT_LABEL "${TARGET_LABEL}") + SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX}) + SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES OUTPUT_NAME ${TARGET_NAME}) - ##INSTALL_TARGETS(/lib ${_TARGET} ) - INSTALL(TARGETS ${_TARGET} RUNTIME DESTINATION bin ) -ENDMACRO(ADD_OSG_PLUGIN_EXTERN) + SETUP_LINK_LIBRARIES() + +ENDMACRO(SETUP_EXE) + +MACRO(SETUP_APPLICATION) + + SETUP_EXE() + + INSTALL(TARGETS ${TARGET_TARGETNAME} RUNTIME DESTINATION bin ) + +ENDMACRO(SETUP_APPLICATION) + + +MACRO(SETUP_EXAMPLE) + + SETUP_EXE() + + INSTALL(TARGETS ${TARGET_TARGETNAME} RUNTIME DESTINATION share/OpenSceneGraph/bin ) + +ENDMACRO(SETUP_EXAMPLE) + + diff --git a/applications/CMakeLists.txt b/applications/CMakeLists.txt index d5561d947..90a8b3629 100644 --- a/applications/CMakeLists.txt +++ b/applications/CMakeLists.txt @@ -13,14 +13,25 @@ IF(NOT OSGCORE_BUNDLED) ENDIF(NOT OSGCORE_BUNDLED) SET(OPENSCENEGRAPH_APPLICATION_DIR ${PROJECT_SOURCE_DIR}) -INCLUDE(OsgMacroUtils) +SET(TARGET_DEFAULT_PREFIX "application_") +SET(TARGET_DEFAULT_LABEL_PREFIX "Applications") +SET(TARGET_COMMON_LIBRARIES + OpenThreads + osg + osgDB + osgUtil + osgGA + osgViewer + osgText +) -ADD_OSG_APPLICATION( osgviewer ) -ADD_OSG_APPLICATION( osgarchive ) -ADD_OSG_APPLICATION( osgconv ) -ADD_OSG_APPLICATION( osgversion ) +ADD_SUBDIRECTORY(osgviewer) +ADD_SUBDIRECTORY(osgarchive) +ADD_SUBDIRECTORY(osgconv) +ADD_SUBDIRECTORY(osgversion) +#REWRITE_CMAKELIST(ADD_OSG_EXAMPLE) #MESSAGE("---->${MY_EXAMPLE_LIST}<---------") ##########to get all the variables of Cmake diff --git a/applications/osgarchive/CMakeLists.txt b/applications/osgarchive/CMakeLists.txt new file mode 100644 index 000000000..3d49f64b9 --- /dev/null +++ b/applications/osgarchive/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgarchive ) +SET(TARGET_SRC osgarchive.cpp ) +#### end var setup ### +SETUP_APPLICATION() diff --git a/applications/osgconv/CMakeLists.txt b/applications/osgconv/CMakeLists.txt new file mode 100644 index 000000000..ac3a9bfd2 --- /dev/null +++ b/applications/osgconv/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgconv ) +SET(TARGET_SRC OrientationConverter.cpp osgconv.cpp ) +SET(TARGET_H OrientationConverter.h ) +#### end var setup ### +SETUP_APPLICATION() diff --git a/applications/osgversion/CMakeLists.txt b/applications/osgversion/CMakeLists.txt new file mode 100644 index 000000000..c6098c1eb --- /dev/null +++ b/applications/osgversion/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgversion ) +SET(TARGET_SRC osgversion.cpp ) +#### end var setup ### +SETUP_APPLICATION() diff --git a/applications/osgviewer/CMakeLists.txt b/applications/osgviewer/CMakeLists.txt new file mode 100644 index 000000000..ee5cf364a --- /dev/null +++ b/applications/osgviewer/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgviewer ) +SET(TARGET_SRC osgviewer.cpp ) +#### end var setup ### +SETUP_APPLICATION() diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 0ca069c14..ed8e96bf1 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -13,99 +13,118 @@ IF(NOT OSGCORE_BUNDLED) ENDIF(NOT OSGCORE_BUNDLED) SET(OPENSCENEGRAPH_EXAMPLE_DIR ${PROJECT_SOURCE_DIR}) -INCLUDE(OsgMacroUtils) +SET(TARGET_DEFAULT_PREFIX "example_") +SET(TARGET_DEFAULT_LABEL_PREFIX "Examples") +SET(TARGET_COMMON_LIBRARIES + OpenThreads + osg + osgDB + osgUtil + osgGA + osgViewer + osgText +) - -ADD_OSG_EXAMPLE( osganimate osgSim ) -ADD_OSG_EXAMPLE( osgautotransform ) -ADD_OSG_EXAMPLE( osgbillboard ) -ADD_OSG_EXAMPLE( osgblendequation osgGA) -ADD_OSG_EXAMPLE( osgcallback ) -ADD_OSG_EXAMPLE( osgcamera ) -ADD_OSG_EXAMPLE( osgcatch osgParticle) -#ADD_OSG_EXAMPLE( osgcegui ) -ADD_OSG_EXAMPLE( osgclip ) -#to add subject to find socket#ADD_OSG_EXAMPLE( osgcluster ${OSG_SOCKET_LIBS} ) -ADD_OSG_EXAMPLE( osgcopy ) -ADD_OSG_EXAMPLE( osgcubemap ) -ADD_OSG_EXAMPLE( osgdelaunay osgGA) -ADD_OSG_EXAMPLE( osgdepthpartition ) -ADD_OSG_EXAMPLE( osgdepthshadow osgShadow) -ADD_OSG_EXAMPLE( osgdistortion ) -ADD_OSG_EXAMPLE( osgfadetext osgText) -ADD_OSG_EXAMPLE( osgforest osgGA) -ADD_OSG_EXAMPLE( osgfxbrowser osgFX osgGA) -ADD_OSG_EXAMPLE( osggeodemo osgGA) -ADD_OSG_EXAMPLE( osggeometry ) +#this is for asking the production of a single CMakeLists.txt +#ADD_SUBDIRECTORY(osganimate) +ADD_SUBDIRECTORY(osganimate) +ADD_SUBDIRECTORY(osgautotransform) +ADD_SUBDIRECTORY(osgbillboard) +ADD_SUBDIRECTORY(osgblendequation) +ADD_SUBDIRECTORY(osgcallback) +ADD_SUBDIRECTORY(osgcamera) +ADD_SUBDIRECTORY(osgcatch) +#ADD_SUBDIRECTORY(osgcegui) +ADD_SUBDIRECTORY(osgclip) +#to add subject to find socket#ADD_SUBDIRECTORY(osgcluster) +ADD_SUBDIRECTORY(osgcopy) +ADD_SUBDIRECTORY(osgcubemap) +ADD_SUBDIRECTORY(osgdelaunay) +ADD_SUBDIRECTORY(osgdepthpartition) +ADD_SUBDIRECTORY(osgdepthshadow) +ADD_SUBDIRECTORY(osgdistortion) +ADD_SUBDIRECTORY(osgfadetext) +ADD_SUBDIRECTORY(osgforest) +ADD_SUBDIRECTORY(osgfxbrowser) +ADD_SUBDIRECTORY(osggeodemo) +ADD_SUBDIRECTORY(osggeometry) #to add subject to find Glut -#ADD_OSG_EXAMPLE( osgGLUTkeyboardmouse ) -#ADD_OSG_EXAMPLE( osgGLUTsimple ) -ADD_OSG_EXAMPLE( osghangglide ) -ADD_OSG_EXAMPLE( osghud ) -ADD_OSG_EXAMPLE( osgimpostor osgSim ) -ADD_OSG_EXAMPLE( osgintersection osgSim) -IF (BUILD_OSG_WRAPPERS) - ADD_OSG_EXAMPLE( osgintrospection osgIntrospection ) -ENDIF(BUILD_OSG_WRAPPERS) -ADD_OSG_EXAMPLE( osgkeyboard osgFX ) -ADD_OSG_EXAMPLE( osgkeyboardmouse osgFX ) -ADD_OSG_EXAMPLE( osglauncher ) -ADD_OSG_EXAMPLE( osglight ) -ADD_OSG_EXAMPLE( osglightpoint osgSim ) -ADD_OSG_EXAMPLE( osglogicop osgGA) -ADD_OSG_EXAMPLE( osglogo ) -ADD_OSG_EXAMPLE( osgmanipulator osgManipulator ) -ADD_OSG_EXAMPLE( osgmotionblur ) -ADD_OSG_EXAMPLE( osgmovie osgGA) -ADD_OSG_EXAMPLE( osgmultiplecameras osgFX) -ADD_OSG_EXAMPLE( osgmultitexture ) -ADD_OSG_EXAMPLE( osgoccluder osgGA) -ADD_OSG_EXAMPLE( osgpagedlod ) -ADD_OSG_EXAMPLE( osgparametric ) -ADD_OSG_EXAMPLE( osgparticle osgParticle) -ADD_OSG_EXAMPLE( osgparticleeffects osgParticle osgGA) -ADD_OSG_EXAMPLE( osgphotoalbum ) -ADD_OSG_EXAMPLE( osgpick osgGA) -ADD_OSG_EXAMPLE( osgplanets osgGA) -ADD_OSG_EXAMPLE( osgpoints osgGA) -ADD_OSG_EXAMPLE( osgpointsprite ) -ADD_OSG_EXAMPLE( osgprecipitation osgParticle) -ADD_OSG_EXAMPLE( osgprerender ) -ADD_OSG_EXAMPLE( osgprerendercubemap ) -ADD_OSG_EXAMPLE( osgreflect ) -ADD_OSG_EXAMPLE( osgscalarbar osgSim ) -ADD_OSG_EXAMPLE( osgscribe ) -ADD_OSG_EXAMPLE( osgsequence ) -ADD_OSG_EXAMPLE( osgshaders ) -ADD_OSG_EXAMPLE( osgshaderterrain OpenThreads) -ADD_OSG_EXAMPLE( osgshadowtexture osgShadow) -ADD_OSG_EXAMPLE( osgshadow osgShadow) -ADD_OSG_EXAMPLE( osgshape ) -ADD_OSG_EXAMPLE( osgsimple ) +#ADD_SUBDIRECTORY(osgGLUTkeyboardmouse) +#ADD_SUBDIRECTORY(osgGLUTsimple) +ADD_SUBDIRECTORY(osghangglide) +ADD_SUBDIRECTORY(osghud) +ADD_SUBDIRECTORY(osgimpostor) +ADD_SUBDIRECTORY(osgintersection) +IF (BUILD_OSG_WRAPPERS)# + ADD_SUBDIRECTORY(osgintrospection) +ENDIF(BUILD_OSG_WRAPPERS)# +ADD_SUBDIRECTORY(osgkeyboard) +ADD_SUBDIRECTORY(osgkeyboardmouse) +ADD_SUBDIRECTORY(osglauncher) +ADD_SUBDIRECTORY(osglight) +ADD_SUBDIRECTORY(osglightpoint) +ADD_SUBDIRECTORY(osglogicop) +ADD_SUBDIRECTORY(osglogo) +ADD_SUBDIRECTORY(osgmanipulator) +ADD_SUBDIRECTORY(osgmotionblur) +ADD_SUBDIRECTORY(osgmovie) +ADD_SUBDIRECTORY(osgmultiplecameras) +ADD_SUBDIRECTORY(osgmultitexture) +ADD_SUBDIRECTORY(osgoccluder) +ADD_SUBDIRECTORY(osgpagedlod) +ADD_SUBDIRECTORY(osgparametric) +ADD_SUBDIRECTORY(osgparticle) +ADD_SUBDIRECTORY(osgparticleeffects) +ADD_SUBDIRECTORY(osgphotoalbum) +ADD_SUBDIRECTORY(osgpick) +ADD_SUBDIRECTORY(osgplanets) +ADD_SUBDIRECTORY(osgpoints) +ADD_SUBDIRECTORY(osgpointsprite) +ADD_SUBDIRECTORY(osgprecipitation) +ADD_SUBDIRECTORY(osgprerender) +ADD_SUBDIRECTORY(osgprerendercubemap) +ADD_SUBDIRECTORY(osgreflect) +ADD_SUBDIRECTORY(osgscalarbar) +ADD_SUBDIRECTORY(osgscribe) +ADD_SUBDIRECTORY(osgsequence) +ADD_SUBDIRECTORY(osgshaders) +ADD_SUBDIRECTORY(osgshaderterrain) +ADD_SUBDIRECTORY(osgshadowtexture) +ADD_SUBDIRECTORY(osgshadow) +ADD_SUBDIRECTORY(osgshape) +ADD_SUBDIRECTORY(osgsimple) ################################################## -#ADD_OSG_EXAMPLE( osgsimpleviewerXXX ) +#ADD_SUBDIRECTORY(osgsimpleviewerXXX) ################################################## -ADD_OSG_EXAMPLE( osgsimplifier ) -ADD_OSG_EXAMPLE( osgsimulation osgSim osgGA) -ADD_OSG_EXAMPLE( osgterrain osgTerrain) -ADD_OSG_EXAMPLE( osgslice ) -ADD_OSG_EXAMPLE( osgspacewarp ) -ADD_OSG_EXAMPLE( osgspheresegment osgSim osgParticle) -ADD_OSG_EXAMPLE( osgspotlight ) -ADD_OSG_EXAMPLE( osgstereoimage ) -ADD_OSG_EXAMPLE( osgteapot ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY}) -ADD_OSG_EXAMPLE( osgtessellate) -ADD_OSG_EXAMPLE( osgtext osgText) -ADD_OSG_EXAMPLE( osgtexture1D ) -ADD_OSG_EXAMPLE( osgtexture2D ) -ADD_OSG_EXAMPLE( osgtexture3D ) -ADD_OSG_EXAMPLE( osgtexturerectangle ) -ADD_OSG_EXAMPLE( osgunittests ) -ADD_OSG_EXAMPLE( osgvertexprogram ) -ADD_OSG_EXAMPLE( osgvolume ) -ADD_OSG_EXAMPLE( osgwindows ) +ADD_SUBDIRECTORY(osgsimplifier) +ADD_SUBDIRECTORY(osgsimulation) +ADD_SUBDIRECTORY(osgterrain) +ADD_SUBDIRECTORY(osgslice) +ADD_SUBDIRECTORY(osgspacewarp) +ADD_SUBDIRECTORY(osgspheresegment) +ADD_SUBDIRECTORY(osgspotlight) +ADD_SUBDIRECTORY(osgstereoimage) +########################################################################################################### +## this is to specify external libraries linking, these libraries do not differentiate in debug and release + +ADD_SUBDIRECTORY(osgteapot) + +########################################################################################################### + +ADD_SUBDIRECTORY(osgtessellate)#) +ADD_SUBDIRECTORY(osgtext) +ADD_SUBDIRECTORY(osgtexture1D) +ADD_SUBDIRECTORY(osgtexture2D) +ADD_SUBDIRECTORY(osgtexture3D) +ADD_SUBDIRECTORY(osgtexturerectangle) +ADD_SUBDIRECTORY(osgunittests) +ADD_SUBDIRECTORY(osgvertexprogram) +ADD_SUBDIRECTORY(osgvolume) +ADD_SUBDIRECTORY(osgwindows) + +#REWRITE_CMAKELIST(ADD_OSG_EXAMPLE) #MESSAGE("---->${MY_EXAMPLE_LIST}<---------") ##########to get all the variables of Cmake diff --git a/examples/osganimate/CMakeLists.txt b/examples/osganimate/CMakeLists.txt new file mode 100644 index 000000000..2e4c64fdc --- /dev/null +++ b/examples/osganimate/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osganimate ) +SET(TARGET_SRC osganimate.cpp ) +SET(TARGET_ADDED_LIBRARIES osgSim ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgautotransform/CMakeLists.txt b/examples/osgautotransform/CMakeLists.txt new file mode 100644 index 000000000..fa4eca2ba --- /dev/null +++ b/examples/osgautotransform/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgautotransform ) +SET(TARGET_SRC osgautotransform.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgbillboard/CMakeLists.txt b/examples/osgbillboard/CMakeLists.txt new file mode 100644 index 000000000..78883a9c9 --- /dev/null +++ b/examples/osgbillboard/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgbillboard ) +SET(TARGET_SRC osgbillboard.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgblendequation/CMakeLists.txt b/examples/osgblendequation/CMakeLists.txt new file mode 100644 index 000000000..c1d17812d --- /dev/null +++ b/examples/osgblendequation/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgblendequation ) +SET(TARGET_SRC osgblendequation.cpp ) +SET(TARGET_ADDED_LIBRARIES osgGA ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgcallback/CMakeLists.txt b/examples/osgcallback/CMakeLists.txt new file mode 100644 index 000000000..76d2ac851 --- /dev/null +++ b/examples/osgcallback/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgcallback ) +SET(TARGET_SRC osgcallback.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgcamera/CMakeLists.txt b/examples/osgcamera/CMakeLists.txt new file mode 100644 index 000000000..8f7adbcf1 --- /dev/null +++ b/examples/osgcamera/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgcamera ) +SET(TARGET_SRC osgcamera.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgcatch/CMakeLists.txt b/examples/osgcatch/CMakeLists.txt new file mode 100644 index 000000000..63589cee8 --- /dev/null +++ b/examples/osgcatch/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgcatch ) +SET(TARGET_SRC osgcatch.cpp ) +SET(TARGET_ADDED_LIBRARIES osgParticle ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgclip/CMakeLists.txt b/examples/osgclip/CMakeLists.txt new file mode 100644 index 000000000..276ec9742 --- /dev/null +++ b/examples/osgclip/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgclip ) +SET(TARGET_SRC osgclip.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgcopy/CMakeLists.txt b/examples/osgcopy/CMakeLists.txt new file mode 100644 index 000000000..f077c0218 --- /dev/null +++ b/examples/osgcopy/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgcopy ) +SET(TARGET_SRC osgcopy.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgcubemap/CMakeLists.txt b/examples/osgcubemap/CMakeLists.txt new file mode 100644 index 000000000..f55aea3d1 --- /dev/null +++ b/examples/osgcubemap/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgcubemap ) +SET(TARGET_SRC osgcubemap.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgdelaunay/CMakeLists.txt b/examples/osgdelaunay/CMakeLists.txt new file mode 100644 index 000000000..a8c688225 --- /dev/null +++ b/examples/osgdelaunay/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgdelaunay ) +SET(TARGET_SRC osgdelaunay.cpp ) +SET(TARGET_ADDED_LIBRARIES osgGA ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgdepthpartition/CMakeLists.txt b/examples/osgdepthpartition/CMakeLists.txt new file mode 100644 index 000000000..3ad5b375d --- /dev/null +++ b/examples/osgdepthpartition/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgdepthpartition ) +SET(TARGET_SRC DepthPartitionNode.cpp DistanceAccumulator.cpp osgdepthpartition.cpp ) +SET(TARGET_H DepthPartitionNode.h DistanceAccumulator.h ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgdepthshadow/CMakeLists.txt b/examples/osgdepthshadow/CMakeLists.txt new file mode 100644 index 000000000..859bbff83 --- /dev/null +++ b/examples/osgdepthshadow/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgdepthshadow ) +SET(TARGET_SRC osgdepthshadow.cpp ) +SET(TARGET_ADDED_LIBRARIES osgShadow ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgdistortion/CMakeLists.txt b/examples/osgdistortion/CMakeLists.txt new file mode 100644 index 000000000..2d6656fdf --- /dev/null +++ b/examples/osgdistortion/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgdistortion ) +SET(TARGET_SRC osgdistortion.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgfadetext/CMakeLists.txt b/examples/osgfadetext/CMakeLists.txt new file mode 100644 index 000000000..c9d6af7ed --- /dev/null +++ b/examples/osgfadetext/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgfadetext ) +SET(TARGET_SRC osgfadetext.cpp ) +SET(TARGET_ADDED_LIBRARIES osgText ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgforest/CMakeLists.txt b/examples/osgforest/CMakeLists.txt new file mode 100644 index 000000000..f993380d4 --- /dev/null +++ b/examples/osgforest/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgforest ) +SET(TARGET_SRC osgforest.cpp ) +SET(TARGET_ADDED_LIBRARIES osgGA ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgfxbrowser/CMakeLists.txt b/examples/osgfxbrowser/CMakeLists.txt new file mode 100644 index 000000000..36c26d6db --- /dev/null +++ b/examples/osgfxbrowser/CMakeLists.txt @@ -0,0 +1,8 @@ +#this file is automatically generated + +SET(TARGET_NAME osgfxbrowser ) +SET(TARGET_SRC Frame.cpp osgfxbrowser.cpp ) +SET(TARGET_H Frame.h ) +SET(TARGET_ADDED_LIBRARIES osgFX osgGA ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osggeodemo/CMakeLists.txt b/examples/osggeodemo/CMakeLists.txt new file mode 100644 index 000000000..cc1470385 --- /dev/null +++ b/examples/osggeodemo/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osggeodemo ) +SET(TARGET_SRC osggeodemo.cpp ) +SET(TARGET_ADDED_LIBRARIES osgGA ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osggeometry/CMakeLists.txt b/examples/osggeometry/CMakeLists.txt new file mode 100644 index 000000000..d0a6af5fe --- /dev/null +++ b/examples/osggeometry/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osggeometry ) +SET(TARGET_SRC osggeometry.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osghangglide/CMakeLists.txt b/examples/osghangglide/CMakeLists.txt new file mode 100644 index 000000000..510812802 --- /dev/null +++ b/examples/osghangglide/CMakeLists.txt @@ -0,0 +1,22 @@ +#this file is automatically generated + +SET(TARGET_NAME osghangglide ) +SET(TARGET_SRC +GliderManipulator.cpp +base.cpp +hat.cpp +osghangglide.cpp +sky.cpp +tank.cpp +terrain.cpp +trees.cpp +) +SET(TARGET_H +GliderManipulator.h +hat.h +terrain_coords.h +terrain_normals.h +terrain_texcoords.h +) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osghud/CMakeLists.txt b/examples/osghud/CMakeLists.txt new file mode 100644 index 000000000..54581a754 --- /dev/null +++ b/examples/osghud/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osghud ) +SET(TARGET_SRC osghud.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgimpostor/CMakeLists.txt b/examples/osgimpostor/CMakeLists.txt new file mode 100644 index 000000000..eacb6cd28 --- /dev/null +++ b/examples/osgimpostor/CMakeLists.txt @@ -0,0 +1,8 @@ +#this file is automatically generated + +SET(TARGET_NAME osgimpostor ) +SET(TARGET_SRC TestManipulator.cpp osgimpostor.cpp ) +SET(TARGET_H TestManipulator.h ) +SET(TARGET_ADDED_LIBRARIES osgSim ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgintersection/CMakeLists.txt b/examples/osgintersection/CMakeLists.txt new file mode 100644 index 000000000..0a55e6f48 --- /dev/null +++ b/examples/osgintersection/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgintersection ) +SET(TARGET_SRC osgintersection.cpp ) +SET(TARGET_ADDED_LIBRARIES osgSim ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgkeyboard/CMakeLists.txt b/examples/osgkeyboard/CMakeLists.txt new file mode 100644 index 000000000..0c8e0dcb0 --- /dev/null +++ b/examples/osgkeyboard/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgkeyboard ) +SET(TARGET_SRC osgkeyboard.cpp ) +SET(TARGET_ADDED_LIBRARIES osgFX ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgkeyboardmouse/CMakeLists.txt b/examples/osgkeyboardmouse/CMakeLists.txt new file mode 100644 index 000000000..5dfce6968 --- /dev/null +++ b/examples/osgkeyboardmouse/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgkeyboardmouse ) +SET(TARGET_SRC osgkeyboardmouse.cpp ) +SET(TARGET_ADDED_LIBRARIES osgFX ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osglauncher/CMakeLists.txt b/examples/osglauncher/CMakeLists.txt new file mode 100644 index 000000000..8c6338fdf --- /dev/null +++ b/examples/osglauncher/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osglauncher ) +SET(TARGET_SRC osglauncher.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osglight/CMakeLists.txt b/examples/osglight/CMakeLists.txt new file mode 100644 index 000000000..a6fdcdcb6 --- /dev/null +++ b/examples/osglight/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osglight ) +SET(TARGET_SRC osglight.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osglightpoint/CMakeLists.txt b/examples/osglightpoint/CMakeLists.txt new file mode 100644 index 000000000..0c3c05350 --- /dev/null +++ b/examples/osglightpoint/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osglightpoint ) +SET(TARGET_SRC osglightpoint.cpp ) +SET(TARGET_ADDED_LIBRARIES osgSim ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osglogicop/CMakeLists.txt b/examples/osglogicop/CMakeLists.txt new file mode 100644 index 000000000..860c743cd --- /dev/null +++ b/examples/osglogicop/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osglogicop ) +SET(TARGET_SRC osglogicop.cpp ) +SET(TARGET_ADDED_LIBRARIES osgGA ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osglogo/CMakeLists.txt b/examples/osglogo/CMakeLists.txt new file mode 100644 index 000000000..6aa1ac073 --- /dev/null +++ b/examples/osglogo/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osglogo ) +SET(TARGET_SRC osglogo.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgmanipulator/CMakeLists.txt b/examples/osgmanipulator/CMakeLists.txt new file mode 100644 index 000000000..bf867854b --- /dev/null +++ b/examples/osgmanipulator/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgmanipulator ) +SET(TARGET_SRC osgmanipulator.cpp ) +SET(TARGET_ADDED_LIBRARIES osgManipulator ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgmotionblur/CMakeLists.txt b/examples/osgmotionblur/CMakeLists.txt new file mode 100644 index 000000000..b1247c072 --- /dev/null +++ b/examples/osgmotionblur/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgmotionblur ) +SET(TARGET_SRC osgmotionblur.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgmovie/CMakeLists.txt b/examples/osgmovie/CMakeLists.txt new file mode 100644 index 000000000..2cceff644 --- /dev/null +++ b/examples/osgmovie/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgmovie ) +SET(TARGET_SRC osgmovie.cpp ) +SET(TARGET_ADDED_LIBRARIES osgGA ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgmultiplecameras/CMakeLists.txt b/examples/osgmultiplecameras/CMakeLists.txt new file mode 100644 index 000000000..bb118e902 --- /dev/null +++ b/examples/osgmultiplecameras/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgmultiplecameras ) +SET(TARGET_SRC osgmultiplecameras.cpp ) +SET(TARGET_ADDED_LIBRARIES osgFX ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgmultitexture/CMakeLists.txt b/examples/osgmultitexture/CMakeLists.txt new file mode 100644 index 000000000..03f86b58d --- /dev/null +++ b/examples/osgmultitexture/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgmultitexture ) +SET(TARGET_SRC osgmultitexture.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgoccluder/CMakeLists.txt b/examples/osgoccluder/CMakeLists.txt new file mode 100644 index 000000000..57a8c083a --- /dev/null +++ b/examples/osgoccluder/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgoccluder ) +SET(TARGET_SRC osgoccluder.cpp ) +SET(TARGET_ADDED_LIBRARIES osgGA ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgpagedlod/CMakeLists.txt b/examples/osgpagedlod/CMakeLists.txt new file mode 100644 index 000000000..1283424e9 --- /dev/null +++ b/examples/osgpagedlod/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgpagedlod ) +SET(TARGET_SRC osgpagedlod.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgparametric/CMakeLists.txt b/examples/osgparametric/CMakeLists.txt new file mode 100644 index 000000000..824d0c631 --- /dev/null +++ b/examples/osgparametric/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgparametric ) +SET(TARGET_SRC osgparametric.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgparticle/CMakeLists.txt b/examples/osgparticle/CMakeLists.txt new file mode 100644 index 000000000..e13b731cb --- /dev/null +++ b/examples/osgparticle/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgparticle ) +SET(TARGET_SRC osgparticle.cpp ) +SET(TARGET_ADDED_LIBRARIES osgParticle ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgparticleeffects/CMakeLists.txt b/examples/osgparticleeffects/CMakeLists.txt new file mode 100644 index 000000000..1440cf74f --- /dev/null +++ b/examples/osgparticleeffects/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgparticleeffects ) +SET(TARGET_SRC osgparticleeffects.cpp ) +SET(TARGET_ADDED_LIBRARIES osgParticle osgGA ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgphotoalbum/CMakeLists.txt b/examples/osgphotoalbum/CMakeLists.txt new file mode 100644 index 000000000..29f773070 --- /dev/null +++ b/examples/osgphotoalbum/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgphotoalbum ) +SET(TARGET_SRC ImageReaderWriter.cpp PhotoArchive.cpp osgphotoalbum.cpp ) +SET(TARGET_H ImageReaderWriter.h PhotoArchive.h ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgpick/CMakeLists.txt b/examples/osgpick/CMakeLists.txt new file mode 100644 index 000000000..87b23f5bd --- /dev/null +++ b/examples/osgpick/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgpick ) +SET(TARGET_SRC osgpick.cpp ) +SET(TARGET_ADDED_LIBRARIES osgGA ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgplanets/CMakeLists.txt b/examples/osgplanets/CMakeLists.txt new file mode 100644 index 000000000..a0be87f02 --- /dev/null +++ b/examples/osgplanets/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgplanets ) +SET(TARGET_SRC osgplanets.cpp ) +SET(TARGET_ADDED_LIBRARIES osgGA ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgpoints/CMakeLists.txt b/examples/osgpoints/CMakeLists.txt new file mode 100644 index 000000000..6581eaa95 --- /dev/null +++ b/examples/osgpoints/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgpoints ) +SET(TARGET_SRC osgpoints.cpp ) +SET(TARGET_ADDED_LIBRARIES osgGA ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgpointsprite/CMakeLists.txt b/examples/osgpointsprite/CMakeLists.txt new file mode 100644 index 000000000..7a9b21277 --- /dev/null +++ b/examples/osgpointsprite/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgpointsprite ) +SET(TARGET_SRC osgpointsprite.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgprecipitation/CMakeLists.txt b/examples/osgprecipitation/CMakeLists.txt new file mode 100644 index 000000000..c333ee737 --- /dev/null +++ b/examples/osgprecipitation/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgprecipitation ) +SET(TARGET_SRC osgprecipitation.cpp ) +SET(TARGET_ADDED_LIBRARIES osgParticle ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgprerender/CMakeLists.txt b/examples/osgprerender/CMakeLists.txt new file mode 100644 index 000000000..b7a1bc80e --- /dev/null +++ b/examples/osgprerender/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgprerender ) +SET(TARGET_SRC osgprerender.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgprerendercubemap/CMakeLists.txt b/examples/osgprerendercubemap/CMakeLists.txt new file mode 100644 index 000000000..42353b696 --- /dev/null +++ b/examples/osgprerendercubemap/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgprerendercubemap ) +SET(TARGET_SRC osgprerendercubemap.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgreflect/CMakeLists.txt b/examples/osgreflect/CMakeLists.txt new file mode 100644 index 000000000..d9328663a --- /dev/null +++ b/examples/osgreflect/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgreflect ) +SET(TARGET_SRC osgreflect.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgscalarbar/CMakeLists.txt b/examples/osgscalarbar/CMakeLists.txt new file mode 100644 index 000000000..6f3bd1fdd --- /dev/null +++ b/examples/osgscalarbar/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgscalarbar ) +SET(TARGET_SRC osgscalarbar.cpp ) +SET(TARGET_ADDED_LIBRARIES osgSim ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgscribe/CMakeLists.txt b/examples/osgscribe/CMakeLists.txt new file mode 100644 index 000000000..368c4f6d6 --- /dev/null +++ b/examples/osgscribe/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgscribe ) +SET(TARGET_SRC osgscribe.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgsequence/CMakeLists.txt b/examples/osgsequence/CMakeLists.txt new file mode 100644 index 000000000..385fc155a --- /dev/null +++ b/examples/osgsequence/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgsequence ) +SET(TARGET_SRC osgsequence.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgshaders/CMakeLists.txt b/examples/osgshaders/CMakeLists.txt new file mode 100644 index 000000000..2380b8eae --- /dev/null +++ b/examples/osgshaders/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgshaders ) +SET(TARGET_SRC GL2Scene.cpp Noise.cpp osgshaders.cpp ) +SET(TARGET_H GL2Scene.h Noise.h ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgshaderterrain/CMakeLists.txt b/examples/osgshaderterrain/CMakeLists.txt new file mode 100644 index 000000000..2c44207e5 --- /dev/null +++ b/examples/osgshaderterrain/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgshaderterrain ) +SET(TARGET_SRC osgshaderterrain.cpp ) +SET(TARGET_ADDED_LIBRARIES OpenThreads ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgshadow/CMakeLists.txt b/examples/osgshadow/CMakeLists.txt new file mode 100644 index 000000000..d8b87ae3a --- /dev/null +++ b/examples/osgshadow/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgshadow ) +SET(TARGET_SRC osgshadow.cpp ) +SET(TARGET_ADDED_LIBRARIES osgShadow ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgshadowtexture/CMakeLists.txt b/examples/osgshadowtexture/CMakeLists.txt new file mode 100644 index 000000000..bf323b948 --- /dev/null +++ b/examples/osgshadowtexture/CMakeLists.txt @@ -0,0 +1,8 @@ +#this file is automatically generated + +SET(TARGET_NAME osgshadowtexture ) +SET(TARGET_SRC CreateShadowedScene.cpp osgshadowtexture.cpp ) +SET(TARGET_H CreateShadowedScene.h ) +SET(TARGET_ADDED_LIBRARIES osgShadow ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgshape/CMakeLists.txt b/examples/osgshape/CMakeLists.txt new file mode 100644 index 000000000..3dcc72a12 --- /dev/null +++ b/examples/osgshape/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgshape ) +SET(TARGET_SRC osgshape.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgsimple/CMakeLists.txt b/examples/osgsimple/CMakeLists.txt new file mode 100644 index 000000000..b2595369e --- /dev/null +++ b/examples/osgsimple/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgsimple ) +SET(TARGET_SRC osgsimple.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgsimplifier/CMakeLists.txt b/examples/osgsimplifier/CMakeLists.txt new file mode 100644 index 000000000..f3b72fcfc --- /dev/null +++ b/examples/osgsimplifier/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgsimplifier ) +SET(TARGET_SRC osgsimplifier.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgsimulation/CMakeLists.txt b/examples/osgsimulation/CMakeLists.txt new file mode 100644 index 000000000..d38a7eaeb --- /dev/null +++ b/examples/osgsimulation/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgsimulation ) +SET(TARGET_SRC osgsimulation.cpp ) +SET(TARGET_ADDED_LIBRARIES osgSim osgGA ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgslice/CMakeLists.txt b/examples/osgslice/CMakeLists.txt new file mode 100644 index 000000000..a9e798513 --- /dev/null +++ b/examples/osgslice/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgslice ) +SET(TARGET_SRC osgslice.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgspacewarp/CMakeLists.txt b/examples/osgspacewarp/CMakeLists.txt new file mode 100644 index 000000000..1803c45e9 --- /dev/null +++ b/examples/osgspacewarp/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgspacewarp ) +SET(TARGET_SRC osgspacewarp.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgspheresegment/CMakeLists.txt b/examples/osgspheresegment/CMakeLists.txt new file mode 100644 index 000000000..f8e1f8cb5 --- /dev/null +++ b/examples/osgspheresegment/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgspheresegment ) +SET(TARGET_SRC osgspheresegment.cpp ) +SET(TARGET_ADDED_LIBRARIES osgSim osgParticle ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgspotlight/CMakeLists.txt b/examples/osgspotlight/CMakeLists.txt new file mode 100644 index 000000000..de1a65d1f --- /dev/null +++ b/examples/osgspotlight/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgspotlight ) +SET(TARGET_SRC osgspotlight.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgstereoimage/CMakeLists.txt b/examples/osgstereoimage/CMakeLists.txt new file mode 100644 index 000000000..1e8eef9b6 --- /dev/null +++ b/examples/osgstereoimage/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgstereoimage ) +SET(TARGET_SRC osgstereoimage.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgteapot/CMakeLists.txt b/examples/osgteapot/CMakeLists.txt new file mode 100644 index 000000000..7338b85ab --- /dev/null +++ b/examples/osgteapot/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgteapot ) +SET(TARGET_SRC osgteapot.cpp ) +SET(TARGET_EXTERNAL_LIBRARIES ${OPENGL_LIBRARIES} ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgterrain/CMakeLists.txt b/examples/osgterrain/CMakeLists.txt new file mode 100644 index 000000000..22d753354 --- /dev/null +++ b/examples/osgterrain/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgterrain ) +SET(TARGET_SRC osgterrain.cpp ) +SET(TARGET_ADDED_LIBRARIES osgTerrain ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgtessellate/CMakeLists.txt b/examples/osgtessellate/CMakeLists.txt new file mode 100644 index 000000000..354d7958f --- /dev/null +++ b/examples/osgtessellate/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgtessellate ) +SET(TARGET_SRC osgtessellate.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgtext/CMakeLists.txt b/examples/osgtext/CMakeLists.txt new file mode 100644 index 000000000..953be5c09 --- /dev/null +++ b/examples/osgtext/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgtext ) +SET(TARGET_SRC osgtext.cpp ) +SET(TARGET_ADDED_LIBRARIES osgText ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgtexture1D/CMakeLists.txt b/examples/osgtexture1D/CMakeLists.txt new file mode 100644 index 000000000..badd9a809 --- /dev/null +++ b/examples/osgtexture1D/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgtexture1D ) +SET(TARGET_SRC osgtexture1D.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgtexture2D/CMakeLists.txt b/examples/osgtexture2D/CMakeLists.txt new file mode 100644 index 000000000..ca0b1d748 --- /dev/null +++ b/examples/osgtexture2D/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgtexture2D ) +SET(TARGET_SRC osgtexture2D.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgtexture3D/CMakeLists.txt b/examples/osgtexture3D/CMakeLists.txt new file mode 100644 index 000000000..76edac9ff --- /dev/null +++ b/examples/osgtexture3D/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgtexture3D ) +SET(TARGET_SRC osgtexture3D.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgtexturerectangle/CMakeLists.txt b/examples/osgtexturerectangle/CMakeLists.txt new file mode 100644 index 000000000..d9675e762 --- /dev/null +++ b/examples/osgtexturerectangle/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgtexturerectangle ) +SET(TARGET_SRC osgtexturerectangle.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgunittests/CMakeLists.txt b/examples/osgunittests/CMakeLists.txt new file mode 100644 index 000000000..c833e6808 --- /dev/null +++ b/examples/osgunittests/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgunittests ) +SET(TARGET_SRC UnitTestFramework.cpp UnitTests_osg.cpp osgunittests.cpp performance.cpp ) +SET(TARGET_H UnitTestFramework.h performance.h ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgvertexprogram/CMakeLists.txt b/examples/osgvertexprogram/CMakeLists.txt new file mode 100644 index 000000000..c63cedf16 --- /dev/null +++ b/examples/osgvertexprogram/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgvertexprogram ) +SET(TARGET_SRC osgvertexprogram.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgvolume/CMakeLists.txt b/examples/osgvolume/CMakeLists.txt new file mode 100644 index 000000000..8f87d39c7 --- /dev/null +++ b/examples/osgvolume/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgvolume ) +SET(TARGET_SRC osgvolume.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/examples/osgwindows/CMakeLists.txt b/examples/osgwindows/CMakeLists.txt new file mode 100644 index 000000000..a70136c59 --- /dev/null +++ b/examples/osgwindows/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgwindows ) +SET(TARGET_SRC osgwindows.cpp ) +#### end var setup ### +SETUP_EXAMPLE() diff --git a/src/osgPlugins/3dc/CMakeLists.txt b/src/osgPlugins/3dc/CMakeLists.txt new file mode 100644 index 000000000..b3dbb1fd3 --- /dev/null +++ b/src/osgPlugins/3dc/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME 3dc ) +SET(TARGET_SRC ReaderWriter3DC.cpp ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/3ds/CMakeLists.txt b/src/osgPlugins/3ds/CMakeLists.txt new file mode 100644 index 000000000..7ed5f4050 --- /dev/null +++ b/src/osgPlugins/3ds/CMakeLists.txt @@ -0,0 +1,51 @@ +#this file is automatically generated + +SET(TARGET_NAME 3ds ) +SET(TARGET_SRC +ReaderWriter3DS.cpp +atmosphere.cpp +background.cpp +camera.cpp +chunk.cpp +ease.cpp +file.cpp +lib3ds_float.cpp +light.cpp +material.cpp +matrix.cpp +mesh.cpp +node.cpp +quat.cpp +readwrite.cpp +shadow.cpp +tcb.cpp +tracks.cpp +vector.cpp +viewport.cpp +) +SET(TARGET_H +atmosphere.h +background.h +camera.h +chunk.h +chunktable.h +config.h +ease.h +file.h +lib3ds_float.h +light.h +material.h +matrix.h +mesh.h +node.h +quat.h +readwrite.h +shadow.h +tcb.h +tracks.h +types.h +vector.h +viewport.h +) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/CMakeLists.txt b/src/osgPlugins/CMakeLists.txt index 6c7d364b1..57610f2a9 100644 --- a/src/osgPlugins/CMakeLists.txt +++ b/src/osgPlugins/CMakeLists.txt @@ -19,79 +19,98 @@ IF(NOT MINGW) SET(CMAKE_SHARED_MODULE_PREFIX "") ENDIF(NOT MINGW) -INCLUDE(OsgMacroUtils) - +SET(TARGET_DEFAULT_PREFIX "osgdb_") +SET(TARGET_DEFAULT_LABEL_PREFIX "Plugins") +SET(TARGET_COMMON_LIBRARIES + osg + osgDB + osgUtil +) + IF (BUILD_OSG_COMMON_PLUGINS) - ADD_OSG_PLUGIN(osgFX osgFX) - ADD_OSG_PLUGIN(osgParticle osgParticle) - ADD_OSG_PLUGIN(osgSim osgSim) - ADD_OSG_PLUGIN(osgText osgText) - ADD_OSG_PLUGIN(osga) - ADD_OSG_PLUGIN(rot) - ADD_OSG_PLUGIN(scale) - ADD_OSG_PLUGIN(trans) + SET(TARGET_DEFAULT_LABEL_PREFIX "Plug commons") +########################################################### +# this is for asking the production of a single CMakeLists.txt +# the BUILD_CMAKELIST can be set at the macro call level or +# globally by configuring +# TARGET_DEFAULT_BUILD_CMAKELIST +# +# ADD_OSG_PLUGIN(osgFX osgFX BUILD_CMAKELIST) +# +########################################################### + ADD_SUBDIRECTORY(osgFX) + ADD_SUBDIRECTORY(osgParticle) + ADD_SUBDIRECTORY(osgSim) + ADD_SUBDIRECTORY(osgText) + ADD_SUBDIRECTORY(osga) + ADD_SUBDIRECTORY(rot) + ADD_SUBDIRECTORY(scale) + ADD_SUBDIRECTORY(trans) - ADD_OSG_PLUGIN(osg osgSim osgFX osgText) - ADD_OSG_PLUGIN(ive osgSim osgFX osgText) + ADD_SUBDIRECTORY(osg) + ADD_SUBDIRECTORY(ive) ENDIF (BUILD_OSG_COMMON_PLUGINS) IF (BUILD_OSG_IMAGE_PLUGINS) - ADD_OSG_PLUGIN(rgb) - ADD_OSG_PLUGIN(bmp) - ADD_OSG_PLUGIN(dds) - ADD_OSG_PLUGIN(tga) - ADD_OSG_PLUGIN(hdr) + SET(TARGET_DEFAULT_LABEL_PREFIX "Plug image" )# + ADD_SUBDIRECTORY(rgb) + ADD_SUBDIRECTORY(bmp) + ADD_SUBDIRECTORY(dds) + ADD_SUBDIRECTORY(tga) + ADD_SUBDIRECTORY(hdr) IF(JPEG_FOUND) - SUBDIRS( jpeg ) + ADD_SUBDIRECTORY(jpeg) ENDIF(JPEG_FOUND) IF(GIFLIB_FOUND) - SUBDIRS( gif ) + ADD_SUBDIRECTORY(gif) ENDIF(GIFLIB_FOUND) IF(PNG_FOUND) - SUBDIRS( png ) + ADD_SUBDIRECTORY(png) ENDIF(PNG_FOUND) IF(TIFF_FOUND) - SUBDIRS( tiff ) + ADD_SUBDIRECTORY(tiff) ENDIF(TIFF_FOUND) ENDIF (BUILD_OSG_IMAGE_PLUGINS) IF (BUILD_OSG_3D_PLUGINS) - ADD_OSG_PLUGIN(3dc) - #ADD_OSG_PLUGIN(Inventor) - #ADD_OSG_PLUGIN(lwo osgFX) - ADD_OSG_PLUGIN(x) - ADD_OSG_PLUGIN(dw) - ADD_OSG_PLUGIN(dxf) - #ADD_OSG_PLUGIN(flt osgSim) - ADD_OSG_PLUGIN(OpenFlight osgSim) - ADD_OSG_PLUGIN(geo osgSim) - ADD_OSG_PLUGIN(obj) - #ADD_OSG_PLUGIN(pfb) - ADD_OSG_PLUGIN(pic) - ADD_OSG_PLUGIN(stl) - ADD_OSG_PLUGIN(3ds ) - ADD_OSG_PLUGIN(ac) + SET(TARGET_DEFAULT_LABEL_PREFIX "Plug 3d") + ADD_SUBDIRECTORY(3dc) + #ADD_SUBDIRECTORY(Inventor) + #ADD_SUBDIRECTORY(lwo) + ADD_SUBDIRECTORY(x) + ADD_SUBDIRECTORY(dw) + ADD_SUBDIRECTORY(dxf) + #ADD_SUBDIRECTORY(flt) + ADD_SUBDIRECTORY(OpenFlight) + ADD_SUBDIRECTORY(geo) + ADD_SUBDIRECTORY(obj) + #ADD_SUBDIRECTORY(pfb) + ADD_SUBDIRECTORY(pic) + ADD_SUBDIRECTORY(stl) + ADD_SUBDIRECTORY(3ds) + ADD_SUBDIRECTORY(ac) ENDIF (BUILD_OSG_3D_PLUGINS) IF (BUILD_OSG_OTHER_PLUGINS) - ADD_OSG_PLUGIN(logo) - ADD_OSG_PLUGIN(lws) - ADD_OSG_PLUGIN(md2) - ADD_OSG_PLUGIN(osgtgz) - #ADD_OSG_PLUGIN(quicktime) - ADD_OSG_PLUGIN(tgz) - #ADD_OSG_PLUGIN(txp) - #ADD_OSG_PLUGIN(xine) - ADD_OSG_PLUGIN(shp) + SET(TARGET_DEFAULT_LABEL_PREFIX "Plug other") + #ADD_SUBDIRECTORY(logo) + ADD_SUBDIRECTORY(lws) + ADD_SUBDIRECTORY(md2) + ADD_SUBDIRECTORY(osgtgz) + #ADD_SUBDIRECTORY(quicktime) + ADD_SUBDIRECTORY(tgz) + #ADD_SUBDIRECTORY(txp) + #ADD_SUBDIRECTORY(xine) + ADD_SUBDIRECTORY(shp) IF(FREETYPE_FOUND) - SUBDIRS( freetype ) + ADD_SUBDIRECTORY(freetype) ENDIF(FREETYPE_FOUND) IF(ZLIB_FOUND) - ADD_OSG_PLUGIN(zip ) + ADD_SUBDIRECTORY(zip) ENDIF(ZLIB_FOUND) ENDIF (BUILD_OSG_OTHER_PLUGINS) @@ -102,15 +121,18 @@ ENDIF (BUILD_OSG_OTHER_PLUGINS) #--------------------------------------------------- IF (BUILD_OSG_NET_PLUGINS) - ADD_OSG_PLUGIN(net ${OSG_SOCKET_LIBS}) + ADD_SUBDIRECTORY(net) ENDIF (BUILD_OSG_NET_PLUGINS) +#REWRITE_CMAKELIST(ADD_OSG_PLUGIN) + + ##########to get all the variables of Cmake -GET_CMAKE_PROPERTY(MYVARS VARIABLES) -FOREACH(myvar ${MYVARS}) - FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/AllVariables.txt - "${myvar} -->${${myvar}}<-\n" - ) -ENDFOREACH(myvar) +#GET_CMAKE_PROPERTY(MYVARS VARIABLES) +#FOREACH(myvar ${MYVARS}) +# FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/AllVariables.txt +# "${myvar} -->${${myvar}}<-\n" +# ) +#ENDFOREACH(myvar) diff --git a/src/osgPlugins/OpenFlight/CMakeLists.txt b/src/osgPlugins/OpenFlight/CMakeLists.txt new file mode 100644 index 000000000..9c6c6b73a --- /dev/null +++ b/src/osgPlugins/OpenFlight/CMakeLists.txt @@ -0,0 +1,39 @@ +#this file is automatically generated + +SET(TARGET_NAME OpenFlight ) +SET(TARGET_SRC +AncillaryRecords.cpp +AttrData.cpp +ControlRecords.cpp +DataInputStream.cpp +Document.cpp +GeometryRecords.cpp +LightPointRecords.cpp +PaletteRecords.cpp +Pools.cpp +PrimaryRecords.cpp +ReaderWriterATTR.cpp +ReaderWriterFLT.cpp +Record.cpp +RecordInputStream.cpp +Registry.cpp +ReservedRecords.cpp +RoadRecords.cpp +Vertex.cpp +VertexRecords.cpp +) +SET(TARGET_H +AttrData.h +DataInputStream.h +Document.h +Pools.h +Record.h +RecordInputStream.h +Registry.h +Vertex.h +opcodes.h +types.h +) +SET(TARGET_ADDED_LIBRARIES osgSim ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/ac/CMakeLists.txt b/src/osgPlugins/ac/CMakeLists.txt new file mode 100644 index 000000000..5a1a3e564 --- /dev/null +++ b/src/osgPlugins/ac/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME ac ) +SET(TARGET_SRC Exception.cpp Geode.cpp ac3d.cpp ) +SET(TARGET_H Exception.h Geode.h ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/bmp/CMakeLists.txt b/src/osgPlugins/bmp/CMakeLists.txt new file mode 100644 index 000000000..28f044335 --- /dev/null +++ b/src/osgPlugins/bmp/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME bmp ) +SET(TARGET_SRC ReaderWriterBMP.cpp ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/dds/CMakeLists.txt b/src/osgPlugins/dds/CMakeLists.txt new file mode 100644 index 000000000..8d66fc530 --- /dev/null +++ b/src/osgPlugins/dds/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME dds ) +SET(TARGET_SRC ReaderWriterDDS.cpp ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/dw/CMakeLists.txt b/src/osgPlugins/dw/CMakeLists.txt new file mode 100644 index 000000000..64b4704d3 --- /dev/null +++ b/src/osgPlugins/dw/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME dw ) +SET(TARGET_SRC ReaderWriterDW.cpp ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/dxf/CMakeLists.txt b/src/osgPlugins/dxf/CMakeLists.txt new file mode 100644 index 000000000..36b00be2e --- /dev/null +++ b/src/osgPlugins/dxf/CMakeLists.txt @@ -0,0 +1,29 @@ +#this file is automatically generated + +SET(TARGET_NAME dxf ) +SET(TARGET_SRC +ReaderWriterDXF.cpp +aci.cpp +dxfBlock.cpp +dxfEntity.cpp +dxfFile.cpp +dxfReader.cpp +dxfSection.cpp +dxfTable.cpp +scene.cpp +) +SET(TARGET_H +aci.h +codeValue.h +dxfBlock.h +dxfDataTypes.h +dxfEntity.h +dxfFile.h +dxfReader.h +dxfSection.h +dxfSectionBase.h +dxfTable.h +scene.h +) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/freetype/CMakeLists.txt b/src/osgPlugins/freetype/CMakeLists.txt index 195b9c99f..71f59d7a3 100644 --- a/src/osgPlugins/freetype/CMakeLists.txt +++ b/src/osgPlugins/freetype/CMakeLists.txt @@ -1,8 +1,15 @@ -IF(WIN32) - SET(CMAKE_SHARED_LINKER_FLAGS_DEBUG "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} /NODEFAULTLIB:MSVCRT") -ENDIF(WIN32) -INCLUDE_DIRECTORIES( ${FREETYPE_INCLUDE_DIRS} ) -#LINK_DIRECTORIES( ${FREETYPE_DIR}/lib ) -ADD_OSG_PLUGIN(freetype osgText ${FREETYPE_LIBRARY}) - - +#this file is automatically generated + + + IF(WIN32) + SET(CMAKE_SHARED_LINKER_FLAGS_DEBUG "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} /NODEFAULTLIB:MSVCRT") + ENDIF(WIN32) + INCLUDE_DIRECTORIES(${FREETYPE_INCLUDE_DIRS} ) + +SET(TARGET_NAME freetype ) +SET(TARGET_SRC FreeTypeFont.cpp FreeTypeLibrary.cpp ReaderWriterFreeType.cpp ) +SET(TARGET_H FreeTypeFont.h FreeTypeLibrary.h ) +SET(TARGET_ADDED_LIBRARIES osgText ) +SET(TARGET_EXTERNAL_LIBRARIES ${FREETYPE_LIBRARY} ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/geo/CMakeLists.txt b/src/osgPlugins/geo/CMakeLists.txt new file mode 100644 index 000000000..c134c3590 --- /dev/null +++ b/src/osgPlugins/geo/CMakeLists.txt @@ -0,0 +1,19 @@ +#this file is automatically generated + +SET(TARGET_NAME geo ) +SET(TARGET_SRC ClipRegion.cpp ReaderWriterGEO.cpp geoActions.cpp ) +SET(TARGET_H +ClipRegion.h +geoCore.h +geoFormat.h +geoTypes.h +geoUnits.h +geoVersion.h +osgGeoAction.h +osgGeoAnimation.h +osgGeoNodes.h +osgGeoStructs.h +) +SET(TARGET_ADDED_LIBRARIES osgSim ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/gif/CMakeLists.txt b/src/osgPlugins/gif/CMakeLists.txt index 92ed0d791..f5f5ae6c9 100644 --- a/src/osgPlugins/gif/CMakeLists.txt +++ b/src/osgPlugins/gif/CMakeLists.txt @@ -1,8 +1,16 @@ -INCLUDE_DIRECTORIES( ${GIFLIB_INCLUDE_DIR} ) -LINK_DIRECTORIES( ${GIFLIB_DIR}/lib ) -IF(NOT MINGW) - ADD_OSG_PLUGIN(gif ${GIFLIB_LIBRARY}) -ENDIF(NOT MINGW) -IF(MSVC) - SET_TARGET_PROPERTIES(osgdb_gif PROPERTIES LINK_FLAGS_DEBUG "/NODEFAULTLIB:MSVCRT") -ENDIF(MSVC) +#this file is automatically generated + + + INCLUDE_DIRECTORIES( ${GIFLIB_INCLUDE_DIR} ) + LINK_DIRECTORIES( ${GIFLIB_DIR}/lib ) + +SET(TARGET_NAME gif ) +SET(TARGET_SRC ReaderWriterGIF.cpp ) +SET(TARGET_EXTERNAL_LIBRARIES ${GIFLIB_LIBRARY} ) +#### end var setup ### +SETUP_PLUGIN() + +IF(MSVC) + SET_TARGET_PROPERTIES("${TARGET_DEFAULT_PREFIX}${TARGET_NAME}" PROPERTIES LINK_FLAGS_DEBUG "/NODEFAULTLIB:MSVCRT") +ENDIF(MSVC) + diff --git a/src/osgPlugins/hdr/CMakeLists.txt b/src/osgPlugins/hdr/CMakeLists.txt new file mode 100644 index 000000000..9145cb5f6 --- /dev/null +++ b/src/osgPlugins/hdr/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME hdr ) +SET(TARGET_SRC ReaderWriterHDR.cpp hdrloader.cpp ) +SET(TARGET_H hdrloader.h ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/ive/CMakeLists.txt b/src/osgPlugins/ive/CMakeLists.txt new file mode 100644 index 000000000..b675cfc83 --- /dev/null +++ b/src/osgPlugins/ive/CMakeLists.txt @@ -0,0 +1,196 @@ +#this file is automatically generated + +SET(TARGET_NAME ive ) +SET(TARGET_SRC +AlphaFunc.cpp +AnimationPath.cpp +AnimationPathCallback.cpp +AutoTransform.cpp +AzimElevationSector.cpp +AzimSector.cpp +Billboard.cpp +BlendColor.cpp +BlendFunc.cpp +BlinkSequence.cpp +Camera.cpp +CameraView.cpp +ClipNode.cpp +ClipPlane.cpp +ClusterCullingCallback.cpp +ColorMask.cpp +ConeSector.cpp +ConvexPlanarOccluder.cpp +ConvexPlanarPolygon.cpp +CoordinateSystemNode.cpp +CullFace.cpp +DOFTransform.cpp +DataInputStream.cpp +DataOutputStream.cpp +Depth.cpp +DirectionalSector.cpp +DrawArrayLengths.cpp +DrawArrays.cpp +DrawElementsUByte.cpp +DrawElementsUInt.cpp +DrawElementsUShort.cpp +Drawable.cpp +ElevationSector.cpp +EllipsoidModel.cpp +Exception.cpp +FragmentProgram.cpp +FrontFace.cpp +Geode.cpp +Geometry.cpp +Group.cpp +Image.cpp +Impostor.cpp +LOD.cpp +Light.cpp +LightModel.cpp +LightPoint.cpp +LightPointNode.cpp +LightSource.cpp +LineWidth.cpp +Material.cpp +MatrixTransform.cpp +MultiSwitch.cpp +MultiTextureControl.cpp +Node.cpp +Object.cpp +OccluderNode.cpp +PagedLOD.cpp +Point.cpp +PointSprite.cpp +PolygonMode.cpp +PolygonOffset.cpp +PositionAttitudeTransform.cpp +PrimitiveSet.cpp +Program.cpp +ProxyNode.cpp +ReaderWriterIVE.cpp +Scissor.cpp +Sequence.cpp +ShadeModel.cpp +Shader.cpp +Shape.cpp +ShapeDrawable.cpp +StateSet.cpp +Stencil.cpp +Switch.cpp +TexEnv.cpp +TexEnvCombine.cpp +TexGen.cpp +TexGenNode.cpp +TexMat.cpp +Text.cpp +Texture.cpp +Texture1D.cpp +Texture2D.cpp +Texture3D.cpp +TextureCubeMap.cpp +TextureRectangle.cpp +Transform.cpp +Uniform.cpp +VertexProgram.cpp +Viewport.cpp +VisibilityGroup.cpp +) +SET(TARGET_H +AlphaFunc.h +AnimationPath.h +AnimationPathCallback.h +AutoTransform.h +AzimElevationSector.h +AzimSector.h +Billboard.h +BlendColor.h +BlendFunc.h +BlinkSequence.h +Camera.h +CameraView.h +ClipNode.h +ClipPlane.h +ClusterCullingCallback.h +ColorMask.h +ConeSector.h +ConvexPlanarOccluder.h +ConvexPlanarPolygon.h +CoordinateSystemNode.h +CullFace.h +DOFTransform.h +DataInputStream.h +DataOutputStream.h +DataTypeSize.h +Depth.h +DirectionalSector.h +DrawArrayLengths.h +DrawArrays.h +DrawElementsUByte.h +DrawElementsUInt.h +DrawElementsUShort.h +Drawable.h +ElevationSector.h +EllipsoidModel.h +Exception.h +FragmentProgram.h +FrontFace.h +Geode.h +Geometry.h +Group.h +Image.h +Impostor.h +IveVersion.h +LOD.h +Light.h +LightModel.h +LightPoint.h +LightPointNode.h +LightSource.h +LineWidth.h +Material.h +MatrixTransform.h +MultiSwitch.h +MultiTextureControl.h +Node.h +Object.h +OccluderNode.h +PagedLOD.h +Point.h +PointSprite.h +PolygonMode.h +PolygonOffset.h +PositionAttitudeTransform.h +PrimitiveSet.h +Program.h +ProxyNode.h +ReadWrite.h +Scissor.h +Sequence.h +ShadeModel.h +Shader.h +Shape.h +ShapeDrawable.h +StateSet.h +Stencil.h +Switch.h +TexEnv.h +TexEnvCombine.h +TexGen.h +TexGenNode.h +TexMat.h +Text.h +Texture.h +Texture1D.h +Texture2D.h +Texture3D.h +TextureCubeMap.h +TextureRectangle.h +Transform.h +Uniform.h +VertexProgram.h +Viewport.h +VisibilityGroup.h +) +SET(TARGET_ADDED_LIBRARIES osgSim osgFX osgText ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/jpeg/CMakeLists.txt b/src/osgPlugins/jpeg/CMakeLists.txt index ec56c1def..22bc20bbc 100644 --- a/src/osgPlugins/jpeg/CMakeLists.txt +++ b/src/osgPlugins/jpeg/CMakeLists.txt @@ -1,7 +1,11 @@ -IF(MSVC) - SET(CMAKE_SHARED_LINKER_FLAGS_DEBUG "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} /NODEFAULTLIB:MSVCRT") -ENDIF(MSVC) -INCLUDE_DIRECTORIES( ${JPEG_INCLUDE_DIR} ) -#LINK_DIRECTORIES( ${JPEG_DIR}/lib ) -ADD_OSG_PLUGIN(jpeg ${JPEG_LIBRARY}) +#this file is automatically generated + + INCLUDE_DIRECTORIES( ${JPEG_INCLUDE_DIR} ) + LINK_DIRECTORIES( ${JPEG_DIR}/lib ) + +SET(TARGET_NAME jpeg ) +SET(TARGET_SRC ReaderWriterJPEG.cpp ) +SET(TARGET_EXTERNAL_LIBRARIES ${JPEG_LIBRARY} ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/lws/CMakeLists.txt b/src/osgPlugins/lws/CMakeLists.txt new file mode 100644 index 000000000..b8972faa0 --- /dev/null +++ b/src/osgPlugins/lws/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME lws ) +SET(TARGET_SRC ReaderWriterLWS.cpp SceneLoader.cpp ) +SET(TARGET_H SceneLoader.h ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/md2/CMakeLists.txt b/src/osgPlugins/md2/CMakeLists.txt new file mode 100644 index 000000000..536b9c0a0 --- /dev/null +++ b/src/osgPlugins/md2/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME md2 ) +SET(TARGET_SRC ReaderWriterMD2.cpp ) +SET(TARGET_H anorms.h ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/net/CMakeLists.txt b/src/osgPlugins/net/CMakeLists.txt new file mode 100644 index 000000000..e7563392f --- /dev/null +++ b/src/osgPlugins/net/CMakeLists.txt @@ -0,0 +1,8 @@ +#this file is automatically generated + +SET(TARGET_NAME net ) +SET(TARGET_SRC ReaderWriterNET.cpp sockinet.cpp sockstream.cpp ) +SET(TARGET_H sockinet.h sockstream.h ) +SET(TARGET_EXTERNAL_LIBRARIES ${OSG_SOCKET_LIBS} ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/obj/CMakeLists.txt b/src/osgPlugins/obj/CMakeLists.txt new file mode 100644 index 000000000..fb867651c --- /dev/null +++ b/src/osgPlugins/obj/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME obj ) +SET(TARGET_SRC ReaderWriterOBJ.cpp obj.cpp ) +SET(TARGET_H obj.h ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/osg/CMakeLists.txt b/src/osgPlugins/osg/CMakeLists.txt new file mode 100644 index 000000000..824d9c3e6 --- /dev/null +++ b/src/osgPlugins/osg/CMakeLists.txt @@ -0,0 +1,85 @@ +#this file is automatically generated + +SET(TARGET_NAME osg ) +SET(TARGET_SRC +AlphaFunc.cpp +AnimationPath.cpp +AutoTransform.cpp +Billboard.cpp +BlendColor.cpp +BlendFunc.cpp +Camera.cpp +CameraView.cpp +ClearNode.cpp +ClipNode.cpp +ClipPlane.cpp +ClusterCullingCallback.cpp +ColorMask.cpp +ColorMatrix.cpp +ConvexPlanarOccluder.cpp +CoordinateSystemNode.cpp +CullFace.cpp +Depth.cpp +Drawable.cpp +EllipsoidModel.cpp +Fog.cpp +FragmentProgram.cpp +FrontFace.cpp +Geode.cpp +Geometry.cpp +Group.cpp +Image.cpp +LOD.cpp +Light.cpp +LightModel.cpp +LightSource.cpp +LineStipple.cpp +LineWidth.cpp +Material.cpp +Matrix.cpp +MatrixTransform.cpp +Node.cpp +NodeCallback.cpp +Object.cpp +OccluderNode.cpp +PagedLOD.cpp +Point.cpp +PointSprite.cpp +PolygonMode.cpp +PolygonOffset.cpp +PositionAttitudeTransform.cpp +Program.cpp +Projection.cpp +ProxyNode.cpp +ReaderWriterOSG.cpp +Scissor.cpp +Sequence.cpp +ShadeModel.cpp +Shader.cpp +Shape.cpp +ShapeDrawable.cpp +StateSet.cpp +Stencil.cpp +Switch.cpp +TessellationHints.cpp +TexEnv.cpp +TexEnvCombine.cpp +TexEnvFilter.cpp +TexGen.cpp +TexGenNode.cpp +TexMat.cpp +Texture.cpp +Texture1D.cpp +Texture2D.cpp +Texture3D.cpp +TextureCubeMap.cpp +TextureRectangle.cpp +Transform.cpp +Uniform.cpp +VertexProgram.cpp +Viewport.cpp +) +SET(TARGET_H Matrix.h ) +SET(TARGET_ADDED_LIBRARIES osgSim osgFX osgText ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/osgFX/CMakeLists.txt b/src/osgPlugins/osgFX/CMakeLists.txt new file mode 100644 index 000000000..fda22aefa --- /dev/null +++ b/src/osgPlugins/osgFX/CMakeLists.txt @@ -0,0 +1,15 @@ +#this file is automatically generated + +SET(TARGET_NAME osgFX ) +SET(TARGET_SRC +IO_AnisotropicLighting.cpp +IO_BumpMapping.cpp +IO_Cartoon.cpp +IO_Effect.cpp +IO_MultiTextureControl.cpp +IO_Scribe.cpp +IO_SpecularHighlights.cpp +) +SET(TARGET_ADDED_LIBRARIES osgFX ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/osgParticle/CMakeLists.txt b/src/osgPlugins/osgParticle/CMakeLists.txt new file mode 100644 index 000000000..51a8ba82b --- /dev/null +++ b/src/osgPlugins/osgParticle/CMakeLists.txt @@ -0,0 +1,38 @@ +#this file is automatically generated + +SET(TARGET_NAME osgParticle ) +SET(TARGET_SRC +IO_AccelOperator.cpp +IO_AngularAccelOperator.cpp +IO_BoxPlacer.cpp +IO_CenteredPlacer.cpp +IO_ConnectedParticleSystem.cpp +IO_ConstantRateCounter.cpp +IO_Emitter.cpp +IO_ExplosionDebrisEffect.cpp +IO_ExplosionEffect.cpp +IO_FireEffect.cpp +IO_FluidFrictionOperator.cpp +IO_ForceOperator.cpp +IO_LinearInterpolator.cpp +IO_ModularEmitter.cpp +IO_ModularProgram.cpp +IO_MultiSegmentPlacer.cpp +IO_Particle.cpp +IO_ParticleEffect.cpp +IO_ParticleProcessor.cpp +IO_ParticleSystem.cpp +IO_ParticleSystemUpdater.cpp +IO_PointPlacer.cpp +IO_Program.cpp +IO_RadialShooter.cpp +IO_RandomRateCounter.cpp +IO_SectorPlacer.cpp +IO_SegmentPlacer.cpp +IO_SmokeEffect.cpp +IO_SmokeTrailEffect.cpp +IO_VariableRateCounter.cpp +) +SET(TARGET_ADDED_LIBRARIES osgParticle ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/osgSim/CMakeLists.txt b/src/osgPlugins/osgSim/CMakeLists.txt new file mode 100644 index 000000000..29a5ad0d6 --- /dev/null +++ b/src/osgPlugins/osgSim/CMakeLists.txt @@ -0,0 +1,17 @@ +#this file is automatically generated + +SET(TARGET_NAME osgSim ) +SET(TARGET_SRC +IO_BlinkSequence.cpp +IO_DOFTransform.cpp +IO_Impostor.cpp +IO_LightPoint.cpp +IO_LightPointNode.cpp +IO_MultiSwitch.cpp +IO_Sector.cpp +IO_VisibilityGroup.cpp +) +SET(TARGET_H IO_LightPoint.h ) +SET(TARGET_ADDED_LIBRARIES osgSim ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/osgText/CMakeLists.txt b/src/osgPlugins/osgText/CMakeLists.txt new file mode 100644 index 000000000..87950ae9f --- /dev/null +++ b/src/osgPlugins/osgText/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osgText ) +SET(TARGET_SRC IO_Text.cpp ) +SET(TARGET_ADDED_LIBRARIES osgText ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/osga/CMakeLists.txt b/src/osgPlugins/osga/CMakeLists.txt new file mode 100644 index 000000000..58af599d0 --- /dev/null +++ b/src/osgPlugins/osga/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME osga ) +SET(TARGET_SRC OSGA_Archive.cpp ReaderWriterOSGA.cpp ) +SET(TARGET_H OSGA_Archive.h ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/osgtgz/CMakeLists.txt b/src/osgPlugins/osgtgz/CMakeLists.txt new file mode 100644 index 000000000..93835626b --- /dev/null +++ b/src/osgPlugins/osgtgz/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME osgtgz ) +SET(TARGET_SRC ReaderWriterOSGTGZ.cpp ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/pic/CMakeLists.txt b/src/osgPlugins/pic/CMakeLists.txt new file mode 100644 index 000000000..282174b94 --- /dev/null +++ b/src/osgPlugins/pic/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME pic ) +SET(TARGET_SRC ReaderWriterPIC.cpp ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/png/CMakeLists.txt b/src/osgPlugins/png/CMakeLists.txt index cefd6bf1f..2a09c7f07 100644 --- a/src/osgPlugins/png/CMakeLists.txt +++ b/src/osgPlugins/png/CMakeLists.txt @@ -1,6 +1,16 @@ - -INCLUDE_DIRECTORIES( ${PNG_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR} ) -ADD_OSG_PLUGIN( png ${PNG_LIBRARY} ${ZLIB_LIBRARY}) -IF(MSVC) - SET_TARGET_PROPERTIES(osgdb_png PROPERTIES LINK_FLAGS_DEBUG "/NODEFAULTLIB:MSVCRT") -ENDIF(MSVC) +#this file is automatically generated + + +INCLUDE_DIRECTORIES( ${PNG_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR} ) +LINK_DIRECTORIES( ${ZLIB_DIR}/lib ${PNG_DIR}/lib ) + +SET(TARGET_NAME png ) +SET(TARGET_SRC ReaderWriterPNG.cpp ) +SET(TARGET_EXTERNAL_LIBRARIES ${PNG_LIBRARY} ${ZLIB_LIBRARY} ) +#### end var setup ### +SETUP_PLUGIN() + +IF(MSVC) + SET_TARGET_PROPERTIES("${TARGET_DEFAULT_PREFIX}${TARGET_NAME}" PROPERTIES LINK_FLAGS_DEBUG "/NODEFAULTLIB:MSVCRT") +ENDIF(MSVC) + diff --git a/src/osgPlugins/rgb/CMakeLists.txt b/src/osgPlugins/rgb/CMakeLists.txt new file mode 100644 index 000000000..abff95003 --- /dev/null +++ b/src/osgPlugins/rgb/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME rgb ) +SET(TARGET_SRC ReaderWriterRGB.cpp ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/rot/CMakeLists.txt b/src/osgPlugins/rot/CMakeLists.txt new file mode 100644 index 000000000..2ff9106dd --- /dev/null +++ b/src/osgPlugins/rot/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME rot ) +SET(TARGET_SRC ReaderWriterROT.cpp ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/scale/CMakeLists.txt b/src/osgPlugins/scale/CMakeLists.txt new file mode 100644 index 000000000..fd9c0f194 --- /dev/null +++ b/src/osgPlugins/scale/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME scale ) +SET(TARGET_SRC ReaderWriterSCALE.cpp ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/shp/CMakeLists.txt b/src/osgPlugins/shp/CMakeLists.txt new file mode 100644 index 000000000..b2f64ff20 --- /dev/null +++ b/src/osgPlugins/shp/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME shp ) +SET(TARGET_SRC ESRIShape.cpp ESRIShapeParser.cpp ESRIShapeReaderWriter.cpp ) +SET(TARGET_H ESRIShape.h ESRIShapeParser.h ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/stl/CMakeLists.txt b/src/osgPlugins/stl/CMakeLists.txt new file mode 100644 index 000000000..6b2cd057f --- /dev/null +++ b/src/osgPlugins/stl/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME stl ) +SET(TARGET_SRC ReaderWriterSTL.cpp ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/tga/CMakeLists.txt b/src/osgPlugins/tga/CMakeLists.txt new file mode 100644 index 000000000..50d9366ff --- /dev/null +++ b/src/osgPlugins/tga/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME tga ) +SET(TARGET_SRC ReaderWriterTGA.cpp ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/tgz/CMakeLists.txt b/src/osgPlugins/tgz/CMakeLists.txt new file mode 100644 index 000000000..a0f167979 --- /dev/null +++ b/src/osgPlugins/tgz/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME tgz ) +SET(TARGET_SRC ReaderWriterTGZ.cpp ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/tiff/CMakeLists.txt b/src/osgPlugins/tiff/CMakeLists.txt index 0861c704b..1ef746797 100644 --- a/src/osgPlugins/tiff/CMakeLists.txt +++ b/src/osgPlugins/tiff/CMakeLists.txt @@ -1,8 +1,11 @@ -IF(NOT MINGW) -INCLUDE_DIRECTORIES( ${TIFF_INCLUDE_DIR} ) -#LINK_DIRECTORIES( ${TIFF_DIR}/lib ) -ADD_OSG_PLUGIN(tiff ${TIFF_LIBRARY} ${JPEG_LIBRARY} ${ZLIB_LIBRARY}) -IF(MSVC) - SET_TARGET_PROPERTIES(osgdb_tiff PROPERTIES LINK_FLAGS_DEBUG "/NODEFAULTLIB:MSVCRT") -ENDIF(MSVC) -ENDIF(NOT MINGW) +#this file is automatically generated + + + INCLUDE_DIRECTORIES( ${TIFF_INCLUDE_DIR} ) + LINK_DIRECTORIES( ${TIFF_DIR}/lib ) + +SET(TARGET_NAME tiff ) +SET(TARGET_SRC ReaderWriterTIFF.cpp ) +SET(TARGET_EXTERNAL_LIBRARIES ${TIFF_LIBRARY} ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/trans/CMakeLists.txt b/src/osgPlugins/trans/CMakeLists.txt new file mode 100644 index 000000000..5d932a4e1 --- /dev/null +++ b/src/osgPlugins/trans/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME trans ) +SET(TARGET_SRC ReaderWriterTRANS.cpp ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/x/CMakeLists.txt b/src/osgPlugins/x/CMakeLists.txt new file mode 100644 index 000000000..86f0ceee4 --- /dev/null +++ b/src/osgPlugins/x/CMakeLists.txt @@ -0,0 +1,7 @@ +#this file is automatically generated + +SET(TARGET_NAME x ) +SET(TARGET_SRC ReaderWriterDirectX.cpp directx.cpp mesh.cpp types.cpp ) +SET(TARGET_H directx.h mesh.h types.h ) +#### end var setup ### +SETUP_PLUGIN() diff --git a/src/osgPlugins/zip/CMakeLists.txt b/src/osgPlugins/zip/CMakeLists.txt new file mode 100644 index 000000000..04e5a3273 --- /dev/null +++ b/src/osgPlugins/zip/CMakeLists.txt @@ -0,0 +1,6 @@ +#this file is automatically generated + +SET(TARGET_NAME zip ) +SET(TARGET_SRC ReaderWriterZIP.cpp ) +#### end var setup ### +SETUP_PLUGIN()