You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(76) |
Jun
(1) |
Jul
|
Aug
(13) |
Sep
|
Oct
|
Nov
|
Dec
(9) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(53) |
Feb
(31) |
Mar
|
Apr
(3) |
May
|
Jun
(4) |
Jul
(2) |
Aug
|
Sep
|
Oct
(3) |
Nov
(2) |
Dec
(1) |
| 2004 |
Jan
(5) |
Feb
(52) |
Mar
(23) |
Apr
(40) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
(2) |
Nov
(5) |
Dec
|
| 2005 |
Jan
|
Feb
(5) |
Mar
|
Apr
(8) |
May
(6) |
Jun
(5) |
Jul
|
Aug
(2) |
Sep
|
Oct
(3) |
Nov
|
Dec
(4) |
| 2006 |
Jan
(2) |
Feb
|
Mar
(2) |
Apr
(20) |
May
(2) |
Jun
(31) |
Jul
(30) |
Aug
(20) |
Sep
(1) |
Oct
|
Nov
(14) |
Dec
|
| 2007 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
(37) |
Jul
(8) |
Aug
(10) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2009 |
Jan
|
Feb
|
Mar
(4) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
| 2010 |
Jan
|
Feb
|
Mar
(15) |
Apr
(4) |
May
(4) |
Jun
|
Jul
(1) |
Aug
|
Sep
(11) |
Oct
(4) |
Nov
|
Dec
|
| 2011 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
(9) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(18) |
Aug
(3) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
|
From: <pat...@us...> - 2012-09-05 13:32:54
|
Revision: 710
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=710&view=rev
Author: patrickh
Date: 2012-09-05 13:32:44 +0000 (Wed, 05 Sep 2012)
Log Message:
-----------
MFT [r709]: Fix .fpc content on Windows.
Submitted by Doug McCorkle
Revision Links:
--------------
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=709&view=rev
Modified Paths:
--------------
branches/1.2/CMakeLists.txt
Modified: branches/1.2/CMakeLists.txt
===================================================================
--- branches/1.2/CMakeLists.txt 2012-09-05 13:32:00 UTC (rev 709)
+++ branches/1.2/CMakeLists.txt 2012-09-05 13:32:44 UTC (rev 710)
@@ -56,7 +56,7 @@
set(lib_path_flag "-L")
elseif(MSVC)
set(include_path_flag "/I")
- set(lib_path_flag "/L")
+ set(lib_path_flag "/libpath:")
else()
message(FATAL_ERROR "Compiler not recognized - can't generate values for Flagpoll file")
endif()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pat...@us...> - 2012-09-05 13:32:11
|
Revision: 709
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=709&view=rev
Author: patrickh
Date: 2012-09-05 13:32:00 +0000 (Wed, 05 Sep 2012)
Log Message:
-----------
Fix .fpc content on Windows.
Submitted by Doug McCorkle
Modified Paths:
--------------
trunk/CMakeLists.txt
Modified: trunk/CMakeLists.txt
===================================================================
--- trunk/CMakeLists.txt 2012-08-12 18:30:22 UTC (rev 708)
+++ trunk/CMakeLists.txt 2012-09-05 13:32:00 UTC (rev 709)
@@ -56,7 +56,7 @@
set(lib_path_flag "-L")
elseif(MSVC)
set(include_path_flag "/I")
- set(lib_path_flag "/L")
+ set(lib_path_flag "/libpath:")
else()
message(FATAL_ERROR "Compiler not recognized - can't generate values for Flagpoll file")
endif()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pat...@us...> - 2012-08-12 18:30:30
|
Revision: 708
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=708&view=rev
Author: patrickh
Date: 2012-08-12 18:30:22 +0000 (Sun, 12 Aug 2012)
Log Message:
-----------
Merged the following changes from the trunk:
r704: Change hard tabs to four space indentation.
r705: From the submission:
* Adds helper files to the CMake build to make it easier to
find in other CMake projects
* Adds versioned library files back to the build
* Places the flagpoll file in the lib directory rather than
the share directory
r706: Fix flagpoll file creation when using Clang.
r707: Fix flagpoll file installation on Windows.
Revision Links:
--------------
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=704&view=rev
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=705&view=rev
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=706&view=rev
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=707&view=rev
Modified Paths:
--------------
branches/1.2/CMakeLists.txt
branches/1.2/cppdom/CMakeLists.txt
branches/1.2/test/CMakeLists.txt
Added Paths:
-----------
branches/1.2/Usecppdom.cmake.in
branches/1.2/cmake/Findcppdom.cmake
branches/1.2/cppdomBuildTreeSettings.cmake.in
branches/1.2/cppdomConfig.cmake.in
branches/1.2/cppdomConfigVersion.cmake.in
Removed Paths:
-------------
branches/1.2/cmake/FindCPPDOM.cmake
Modified: branches/1.2/CMakeLists.txt
===================================================================
--- branches/1.2/CMakeLists.txt 2012-08-12 18:27:03 UTC (rev 707)
+++ branches/1.2/CMakeLists.txt 2012-08-12 18:30:22 UTC (rev 708)
@@ -12,7 +12,7 @@
set(CPACK_PACKAGE_VERSION_MINOR "2")
set(CPACK_PACKAGE_VERSION_PATCH "0")
set(CPACK_PACKAGE_VERSION
- "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
+ "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
set(VERSION_UNDERSCORES "${CPACK_PACKAGE_VERSION_MAJOR}_${CPACK_PACKAGE_VERSION_MINOR}_${CPACK_PACKAGE_VERSION_PATCH}")
###
@@ -21,60 +21,66 @@
# TODO this is not ideal/complete
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
- set(arch "x86_64")
- set(ARCH_DIR lib64)
+ set(arch "x86_64")
+ set(ARCH_DIR lib64)
else()
- set(arch "x86")
- set(ARCH_DIR lib)
+ set(arch "x86")
+ set(ARCH_DIR lib)
endif()
# Define directories
set(BIN_DIR bin)
-set(FLAGPOLL_INFO_DIR share/flagpoll)
+
if(WIN32)
- set(LIB_DIR bin)
- set(INCLUDE_DIR include)
+ set(LIB_DIR bin)
+ set(INCLUDE_DIR include)
else()
- set(LIB_DIR ${ARCH_DIR})
- set(INCLUDE_DIR include/cppdom-${CPACK_PACKAGE_VERSION})
+ set(LIB_DIR ${ARCH_DIR})
+ set(INCLUDE_DIR include/cppdom-${CPACK_PACKAGE_VERSION})
endif()
+set(FLAGPOLL_INFO_DIR ${ARCH_DIR}/flagpoll)
+
# Create flagpoll file
set(provides "cppdom")
set(version "${CPACK_PACKAGE_VERSION}")
set(prefix "\${fp_file_cwd}/../..")
set(exec_prefix "\${prefix}")
set(includedir "\${fp_file_cwd}/../../${INCLUDE_DIR}")
-set(libdir "\${fp_file_cwd}/../../${LIB_DIR}")
+set(libdir "\${fp_file_cwd}/../../${ARCH_DIR}")
-if(CMAKE_COMPILER_IS_GNUCXX)
- set(cppdom_cxxflags "-Wno-deprecated")
- set(include_path_flag "-I")
- set(cppdom_libs "-lcppdom-${VERSION_UNDERSCORES}")
- set(lib_path_flag "-L")
+if(CMAKE_COMPILER_IS_GNUCXX OR ( CMAKE_CXX_COMPILER_ID STREQUAL "Clang" ) )
+ set(cppdom_cxxflags "-Wno-deprecated")
+ set(include_path_flag "-I")
+ set(cppdom_libs "-lcppdom-${VERSION_UNDERSCORES}")
+ set(lib_path_flag "-L")
elseif(MSVC)
- set(include_path_flag "/I")
- set(lib_path_flag "/L")
+ set(include_path_flag "/I")
+ set(lib_path_flag "/L")
else()
- message(FATAL_ERROR "Compiler not recognized - can't generate values for Flagpoll file")
+ message(FATAL_ERROR "Compiler not recognized - can't generate values for Flagpoll file")
endif()
configure_file(cppdom.fpc.in "${CMAKE_CURRENT_BINARY_DIR}/cppdom.fpc" @ONLY)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/cppdom.fpc"
- DESTINATION ${FLAGPOLL_INFO_DIR}
- COMPONENT Development)
+ DESTINATION ${FLAGPOLL_INFO_DIR}
+ COMPONENT Development)
install(FILES cppdom-config
- DESTINATION ${BIN_DIR}
- COMPONENT Development)
+ DESTINATION ${BIN_DIR}
+ COMPONENT Development)
###
# Perform build configuration of dependencies
###
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
+
include(CTest)
-find_package(Boost)
+option( BUILD_SPIRIT_PARSER "Set to ON to build the SpiritParser based on the Boost Spirit library." OFF )
+if(BUILD_SPIRIT_PARSER)
+ find_package(Boost)
+endif(BUILD_SPIRIT_PARSER)
###
# Build the project
@@ -91,12 +97,12 @@
# Choose desired package generators
if(APPLE)
- set(CPACK_GENERATOR DragNDrop)
- set(CPACK_SOURCE_GENERATOR ZIP)
+ set(CPACK_GENERATOR DragNDrop)
+ set(CPACK_SOURCE_GENERATOR ZIP)
elseif(WIN32)
- set(CPACK_SOURCE_GENERATOR ZIP)
+ set(CPACK_SOURCE_GENERATOR ZIP)
else()
- set(CPACK_SOURCE_GENERATOR TARGZ)
+ set(CPACK_SOURCE_GENERATOR TARGZ)
endif()
# Include the packaging system now that we have it all set up
@@ -105,3 +111,43 @@
###
# End Packaging
###
+
+# Install the CMake find script for cppdom
+install( FILES "cmake/Findcppdom.cmake"
+ DESTINATION "share/${CMAKE_PROJECT_NAME}/extra"
+ COMPONENT Development )
+
+#
+# Create and install all of the auto find tools
+# =============================================
+
+# Add all targets to the build-tree export set
+export(TARGETS cppdom
+ FILE "${PROJECT_BINARY_DIR}/${ARCH_DIR}/cppdomLibraryDepends.cmake")
+
+# Export the package for use from the build-tree
+# (this registers the build-tree with a global CMake-registry)
+export(PACKAGE cppdom)
+
+# Create a cppdomBuildTreeSettings.cmake file for the use from the build tree
+configure_file(cppdomBuildTreeSettings.cmake.in
+ "${PROJECT_BINARY_DIR}/${ARCH_DIR}/cppdomBuildTreeSettings.cmake" @ONLY)
+
+configure_file(cppdomConfigVersion.cmake.in
+ "${PROJECT_BINARY_DIR}/${ARCH_DIR}/cppdomConfigVersion.cmake" @ONLY)
+configure_file(Usecppdom.cmake.in
+ "${PROJECT_BINARY_DIR}/${ARCH_DIR}/Usecppdom.cmake" @ONLY)
+
+# Install the export set for use with the install-tree
+install(EXPORT cppdom-targets DESTINATION ${ARCH_DIR})
+
+include( CMakePackageConfigHelpers )
+configure_package_config_file(
+ cppdomConfig.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/${ARCH_DIR}/cppdomConfig.cmake
+ INSTALL_DESTINATION ${ARCH_DIR}
+ PATH_VARS INCLUDE_DIR )
+
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${ARCH_DIR}/cppdomConfig.cmake
+ ${CMAKE_CURRENT_BINARY_DIR}/${ARCH_DIR}/cppdomConfigVersion.cmake
+ ${CMAKE_CURRENT_BINARY_DIR}/${ARCH_DIR}/Usecppdom.cmake
+ DESTINATION ${ARCH_DIR} )
Copied: branches/1.2/Usecppdom.cmake.in (from rev 707, trunk/Usecppdom.cmake.in)
===================================================================
--- branches/1.2/Usecppdom.cmake.in (rev 0)
+++ branches/1.2/Usecppdom.cmake.in 2012-08-12 18:30:22 UTC (rev 708)
@@ -0,0 +1,50 @@
+#
+# This module is provided as cppdom_USE_FILE by cppdomConfig.cmake. It can
+# be INCLUDEd in a project to load the needed compiler and linker
+# settings to use cppdom.
+#
+
+IF(NOT cppdom_USE_FILE_INCLUDED)
+ SET(cppdom_USE_FILE_INCLUDED 1)
+
+ # Update CMAKE_MODULE_PATH so includes work.
+ #SET (CMAKE_MODULE_PATH
+ # ${CMAKE_MODULE_PATH}
+ # ${cppdom_CMAKE_DIR})
+
+ # Add compiler flags needed to use cppdom.
+ #SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${cppdom_REQUIRED_C_FLAGS}")
+ #SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${cppdom_REQUIRED_CXX_FLAGS}")
+ #SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${cppdom_REQUIRED_EXE_LINKER_FLAGS}")
+ #SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${cppdom_REQUIRED_SHARED_LINKER_FLAGS}")
+ #SET(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${cppdom_REQUIRED_MODULE_LINKER_FLAGS}")
+
+ # Add include directories needed to use cppdom.
+ INCLUDE_DIRECTORIES(${cppdom_INCLUDE_DIRS})
+
+ENDIF(NOT cppdom_USE_FILE_INCLUDED)
+#
+# This module is provided as cppdom_USE_FILE by cppdomConfig.cmake. It can
+# be INCLUDEd in a project to load the needed compiler and linker
+# settings to use cppdom.
+#
+
+IF(NOT cppdom_USE_FILE_INCLUDED)
+ SET(cppdom_USE_FILE_INCLUDED 1)
+
+ # Update CMAKE_MODULE_PATH so includes work.
+ #SET (CMAKE_MODULE_PATH
+ # ${CMAKE_MODULE_PATH}
+ # ${cppdom_CMAKE_DIR})
+
+ # Add compiler flags needed to use cppdom.
+ #SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${cppdom_REQUIRED_C_FLAGS}")
+ #SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${cppdom_REQUIRED_CXX_FLAGS}")
+ #SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${cppdom_REQUIRED_EXE_LINKER_FLAGS}")
+ #SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${cppdom_REQUIRED_SHARED_LINKER_FLAGS}")
+ #SET(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${cppdom_REQUIRED_MODULE_LINKER_FLAGS}")
+
+ # Add include directories needed to use cppdom.
+ INCLUDE_DIRECTORIES(${cppdom_INCLUDE_DIRS})
+
+ENDIF(NOT cppdom_USE_FILE_INCLUDED)
Deleted: branches/1.2/cmake/FindCPPDOM.cmake
===================================================================
--- branches/1.2/cmake/FindCPPDOM.cmake 2012-08-12 18:27:03 UTC (rev 707)
+++ branches/1.2/cmake/FindCPPDOM.cmake 2012-08-12 18:30:22 UTC (rev 708)
@@ -1,176 +0,0 @@
-# - try to find CPPDOM library
-# Optionally uses Flagpoll and FindFlagpoll.cmake
-#
-# CPPDOM_LIBRARY_DIR, library search path
-# CPPDOM_INCLUDE_DIR, include search path
-# CPPDOM_LIBRARY, the library to link against
-# CPPDOM_CXX_FLAGS
-# CPPDOM_FOUND, If false, do not try to use this library.
-#
-# Useful configuration variables you might want to add to your cache:
-# CPPDOM_ROOT_DIR - A directory prefix to search
-# (a path that contains include/ as a subdirectory)
-# CPPDOM_ADDITIONAL_VERSIONS - Additional versions (outside of 0.7.8 to 1.0.0)
-# to use when constructing search names and paths
-#
-# This script will use Flagpoll, if found, to provide hints to the location
-# of this library, but does not use the compiler flags returned by Flagpoll
-# directly.
-#
-# VR Juggler requires this package, so this Find script takes that into
-# account when determining where to search for the desired files.
-# The VJ_BASE_DIR environment variable is searched (preferentially)
-# when searching for this package, so most sane VR Juggler build environments
-# should "just work." Note that you need to manually re-run CMake if you
-# change this environment variable, because it cannot auto-detect this change
-# and trigger an automatic re-run.
-#
-# Original Author:
-# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
-# http://academic.cleardefinition.com
-# Iowa State University HCI Graduate Program/VRAC
-#
-# Copyright Iowa State University 2009-2010.
-# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or copy at
-# http://www.boost.org/LICENSE_1_0.txt)
-
-set(_HUMAN "cppdom")
-set(_HEADER cppdom/cppdom.h)
-set(_FP_PKG_NAME cppdom)
-
-set(CPPDOM_VERSIONS
- ${CPPDOM_ADDITIONAL_VERSIONS}
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 0.7.10
- 0.7.9
- 0.7.8)
-set(CPPDOM_DIRS)
-set(CPPDOM_RELEASE_LIB_NAMES)
-set(CPPDOM_DEBUG_LIB_NAMES)
-foreach(_version ${CPPDOM_VERSIONS})
- string(REGEX REPLACE "[-\\.]" "_" _versionclean ${_version})
- list(APPEND CPPDOM_DIRS cppdom-${_version})
- list(APPEND CPPDOM_HEADER_DIRS include/cppdom-${_version})
- list(APPEND CPPDOM_RELEASE_LIB_NAMES cppdom-${_versionclean})
- list(APPEND CPPDOM_DEBUG_LIB_NAMES cppdom_d-${_versionclean})
-endforeach()
-
-include(SelectLibraryConfigurations)
-include(CreateImportedTarget)
-include(CleanLibraryList)
-include(CleanDirectoryList)
-
-if(CPPDOM_INCLUDE_DIRS AND CPPDOM_LIBRARIES)
- # in cache already
- set(CPPDOM_FIND_QUIETLY TRUE)
-endif()
-
-# Try flagpoll.
-find_package(Flagpoll QUIET)
-
-if(FLAGPOLL)
- flagpoll_get_include_dirs(${_FP_PKG_NAME} NO_DEPS)
- flagpoll_get_library_dirs(${_FP_PKG_NAME} NO_DEPS)
- flagpoll_get_library_names(${_FP_PKG_NAME} NO_DEPS)
-endif()
-
-set(CPPDOM_ROOT_DIR
- "${CPPDOM_ROOT_DIR}"
- CACHE
- PATH
- "Root directory to search for CPPDOM")
-if(DEFINED VRJUGGLER22_ROOT_DIR)
- mark_as_advanced(CPPDOM_ROOT_DIR)
-endif()
-if(NOT CPPDOM_ROOT_DIR)
- if(VRJUGGLER22_ROOT_DIR)
- set(CPPDOM_ROOT_DIR "${VRJUGGLER22_ROOT_DIR}")
- elseif(VRJUGGLER30_ROOT_DIR)
- set(CPPDOM_ROOT_DIR "${VRJUGGLER30_ROOT_DIR}")
- endif()
-endif()
-
-set(_ROOT_DIR "${CPPDOM_ROOT_DIR}")
-
-find_path(CPPDOM_INCLUDE_DIR
- ${_HEADER}
- HINTS
- ${_ROOT_DIR}
- ${${_FP_PKG_NAME}_FLAGPOLL_INCLUDE_DIRS}
- PATHS
- PATH_SUFFIXES
- ${CPPDOM_DIRS}
- ${CPPDOM_HEADER_DIRS}
- include
- DOC
- "Path to ${_HUMAN} includes root")
-
-find_library(CPPDOM_LIBRARY_RELEASE
- NAMES
- ${CPPDOM_RELEASE_LIB_NAMES}
- ${${_FP_PKG_NAME}_FLAGPOLL_LIBRARY_NAMES}
- HINTS
- ${_ROOT_DIR}
- ${${_FP_PKG_NAME}_FLAGPOLL_LIBRARY_DIRS}
- PATH_SUFFIXES
- ${_VRJ_LIBSUFFIXES}
- DOC
- "${_HUMAN} library full path")
-
-find_library(CPPDOM_LIBRARY_DEBUG
- NAMES
- ${CPPDOM_DEBUG_LIB_NAMES}
- HINTS
- ${_ROOT_DIR}
- ${${_FP_PKG_NAME}_FLAGPOLL_LIBRARY_DIRS}
- PATH_SUFFIXES
- ${_VRJ_LIBDSUFFIXES}
- DOC
- "${_HUMAN} debug library full path")
-
-# Fallback to same library name but in the debug folder
-if(NOT CPPDOM_LIBRARY_DEBUG)
- find_library(CPPDOM_LIBRARY_DEBUG
- NAMES
- ${CPPDOM_LIB_NAMES}
- HINTS
- ${CPPDOM_INCLUDE_DIR}/../
- ${${_FP_PKG_NAME}_FLAGPOLL_LIBRARY_DIRS}
- PATH_SUFFIXES
- ${_VRJ_LIBDSUFFIXES_ONLY}
- NO_DEFAULT_PATH
- DOC
- "${_HUMAN} debug library full path")
-endif()
-
-if(CPPDOM_LIBRARY_RELEASE OR CPPDOM_LIBRARY_DEBUG)
- select_library_configurations(CPPDOM)
-endif()
-
-# handle the QUIETLY and REQUIRED arguments and set xxx_FOUND to TRUE if
-# all listed variables are TRUE
-include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(CPPDOM
- DEFAULT_MSG
- CPPDOM_LIBRARY
- CPPDOM_INCLUDE_DIR)
-
-if(CPPDOM_FOUND)
- set(CPPDOM_INCLUDE_DIRS ${CPPDOM_INCLUDE_DIR})
- if(MSVC)
- set(CPPDOM_CXX_FLAGS "/wd4290")
- endif()
-
- mark_as_advanced(CPPDOM_ROOT_DIR)
-endif()
-
-mark_as_advanced(CPPDOM_LIBRARY_RELEASE
- CPPDOM_LIBRARY_DEBUG
- CPPDOM_INCLUDE_DIR)
Copied: branches/1.2/cmake/Findcppdom.cmake (from rev 707, trunk/cmake/Findcppdom.cmake)
===================================================================
--- branches/1.2/cmake/Findcppdom.cmake (rev 0)
+++ branches/1.2/cmake/Findcppdom.cmake 2012-08-12 18:30:22 UTC (rev 708)
@@ -0,0 +1,45 @@
+# - Find a cppdom installation or build tree.
+# The following variables are set if cppdom is found. If cppdom is not
+# found, cppdom_FOUND is set to false.
+# cppdom_FOUND - Set to true when cppdom is found.
+# cppdom_USE_FILE - CMake file to use cppdom.
+# cppdom_MAJOR_VERSION - The cppdom major version number.
+# cppdom_MINOR_VERSION - The cppdom minor version number
+# (odd non-release).
+# cppdom_BUILD_VERSION - The cppdom patch level
+# (meaningless for odd minor).
+# cppdom_INCLUDE_DIRS - Include directories for cppdom
+# cppdom_LIBRARY_DIRS - Link directories for cppdom libraries
+
+# The following cache entries must be set by the user to locate cppdom:
+# cppdom_DIR - The directory containing cppdomConfig.cmake.
+# This is either the root of the build tree,
+# or the lib directory. This is the
+# only cache entry.
+
+
+# Assume not found.
+SET(cppdom_FOUND 0)
+
+# Construct consitent error messages for use below.
+SET(cppdom_DIR_DESCRIPTION "directory containing cppdomConfig.cmake. This is either the root of the build tree, or PREFIX/lib for an installation.")
+SET(cppdom_DIR_MESSAGE "cppdom not found. Set the cppdom_DIR cmake cache entry to the ${cppdom_DIR_DESCRIPTION}")
+
+# Use the Config mode of the find_package() command to find cppdomConfig.
+# If this succeeds (possibly because cppdom_DIR is already set), the
+# command will have already loaded cppdomConfig.cmake and set cppdom_FOUND.
+IF(NOT cppdom_FOUND)
+ FIND_PACKAGE(cppdom QUIET NO_MODULE)
+ENDIF(NOT cppdom_FOUND)
+
+#-----------------------------------------------------------------------------
+IF(NOT cppdom_FOUND)
+ # cppdom not found, explain to the user how to specify its location.
+ IF(cppdom_FIND_REQUIRED)
+ MESSAGE(FATAL_ERROR ${cppdom_DIR_MESSAGE})
+ ELSE(cppdom_FIND_REQUIRED)
+ IF(NOT cppdom_FIND_QUIETLY)
+ MESSAGE(STATUS ${cppdom_DIR_MESSAGE})
+ ENDIF(NOT cppdom_FIND_QUIETLY)
+ ENDIF(cppdom_FIND_REQUIRED)
+ENDIF(NOT cppdom_FOUND)
Modified: branches/1.2/cppdom/CMakeLists.txt
===================================================================
--- branches/1.2/cppdom/CMakeLists.txt 2012-08-12 18:27:03 UTC (rev 707)
+++ branches/1.2/cppdom/CMakeLists.txt 2012-08-12 18:30:22 UTC (rev 708)
@@ -8,25 +8,25 @@
configure_file(version.h.in "${CMAKE_CURRENT_SOURCE_DIR}/version.h" @ONLY)
set(API
- config.h
- cppdom.h
- predicates.h
- shared_ptr.h
- xmlparser.h
- xmltokenizer.h
- version.h)
+ config.h
+ cppdom.h
+ predicates.h
+ shared_ptr.h
+ xmlparser.h
+ xmltokenizer.h
+ version.h)
set(EXT_API
- ext/OptionRepository.h)
+ ext/OptionRepository.h)
set(SOURCES
- cppdom.cpp
- xmlparser.cpp
- xmltokenizer.cpp
- ext/OptionRepository.cpp)
+ cppdom.cpp
+ xmlparser.cpp
+ xmltokenizer.cpp
+ ext/OptionRepository.cpp)
-if(BOOST_FOUND)
- include_directories(${Boost_INCLUDE_DIRS})
- list(APPEND SOURCES SpiritParser.cpp)
- list(APPEND API SpiritParser.h)
+if(BOOST_FOUND AND BUILD_SPIRIT_PARSER)
+ include_directories(${Boost_INCLUDE_DIRS})
+ list(APPEND SOURCES SpiritParser.cpp)
+ list(APPEND API SpiritParser.h)
endif()
add_definitions(-DCPPDOM_EXPORTS)
@@ -38,14 +38,18 @@
add_library(cppdom SHARED ${API} ${EXT_API} ${SOURCES})
-set_target_properties(cppdom PROPERTIES
- PUBLIC_HEADER "${API}"
- COMPILE_DEFINITIONS_DEBUG "CPPDOM_DEBUG")
+set_target_properties(cppdom PROPERTIES PUBLIC_HEADER "${API}"
+ COMPILE_DEFINITIONS_DEBUG "CPPDOM_DEBUG")
+set_target_properties( cppdom PROPERTIES VERSION ${CPACK_PACKAGE_VERSION} )
+set_target_properties( cppdom PROPERTIES SOVERSION ${CPACK_PACKAGE_VERSION} )
+set_target_properties( cppdom PROPERTIES PROJECT_LABEL "Lib cppdom" )
+
install(TARGETS cppdom
- RUNTIME DESTINATION ${BIN_DIR} COMPONENT Runtime
- LIBRARY DESTINATION ${LIB_DIR} COMPONENT Runtime
- ARCHIVE DESTINATION ${ARCH_DIR} COMPONENT Development
- PUBLIC_HEADER DESTINATION ${INCLUDE_DIR}/cppdom COMPONENT Development)
+ EXPORT cppdom-targets
+ RUNTIME DESTINATION ${BIN_DIR} COMPONENT Runtime
+ LIBRARY DESTINATION ${LIB_DIR} COMPONENT Runtime
+ ARCHIVE DESTINATION ${ARCH_DIR} COMPONENT Development
+ PUBLIC_HEADER DESTINATION ${INCLUDE_DIR}/cppdom COMPONENT Development)
install(FILES ${EXT_API}
- DESTINATION ${INCLUDE_DIR}/cppdom/ext
- COMPONENT Development)
+ DESTINATION ${INCLUDE_DIR}/cppdom/ext
+ COMPONENT Development)
Copied: branches/1.2/cppdomBuildTreeSettings.cmake.in (from rev 707, trunk/cppdomBuildTreeSettings.cmake.in)
===================================================================
--- branches/1.2/cppdomBuildTreeSettings.cmake.in (rev 0)
+++ branches/1.2/cppdomBuildTreeSettings.cmake.in 2012-08-12 18:30:22 UTC (rev 708)
@@ -0,0 +1,6 @@
+set(cppdom_INCLUDE_DIRS
+ "@PROJECT_SOURCE_DIR@"
+ "@PROJECT_BINARY_DIR@")
+set(cppdom_INCLUDE_DIRS
+ "@PROJECT_SOURCE_DIR@"
+ "@PROJECT_BINARY_DIR@")
Copied: branches/1.2/cppdomConfig.cmake.in (from rev 707, trunk/cppdomConfig.cmake.in)
===================================================================
--- branches/1.2/cppdomConfig.cmake.in (rev 0)
+++ branches/1.2/cppdomConfig.cmake.in 2012-08-12 18:30:22 UTC (rev 708)
@@ -0,0 +1,54 @@
+# - Config file for the cppdom package
+# It defines the following variables
+# cppdom_INCLUDE_DIRS - include directories for cppdom
+# cppdom_LIBRARIES - libraries to link against
+
+@PACKAGE_INIT@
+
+# These are IMPORTED targets created by cppdomLibraryDepends.cmake
+set(cppdom_LIBRARIES "cppdom" )
+
+# Compute paths
+# get_filename_component(cppdom_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
+if(EXISTS "${PACKAGE_PREFIX_DIR}/CMakeCache.txt")
+ # In build tree
+ include("${PACKAGE_PREFIX_DIR}/lib/cppdomBuildTreeSettings.cmake")
+ # Our library dependencies (contains definitions for IMPORTED targets)
+ include("${PACKAGE_PREFIX_DIR}/lib/cppdomLibraryDepends.cmake")
+else()
+ set_and_check(cppdom_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/@INCLUDE_DIR@")
+ # The cppdom targets file.
+ if(EXISTS "${PACKAGE_PREFIX_DIR}/lib/cppdom-targets.cmake")
+ include("${PACKAGE_PREFIX_DIR}/lib/cppdom-targets.cmake")
+ endif()
+endif()
+
+# The location of the Usecppdom.cmake file.
+set(cppdom_USE_FILE "${PACKAGE_PREFIX_DIR}/lib/Usecppdom.cmake")
+# - Config file for the cppdom package
+# It defines the following variables
+# cppdom_INCLUDE_DIRS - include directories for cppdom
+# cppdom_LIBRARIES - libraries to link against
+
+@PACKAGE_INIT@
+
+# These are IMPORTED targets created by cppdomLibraryDepends.cmake
+set(cppdom_LIBRARIES "cppdom" )
+
+# Compute paths
+# get_filename_component(cppdom_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
+if(EXISTS "${PACKAGE_PREFIX_DIR}/CMakeCache.txt")
+ # In build tree
+ include("${PACKAGE_PREFIX_DIR}/lib/cppdomBuildTreeSettings.cmake")
+ # Our library dependencies (contains definitions for IMPORTED targets)
+ include("${PACKAGE_PREFIX_DIR}/lib/cppdomLibraryDepends.cmake")
+else()
+ set_and_check(cppdom_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/@INCLUDE_DIR@")
+ # The cppdom targets file.
+ if(EXISTS "${PACKAGE_PREFIX_DIR}/lib/cppdom-targets.cmake")
+ include("${PACKAGE_PREFIX_DIR}/lib/cppdom-targets.cmake")
+ endif()
+endif()
+
+# The location of the Usecppdom.cmake file.
+set(cppdom_USE_FILE "${PACKAGE_PREFIX_DIR}/lib/Usecppdom.cmake")
Copied: branches/1.2/cppdomConfigVersion.cmake.in (from rev 707, trunk/cppdomConfigVersion.cmake.in)
===================================================================
--- branches/1.2/cppdomConfigVersion.cmake.in (rev 0)
+++ branches/1.2/cppdomConfigVersion.cmake.in 2012-08-12 18:30:22 UTC (rev 708)
@@ -0,0 +1,22 @@
+set(PACKAGE_VERSION "@CPACK_PACKAGE_VERSION@")
+
+# Check whether the requested PACKAGE_FIND_VERSION is compatible
+if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}")
+ set(PACKAGE_VERSION_COMPATIBLE FALSE)
+else()
+ set(PACKAGE_VERSION_COMPATIBLE TRUE)
+ if ("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}")
+ set(PACKAGE_VERSION_EXACT TRUE)
+ endif()
+endif()
+set(PACKAGE_VERSION "@CPACK_PACKAGE_VERSION@")
+
+# Check whether the requested PACKAGE_FIND_VERSION is compatible
+if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}")
+ set(PACKAGE_VERSION_COMPATIBLE FALSE)
+else()
+ set(PACKAGE_VERSION_COMPATIBLE TRUE)
+ if ("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}")
+ set(PACKAGE_VERSION_EXACT TRUE)
+ endif()
+endif()
Modified: branches/1.2/test/CMakeLists.txt
===================================================================
--- branches/1.2/test/CMakeLists.txt 2012-08-12 18:27:03 UTC (rev 707)
+++ branches/1.2/test/CMakeLists.txt 2012-08-12 18:30:22 UTC (rev 708)
@@ -1,36 +1,36 @@
find_package(cppunit)
if(CPPUNIT_FOUND)
- add_subdirectory(suite)
+ add_subdirectory(suite)
endif()
if(BUILD_TESTING)
- include_directories(.)
+ include_directories(.)
- # maketree
- add_executable(maketree maketree.cpp)
- target_link_libraries(maketree cppdom)
- add_test(NAME maketree
- COMMAND maketree)
+ # maketree
+ add_executable(maketree maketree.cpp)
+ target_link_libraries(maketree cppdom)
+ add_test(NAME maketree
+ COMMAND maketree)
- # nodetest
- include(CopyResourcesToBuildTree)
- add_executable(nodetest nodetest.cpp game.xml)
- set_target_properties(nodetest PROPERTIES RESOURCE "game.xml")
- target_link_libraries(nodetest cppdom)
- copy_resources_to_build_tree(nodetest)
- add_test(NAME nodetest
- COMMAND nodetest)
- set_tests_properties(nodetest PROPERTIES
- FAIL_REGULAR_EXPRESSION "[eE]rror"
- PASS_REGULAR_EXPRESSION "in name: bokbokbok")
+ # nodetest
+ include(CopyResourcesToBuildTree)
+ add_executable(nodetest nodetest.cpp game.xml)
+ set_target_properties(nodetest PROPERTIES RESOURCE "game.xml")
+ target_link_libraries(nodetest cppdom)
+ copy_resources_to_build_tree(nodetest)
+ add_test(NAME nodetest
+ COMMAND nodetest)
+ set_tests_properties(nodetest PROPERTIES
+ FAIL_REGULAR_EXPRESSION "[eE]rror"
+ PASS_REGULAR_EXPRESSION "in name: bokbokbok")
- # parsetest
- add_executable(parsetest parsetest.cpp)
- target_link_libraries(parsetest cppdom)
- foreach(testfile game.xml hamlet.xml nodetest.xml test.xml)
- add_test(NAME parsetest-${testfile}
- COMMAND parsetest "${CMAKE_CURRENT_SOURCE_DIR}/${testfile}")
- set_tests_properties(parsetest-${testfile} PROPERTIES
- FAIL_REGULAR_EXPRESSION "[eE]rror")
- endforeach()
+ # parsetest
+ add_executable(parsetest parsetest.cpp)
+ target_link_libraries(parsetest cppdom)
+ foreach(testfile game.xml hamlet.xml nodetest.xml test.xml)
+ add_test(NAME parsetest-${testfile}
+ COMMAND parsetest "${CMAKE_CURRENT_SOURCE_DIR}/${testfile}")
+ set_tests_properties(parsetest-${testfile} PROPERTIES
+ FAIL_REGULAR_EXPRESSION "[eE]rror")
+ endforeach()
endif()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pat...@us...> - 2012-08-12 18:27:11
|
Revision: 707
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=707&view=rev
Author: patrickh
Date: 2012-08-12 18:27:03 +0000 (Sun, 12 Aug 2012)
Log Message:
-----------
Fix flagpoll file installation on Windows.
Submitted by: Doug McCorkle
Modified Paths:
--------------
trunk/CMakeLists.txt
Modified: trunk/CMakeLists.txt
===================================================================
--- trunk/CMakeLists.txt 2012-08-03 18:43:39 UTC (rev 706)
+++ trunk/CMakeLists.txt 2012-08-12 18:27:03 UTC (rev 707)
@@ -39,7 +39,7 @@
set(INCLUDE_DIR include/cppdom-${CPACK_PACKAGE_VERSION})
endif()
-set(FLAGPOLL_INFO_DIR ${LIB_DIR}/flagpoll)
+set(FLAGPOLL_INFO_DIR ${ARCH_DIR}/flagpoll)
# Create flagpoll file
set(provides "cppdom")
@@ -47,7 +47,7 @@
set(prefix "\${fp_file_cwd}/../..")
set(exec_prefix "\${prefix}")
set(includedir "\${fp_file_cwd}/../../${INCLUDE_DIR}")
-set(libdir "\${fp_file_cwd}/../../${LIB_DIR}")
+set(libdir "\${fp_file_cwd}/../../${ARCH_DIR}")
if(CMAKE_COMPILER_IS_GNUCXX OR ( CMAKE_CXX_COMPILER_ID STREQUAL "Clang" ) )
set(cppdom_cxxflags "-Wno-deprecated")
@@ -123,7 +123,7 @@
# Add all targets to the build-tree export set
export(TARGETS cppdom
- FILE "${PROJECT_BINARY_DIR}/${LIB_DIR}/cppdomLibraryDepends.cmake")
+ FILE "${PROJECT_BINARY_DIR}/${ARCH_DIR}/cppdomLibraryDepends.cmake")
# Export the package for use from the build-tree
# (this registers the build-tree with a global CMake-registry)
@@ -131,23 +131,23 @@
# Create a cppdomBuildTreeSettings.cmake file for the use from the build tree
configure_file(cppdomBuildTreeSettings.cmake.in
- "${PROJECT_BINARY_DIR}/${LIB_DIR}/cppdomBuildTreeSettings.cmake" @ONLY)
+ "${PROJECT_BINARY_DIR}/${ARCH_DIR}/cppdomBuildTreeSettings.cmake" @ONLY)
configure_file(cppdomConfigVersion.cmake.in
- "${PROJECT_BINARY_DIR}/${LIB_DIR}/cppdomConfigVersion.cmake" @ONLY)
+ "${PROJECT_BINARY_DIR}/${ARCH_DIR}/cppdomConfigVersion.cmake" @ONLY)
configure_file(Usecppdom.cmake.in
- "${PROJECT_BINARY_DIR}/${LIB_DIR}/Usecppdom.cmake" @ONLY)
+ "${PROJECT_BINARY_DIR}/${ARCH_DIR}/Usecppdom.cmake" @ONLY)
# Install the export set for use with the install-tree
-install(EXPORT cppdom-targets DESTINATION ${LIB_DIR})
+install(EXPORT cppdom-targets DESTINATION ${ARCH_DIR})
include( CMakePackageConfigHelpers )
configure_package_config_file(
- cppdomConfig.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/${LIB_DIR}/cppdomConfig.cmake
- INSTALL_DESTINATION ${LIB_DIR}
+ cppdomConfig.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/${ARCH_DIR}/cppdomConfig.cmake
+ INSTALL_DESTINATION ${ARCH_DIR}
PATH_VARS INCLUDE_DIR )
-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${LIB_DIR}/cppdomConfig.cmake
- ${CMAKE_CURRENT_BINARY_DIR}/${LIB_DIR}/cppdomConfigVersion.cmake
- ${CMAKE_CURRENT_BINARY_DIR}/${LIB_DIR}/Usecppdom.cmake
- DESTINATION ${LIB_DIR} )
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${ARCH_DIR}/cppdomConfig.cmake
+ ${CMAKE_CURRENT_BINARY_DIR}/${ARCH_DIR}/cppdomConfigVersion.cmake
+ ${CMAKE_CURRENT_BINARY_DIR}/${ARCH_DIR}/Usecppdom.cmake
+ DESTINATION ${ARCH_DIR} )
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pat...@us...> - 2012-08-03 18:43:45
|
Revision: 706
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=706&view=rev
Author: patrickh
Date: 2012-08-03 18:43:39 +0000 (Fri, 03 Aug 2012)
Log Message:
-----------
Fix flagpoll file creation when using Clang.
Submitted by: Doug McCorkle
Modified Paths:
--------------
trunk/CMakeLists.txt
Modified: trunk/CMakeLists.txt
===================================================================
--- trunk/CMakeLists.txt 2012-07-31 17:48:27 UTC (rev 705)
+++ trunk/CMakeLists.txt 2012-08-03 18:43:39 UTC (rev 706)
@@ -49,7 +49,7 @@
set(includedir "\${fp_file_cwd}/../../${INCLUDE_DIR}")
set(libdir "\${fp_file_cwd}/../../${LIB_DIR}")
-if(CMAKE_COMPILER_IS_GNUCXX)
+if(CMAKE_COMPILER_IS_GNUCXX OR ( CMAKE_CXX_COMPILER_ID STREQUAL "Clang" ) )
set(cppdom_cxxflags "-Wno-deprecated")
set(include_path_flag "-I")
set(cppdom_libs "-lcppdom-${VERSION_UNDERSCORES}")
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pat...@us...> - 2012-07-31 17:48:35
|
Revision: 705
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=705&view=rev
Author: patrickh
Date: 2012-07-31 17:48:27 +0000 (Tue, 31 Jul 2012)
Log Message:
-----------
>From the submission:
* Adds helper files to the CMake build to make it easier to find in other
CMake projects
* Adds versioned library files back to the build
* Places the flagpoll file in the lib directory rather than the share
* directory
Submitted by: Doug McCorkle
Modified Paths:
--------------
trunk/CMakeLists.txt
trunk/cppdom/CMakeLists.txt
Added Paths:
-----------
trunk/Usecppdom.cmake.in
trunk/cmake/Findcppdom.cmake
trunk/cppdomBuildTreeSettings.cmake.in
trunk/cppdomConfig.cmake.in
trunk/cppdomConfigVersion.cmake.in
Removed Paths:
-------------
trunk/cmake/FindCPPDOM.cmake
Modified: trunk/CMakeLists.txt
===================================================================
--- trunk/CMakeLists.txt 2012-07-31 16:57:43 UTC (rev 704)
+++ trunk/CMakeLists.txt 2012-07-31 17:48:27 UTC (rev 705)
@@ -30,7 +30,7 @@
# Define directories
set(BIN_DIR bin)
-set(FLAGPOLL_INFO_DIR share/flagpoll)
+
if(WIN32)
set(LIB_DIR bin)
set(INCLUDE_DIR include)
@@ -39,6 +39,8 @@
set(INCLUDE_DIR include/cppdom-${CPACK_PACKAGE_VERSION})
endif()
+set(FLAGPOLL_INFO_DIR ${LIB_DIR}/flagpoll)
+
# Create flagpoll file
set(provides "cppdom")
set(version "${CPACK_PACKAGE_VERSION}")
@@ -72,9 +74,13 @@
# Perform build configuration of dependencies
###
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
+
include(CTest)
-find_package(Boost)
+option( BUILD_SPIRIT_PARSER "Set to ON to build the SpiritParser based on the Boost Spirit library." OFF )
+if(BUILD_SPIRIT_PARSER)
+ find_package(Boost)
+endif(BUILD_SPIRIT_PARSER)
###
# Build the project
@@ -105,3 +111,43 @@
###
# End Packaging
###
+
+# Install the CMake find script for cppdom
+install( FILES "cmake/Findcppdom.cmake"
+ DESTINATION "share/${CMAKE_PROJECT_NAME}/extra"
+ COMPONENT Development )
+
+#
+# Create and install all of the auto find tools
+# =============================================
+
+# Add all targets to the build-tree export set
+export(TARGETS cppdom
+ FILE "${PROJECT_BINARY_DIR}/${LIB_DIR}/cppdomLibraryDepends.cmake")
+
+# Export the package for use from the build-tree
+# (this registers the build-tree with a global CMake-registry)
+export(PACKAGE cppdom)
+
+# Create a cppdomBuildTreeSettings.cmake file for the use from the build tree
+configure_file(cppdomBuildTreeSettings.cmake.in
+ "${PROJECT_BINARY_DIR}/${LIB_DIR}/cppdomBuildTreeSettings.cmake" @ONLY)
+
+configure_file(cppdomConfigVersion.cmake.in
+ "${PROJECT_BINARY_DIR}/${LIB_DIR}/cppdomConfigVersion.cmake" @ONLY)
+configure_file(Usecppdom.cmake.in
+ "${PROJECT_BINARY_DIR}/${LIB_DIR}/Usecppdom.cmake" @ONLY)
+
+# Install the export set for use with the install-tree
+install(EXPORT cppdom-targets DESTINATION ${LIB_DIR})
+
+include( CMakePackageConfigHelpers )
+configure_package_config_file(
+ cppdomConfig.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/${LIB_DIR}/cppdomConfig.cmake
+ INSTALL_DESTINATION ${LIB_DIR}
+ PATH_VARS INCLUDE_DIR )
+
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${LIB_DIR}/cppdomConfig.cmake
+ ${CMAKE_CURRENT_BINARY_DIR}/${LIB_DIR}/cppdomConfigVersion.cmake
+ ${CMAKE_CURRENT_BINARY_DIR}/${LIB_DIR}/Usecppdom.cmake
+ DESTINATION ${LIB_DIR} )
Added: trunk/Usecppdom.cmake.in
===================================================================
--- trunk/Usecppdom.cmake.in (rev 0)
+++ trunk/Usecppdom.cmake.in 2012-07-31 17:48:27 UTC (rev 705)
@@ -0,0 +1,50 @@
+#
+# This module is provided as cppdom_USE_FILE by cppdomConfig.cmake. It can
+# be INCLUDEd in a project to load the needed compiler and linker
+# settings to use cppdom.
+#
+
+IF(NOT cppdom_USE_FILE_INCLUDED)
+ SET(cppdom_USE_FILE_INCLUDED 1)
+
+ # Update CMAKE_MODULE_PATH so includes work.
+ #SET (CMAKE_MODULE_PATH
+ # ${CMAKE_MODULE_PATH}
+ # ${cppdom_CMAKE_DIR})
+
+ # Add compiler flags needed to use cppdom.
+ #SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${cppdom_REQUIRED_C_FLAGS}")
+ #SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${cppdom_REQUIRED_CXX_FLAGS}")
+ #SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${cppdom_REQUIRED_EXE_LINKER_FLAGS}")
+ #SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${cppdom_REQUIRED_SHARED_LINKER_FLAGS}")
+ #SET(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${cppdom_REQUIRED_MODULE_LINKER_FLAGS}")
+
+ # Add include directories needed to use cppdom.
+ INCLUDE_DIRECTORIES(${cppdom_INCLUDE_DIRS})
+
+ENDIF(NOT cppdom_USE_FILE_INCLUDED)
+#
+# This module is provided as cppdom_USE_FILE by cppdomConfig.cmake. It can
+# be INCLUDEd in a project to load the needed compiler and linker
+# settings to use cppdom.
+#
+
+IF(NOT cppdom_USE_FILE_INCLUDED)
+ SET(cppdom_USE_FILE_INCLUDED 1)
+
+ # Update CMAKE_MODULE_PATH so includes work.
+ #SET (CMAKE_MODULE_PATH
+ # ${CMAKE_MODULE_PATH}
+ # ${cppdom_CMAKE_DIR})
+
+ # Add compiler flags needed to use cppdom.
+ #SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${cppdom_REQUIRED_C_FLAGS}")
+ #SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${cppdom_REQUIRED_CXX_FLAGS}")
+ #SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${cppdom_REQUIRED_EXE_LINKER_FLAGS}")
+ #SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${cppdom_REQUIRED_SHARED_LINKER_FLAGS}")
+ #SET(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${cppdom_REQUIRED_MODULE_LINKER_FLAGS}")
+
+ # Add include directories needed to use cppdom.
+ INCLUDE_DIRECTORIES(${cppdom_INCLUDE_DIRS})
+
+ENDIF(NOT cppdom_USE_FILE_INCLUDED)
Property changes on: trunk/Usecppdom.cmake.in
___________________________________________________________________
Added: svn:eol-style
+ native
Deleted: trunk/cmake/FindCPPDOM.cmake
===================================================================
--- trunk/cmake/FindCPPDOM.cmake 2012-07-31 16:57:43 UTC (rev 704)
+++ trunk/cmake/FindCPPDOM.cmake 2012-07-31 17:48:27 UTC (rev 705)
@@ -1,176 +0,0 @@
-# - try to find CPPDOM library
-# Optionally uses Flagpoll and FindFlagpoll.cmake
-#
-# CPPDOM_LIBRARY_DIR, library search path
-# CPPDOM_INCLUDE_DIR, include search path
-# CPPDOM_LIBRARY, the library to link against
-# CPPDOM_CXX_FLAGS
-# CPPDOM_FOUND, If false, do not try to use this library.
-#
-# Useful configuration variables you might want to add to your cache:
-# CPPDOM_ROOT_DIR - A directory prefix to search
-# (a path that contains include/ as a subdirectory)
-# CPPDOM_ADDITIONAL_VERSIONS - Additional versions (outside of 0.7.8 to 1.0.0)
-# to use when constructing search names and paths
-#
-# This script will use Flagpoll, if found, to provide hints to the location
-# of this library, but does not use the compiler flags returned by Flagpoll
-# directly.
-#
-# VR Juggler requires this package, so this Find script takes that into
-# account when determining where to search for the desired files.
-# The VJ_BASE_DIR environment variable is searched (preferentially)
-# when searching for this package, so most sane VR Juggler build environments
-# should "just work." Note that you need to manually re-run CMake if you
-# change this environment variable, because it cannot auto-detect this change
-# and trigger an automatic re-run.
-#
-# Original Author:
-# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
-# http://academic.cleardefinition.com
-# Iowa State University HCI Graduate Program/VRAC
-#
-# Copyright Iowa State University 2009-2010.
-# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or copy at
-# http://www.boost.org/LICENSE_1_0.txt)
-
-set(_HUMAN "cppdom")
-set(_HEADER cppdom/cppdom.h)
-set(_FP_PKG_NAME cppdom)
-
-set(CPPDOM_VERSIONS
- ${CPPDOM_ADDITIONAL_VERSIONS}
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 0.7.10
- 0.7.9
- 0.7.8)
-set(CPPDOM_DIRS)
-set(CPPDOM_RELEASE_LIB_NAMES)
-set(CPPDOM_DEBUG_LIB_NAMES)
-foreach(_version ${CPPDOM_VERSIONS})
- string(REGEX REPLACE "[-\\.]" "_" _versionclean ${_version})
- list(APPEND CPPDOM_DIRS cppdom-${_version})
- list(APPEND CPPDOM_HEADER_DIRS include/cppdom-${_version})
- list(APPEND CPPDOM_RELEASE_LIB_NAMES cppdom-${_versionclean})
- list(APPEND CPPDOM_DEBUG_LIB_NAMES cppdom_d-${_versionclean})
-endforeach()
-
-include(SelectLibraryConfigurations)
-include(CreateImportedTarget)
-include(CleanLibraryList)
-include(CleanDirectoryList)
-
-if(CPPDOM_INCLUDE_DIRS AND CPPDOM_LIBRARIES)
- # in cache already
- set(CPPDOM_FIND_QUIETLY TRUE)
-endif()
-
-# Try flagpoll.
-find_package(Flagpoll QUIET)
-
-if(FLAGPOLL)
- flagpoll_get_include_dirs(${_FP_PKG_NAME} NO_DEPS)
- flagpoll_get_library_dirs(${_FP_PKG_NAME} NO_DEPS)
- flagpoll_get_library_names(${_FP_PKG_NAME} NO_DEPS)
-endif()
-
-set(CPPDOM_ROOT_DIR
- "${CPPDOM_ROOT_DIR}"
- CACHE
- PATH
- "Root directory to search for CPPDOM")
-if(DEFINED VRJUGGLER22_ROOT_DIR)
- mark_as_advanced(CPPDOM_ROOT_DIR)
-endif()
-if(NOT CPPDOM_ROOT_DIR)
- if(VRJUGGLER22_ROOT_DIR)
- set(CPPDOM_ROOT_DIR "${VRJUGGLER22_ROOT_DIR}")
- elseif(VRJUGGLER30_ROOT_DIR)
- set(CPPDOM_ROOT_DIR "${VRJUGGLER30_ROOT_DIR}")
- endif()
-endif()
-
-set(_ROOT_DIR "${CPPDOM_ROOT_DIR}")
-
-find_path(CPPDOM_INCLUDE_DIR
- ${_HEADER}
- HINTS
- ${_ROOT_DIR}
- ${${_FP_PKG_NAME}_FLAGPOLL_INCLUDE_DIRS}
- PATHS
- PATH_SUFFIXES
- ${CPPDOM_DIRS}
- ${CPPDOM_HEADER_DIRS}
- include
- DOC
- "Path to ${_HUMAN} includes root")
-
-find_library(CPPDOM_LIBRARY_RELEASE
- NAMES
- ${CPPDOM_RELEASE_LIB_NAMES}
- ${${_FP_PKG_NAME}_FLAGPOLL_LIBRARY_NAMES}
- HINTS
- ${_ROOT_DIR}
- ${${_FP_PKG_NAME}_FLAGPOLL_LIBRARY_DIRS}
- PATH_SUFFIXES
- ${_VRJ_LIBSUFFIXES}
- DOC
- "${_HUMAN} library full path")
-
-find_library(CPPDOM_LIBRARY_DEBUG
- NAMES
- ${CPPDOM_DEBUG_LIB_NAMES}
- HINTS
- ${_ROOT_DIR}
- ${${_FP_PKG_NAME}_FLAGPOLL_LIBRARY_DIRS}
- PATH_SUFFIXES
- ${_VRJ_LIBDSUFFIXES}
- DOC
- "${_HUMAN} debug library full path")
-
-# Fallback to same library name but in the debug folder
-if(NOT CPPDOM_LIBRARY_DEBUG)
- find_library(CPPDOM_LIBRARY_DEBUG
- NAMES
- ${CPPDOM_LIB_NAMES}
- HINTS
- ${CPPDOM_INCLUDE_DIR}/../
- ${${_FP_PKG_NAME}_FLAGPOLL_LIBRARY_DIRS}
- PATH_SUFFIXES
- ${_VRJ_LIBDSUFFIXES_ONLY}
- NO_DEFAULT_PATH
- DOC
- "${_HUMAN} debug library full path")
-endif()
-
-if(CPPDOM_LIBRARY_RELEASE OR CPPDOM_LIBRARY_DEBUG)
- select_library_configurations(CPPDOM)
-endif()
-
-# handle the QUIETLY and REQUIRED arguments and set xxx_FOUND to TRUE if
-# all listed variables are TRUE
-include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(CPPDOM
- DEFAULT_MSG
- CPPDOM_LIBRARY
- CPPDOM_INCLUDE_DIR)
-
-if(CPPDOM_FOUND)
- set(CPPDOM_INCLUDE_DIRS ${CPPDOM_INCLUDE_DIR})
- if(MSVC)
- set(CPPDOM_CXX_FLAGS "/wd4290")
- endif()
-
- mark_as_advanced(CPPDOM_ROOT_DIR)
-endif()
-
-mark_as_advanced(CPPDOM_LIBRARY_RELEASE
- CPPDOM_LIBRARY_DEBUG
- CPPDOM_INCLUDE_DIR)
Added: trunk/cmake/Findcppdom.cmake
===================================================================
--- trunk/cmake/Findcppdom.cmake (rev 0)
+++ trunk/cmake/Findcppdom.cmake 2012-07-31 17:48:27 UTC (rev 705)
@@ -0,0 +1,45 @@
+# - Find a cppdom installation or build tree.
+# The following variables are set if cppdom is found. If cppdom is not
+# found, cppdom_FOUND is set to false.
+# cppdom_FOUND - Set to true when cppdom is found.
+# cppdom_USE_FILE - CMake file to use cppdom.
+# cppdom_MAJOR_VERSION - The cppdom major version number.
+# cppdom_MINOR_VERSION - The cppdom minor version number
+# (odd non-release).
+# cppdom_BUILD_VERSION - The cppdom patch level
+# (meaningless for odd minor).
+# cppdom_INCLUDE_DIRS - Include directories for cppdom
+# cppdom_LIBRARY_DIRS - Link directories for cppdom libraries
+
+# The following cache entries must be set by the user to locate cppdom:
+# cppdom_DIR - The directory containing cppdomConfig.cmake.
+# This is either the root of the build tree,
+# or the lib directory. This is the
+# only cache entry.
+
+
+# Assume not found.
+SET(cppdom_FOUND 0)
+
+# Construct consitent error messages for use below.
+SET(cppdom_DIR_DESCRIPTION "directory containing cppdomConfig.cmake. This is either the root of the build tree, or PREFIX/lib for an installation.")
+SET(cppdom_DIR_MESSAGE "cppdom not found. Set the cppdom_DIR cmake cache entry to the ${cppdom_DIR_DESCRIPTION}")
+
+# Use the Config mode of the find_package() command to find cppdomConfig.
+# If this succeeds (possibly because cppdom_DIR is already set), the
+# command will have already loaded cppdomConfig.cmake and set cppdom_FOUND.
+IF(NOT cppdom_FOUND)
+ FIND_PACKAGE(cppdom QUIET NO_MODULE)
+ENDIF(NOT cppdom_FOUND)
+
+#-----------------------------------------------------------------------------
+IF(NOT cppdom_FOUND)
+ # cppdom not found, explain to the user how to specify its location.
+ IF(cppdom_FIND_REQUIRED)
+ MESSAGE(FATAL_ERROR ${cppdom_DIR_MESSAGE})
+ ELSE(cppdom_FIND_REQUIRED)
+ IF(NOT cppdom_FIND_QUIETLY)
+ MESSAGE(STATUS ${cppdom_DIR_MESSAGE})
+ ENDIF(NOT cppdom_FIND_QUIETLY)
+ ENDIF(cppdom_FIND_REQUIRED)
+ENDIF(NOT cppdom_FOUND)
Modified: trunk/cppdom/CMakeLists.txt
===================================================================
--- trunk/cppdom/CMakeLists.txt 2012-07-31 16:57:43 UTC (rev 704)
+++ trunk/cppdom/CMakeLists.txt 2012-07-31 17:48:27 UTC (rev 705)
@@ -23,7 +23,7 @@
xmltokenizer.cpp
ext/OptionRepository.cpp)
-if(BOOST_FOUND)
+if(BOOST_FOUND AND BUILD_SPIRIT_PARSER)
include_directories(${Boost_INCLUDE_DIRS})
list(APPEND SOURCES SpiritParser.cpp)
list(APPEND API SpiritParser.h)
@@ -38,13 +38,17 @@
add_library(cppdom SHARED ${API} ${EXT_API} ${SOURCES})
-set_target_properties(cppdom PROPERTIES
- PUBLIC_HEADER "${API}"
+set_target_properties(cppdom PROPERTIES PUBLIC_HEADER "${API}"
COMPILE_DEFINITIONS_DEBUG "CPPDOM_DEBUG")
+set_target_properties( cppdom PROPERTIES VERSION ${CPACK_PACKAGE_VERSION} )
+set_target_properties( cppdom PROPERTIES SOVERSION ${CPACK_PACKAGE_VERSION} )
+set_target_properties( cppdom PROPERTIES PROJECT_LABEL "Lib cppdom" )
+
install(TARGETS cppdom
+ EXPORT cppdom-targets
RUNTIME DESTINATION ${BIN_DIR} COMPONENT Runtime
- LIBRARY DESTINATION ${LIB_DIR} COMPONENT Runtime
- ARCHIVE DESTINATION ${ARCH_DIR} COMPONENT Development
+ LIBRARY DESTINATION ${LIB_DIR} COMPONENT Runtime
+ ARCHIVE DESTINATION ${ARCH_DIR} COMPONENT Development
PUBLIC_HEADER DESTINATION ${INCLUDE_DIR}/cppdom COMPONENT Development)
install(FILES ${EXT_API}
DESTINATION ${INCLUDE_DIR}/cppdom/ext
Added: trunk/cppdomBuildTreeSettings.cmake.in
===================================================================
--- trunk/cppdomBuildTreeSettings.cmake.in (rev 0)
+++ trunk/cppdomBuildTreeSettings.cmake.in 2012-07-31 17:48:27 UTC (rev 705)
@@ -0,0 +1,6 @@
+set(cppdom_INCLUDE_DIRS
+ "@PROJECT_SOURCE_DIR@"
+ "@PROJECT_BINARY_DIR@")
+set(cppdom_INCLUDE_DIRS
+ "@PROJECT_SOURCE_DIR@"
+ "@PROJECT_BINARY_DIR@")
Property changes on: trunk/cppdomBuildTreeSettings.cmake.in
___________________________________________________________________
Added: svn:eol-style
+ native
Added: trunk/cppdomConfig.cmake.in
===================================================================
--- trunk/cppdomConfig.cmake.in (rev 0)
+++ trunk/cppdomConfig.cmake.in 2012-07-31 17:48:27 UTC (rev 705)
@@ -0,0 +1,54 @@
+# - Config file for the cppdom package
+# It defines the following variables
+# cppdom_INCLUDE_DIRS - include directories for cppdom
+# cppdom_LIBRARIES - libraries to link against
+
+@PACKAGE_INIT@
+
+# These are IMPORTED targets created by cppdomLibraryDepends.cmake
+set(cppdom_LIBRARIES "cppdom" )
+
+# Compute paths
+# get_filename_component(cppdom_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
+if(EXISTS "${PACKAGE_PREFIX_DIR}/CMakeCache.txt")
+ # In build tree
+ include("${PACKAGE_PREFIX_DIR}/lib/cppdomBuildTreeSettings.cmake")
+ # Our library dependencies (contains definitions for IMPORTED targets)
+ include("${PACKAGE_PREFIX_DIR}/lib/cppdomLibraryDepends.cmake")
+else()
+ set_and_check(cppdom_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/@INCLUDE_DIR@")
+ # The cppdom targets file.
+ if(EXISTS "${PACKAGE_PREFIX_DIR}/lib/cppdom-targets.cmake")
+ include("${PACKAGE_PREFIX_DIR}/lib/cppdom-targets.cmake")
+ endif()
+endif()
+
+# The location of the Usecppdom.cmake file.
+set(cppdom_USE_FILE "${PACKAGE_PREFIX_DIR}/lib/Usecppdom.cmake")
+# - Config file for the cppdom package
+# It defines the following variables
+# cppdom_INCLUDE_DIRS - include directories for cppdom
+# cppdom_LIBRARIES - libraries to link against
+
+@PACKAGE_INIT@
+
+# These are IMPORTED targets created by cppdomLibraryDepends.cmake
+set(cppdom_LIBRARIES "cppdom" )
+
+# Compute paths
+# get_filename_component(cppdom_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
+if(EXISTS "${PACKAGE_PREFIX_DIR}/CMakeCache.txt")
+ # In build tree
+ include("${PACKAGE_PREFIX_DIR}/lib/cppdomBuildTreeSettings.cmake")
+ # Our library dependencies (contains definitions for IMPORTED targets)
+ include("${PACKAGE_PREFIX_DIR}/lib/cppdomLibraryDepends.cmake")
+else()
+ set_and_check(cppdom_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/@INCLUDE_DIR@")
+ # The cppdom targets file.
+ if(EXISTS "${PACKAGE_PREFIX_DIR}/lib/cppdom-targets.cmake")
+ include("${PACKAGE_PREFIX_DIR}/lib/cppdom-targets.cmake")
+ endif()
+endif()
+
+# The location of the Usecppdom.cmake file.
+set(cppdom_USE_FILE "${PACKAGE_PREFIX_DIR}/lib/Usecppdom.cmake")
Property changes on: trunk/cppdomConfig.cmake.in
___________________________________________________________________
Added: svn:eol-style
+ native
Added: trunk/cppdomConfigVersion.cmake.in
===================================================================
--- trunk/cppdomConfigVersion.cmake.in (rev 0)
+++ trunk/cppdomConfigVersion.cmake.in 2012-07-31 17:48:27 UTC (rev 705)
@@ -0,0 +1,22 @@
+set(PACKAGE_VERSION "@CPACK_PACKAGE_VERSION@")
+
+# Check whether the requested PACKAGE_FIND_VERSION is compatible
+if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}")
+ set(PACKAGE_VERSION_COMPATIBLE FALSE)
+else()
+ set(PACKAGE_VERSION_COMPATIBLE TRUE)
+ if ("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}")
+ set(PACKAGE_VERSION_EXACT TRUE)
+ endif()
+endif()
+set(PACKAGE_VERSION "@CPACK_PACKAGE_VERSION@")
+
+# Check whether the requested PACKAGE_FIND_VERSION is compatible
+if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}")
+ set(PACKAGE_VERSION_COMPATIBLE FALSE)
+else()
+ set(PACKAGE_VERSION_COMPATIBLE TRUE)
+ if ("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}")
+ set(PACKAGE_VERSION_EXACT TRUE)
+ endif()
+endif()
Property changes on: trunk/cppdomConfigVersion.cmake.in
___________________________________________________________________
Added: svn:eol-style
+ native
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pat...@us...> - 2012-07-31 16:57:49
|
Revision: 704
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=704&view=rev
Author: patrickh
Date: 2012-07-31 16:57:43 +0000 (Tue, 31 Jul 2012)
Log Message:
-----------
Change hard tabs to four space indentation.
Submitted by: Doug McCorkle
Modified Paths:
--------------
trunk/CMakeLists.txt
trunk/cppdom/CMakeLists.txt
trunk/test/CMakeLists.txt
Modified: trunk/CMakeLists.txt
===================================================================
--- trunk/CMakeLists.txt 2012-07-30 15:14:17 UTC (rev 703)
+++ trunk/CMakeLists.txt 2012-07-31 16:57:43 UTC (rev 704)
@@ -12,7 +12,7 @@
set(CPACK_PACKAGE_VERSION_MINOR "3")
set(CPACK_PACKAGE_VERSION_PATCH "0")
set(CPACK_PACKAGE_VERSION
- "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
+ "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
set(VERSION_UNDERSCORES "${CPACK_PACKAGE_VERSION_MAJOR}_${CPACK_PACKAGE_VERSION_MINOR}_${CPACK_PACKAGE_VERSION_PATCH}")
###
@@ -21,22 +21,22 @@
# TODO this is not ideal/complete
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
- set(arch "x86_64")
- set(ARCH_DIR lib64)
+ set(arch "x86_64")
+ set(ARCH_DIR lib64)
else()
- set(arch "x86")
- set(ARCH_DIR lib)
+ set(arch "x86")
+ set(ARCH_DIR lib)
endif()
# Define directories
set(BIN_DIR bin)
set(FLAGPOLL_INFO_DIR share/flagpoll)
if(WIN32)
- set(LIB_DIR bin)
- set(INCLUDE_DIR include)
+ set(LIB_DIR bin)
+ set(INCLUDE_DIR include)
else()
- set(LIB_DIR ${ARCH_DIR})
- set(INCLUDE_DIR include/cppdom-${CPACK_PACKAGE_VERSION})
+ set(LIB_DIR ${ARCH_DIR})
+ set(INCLUDE_DIR include/cppdom-${CPACK_PACKAGE_VERSION})
endif()
# Create flagpoll file
@@ -48,25 +48,25 @@
set(libdir "\${fp_file_cwd}/../../${LIB_DIR}")
if(CMAKE_COMPILER_IS_GNUCXX)
- set(cppdom_cxxflags "-Wno-deprecated")
- set(include_path_flag "-I")
- set(cppdom_libs "-lcppdom-${VERSION_UNDERSCORES}")
- set(lib_path_flag "-L")
+ set(cppdom_cxxflags "-Wno-deprecated")
+ set(include_path_flag "-I")
+ set(cppdom_libs "-lcppdom-${VERSION_UNDERSCORES}")
+ set(lib_path_flag "-L")
elseif(MSVC)
- set(include_path_flag "/I")
- set(lib_path_flag "/L")
+ set(include_path_flag "/I")
+ set(lib_path_flag "/L")
else()
- message(FATAL_ERROR "Compiler not recognized - can't generate values for Flagpoll file")
+ message(FATAL_ERROR "Compiler not recognized - can't generate values for Flagpoll file")
endif()
configure_file(cppdom.fpc.in "${CMAKE_CURRENT_BINARY_DIR}/cppdom.fpc" @ONLY)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/cppdom.fpc"
- DESTINATION ${FLAGPOLL_INFO_DIR}
- COMPONENT Development)
+ DESTINATION ${FLAGPOLL_INFO_DIR}
+ COMPONENT Development)
install(FILES cppdom-config
- DESTINATION ${BIN_DIR}
- COMPONENT Development)
+ DESTINATION ${BIN_DIR}
+ COMPONENT Development)
###
# Perform build configuration of dependencies
@@ -91,12 +91,12 @@
# Choose desired package generators
if(APPLE)
- set(CPACK_GENERATOR DragNDrop)
- set(CPACK_SOURCE_GENERATOR ZIP)
+ set(CPACK_GENERATOR DragNDrop)
+ set(CPACK_SOURCE_GENERATOR ZIP)
elseif(WIN32)
- set(CPACK_SOURCE_GENERATOR ZIP)
+ set(CPACK_SOURCE_GENERATOR ZIP)
else()
- set(CPACK_SOURCE_GENERATOR TARGZ)
+ set(CPACK_SOURCE_GENERATOR TARGZ)
endif()
# Include the packaging system now that we have it all set up
Modified: trunk/cppdom/CMakeLists.txt
===================================================================
--- trunk/cppdom/CMakeLists.txt 2012-07-30 15:14:17 UTC (rev 703)
+++ trunk/cppdom/CMakeLists.txt 2012-07-31 16:57:43 UTC (rev 704)
@@ -8,25 +8,25 @@
configure_file(version.h.in "${CMAKE_CURRENT_SOURCE_DIR}/version.h" @ONLY)
set(API
- config.h
- cppdom.h
- predicates.h
- shared_ptr.h
- xmlparser.h
- xmltokenizer.h
- version.h)
+ config.h
+ cppdom.h
+ predicates.h
+ shared_ptr.h
+ xmlparser.h
+ xmltokenizer.h
+ version.h)
set(EXT_API
- ext/OptionRepository.h)
+ ext/OptionRepository.h)
set(SOURCES
- cppdom.cpp
- xmlparser.cpp
- xmltokenizer.cpp
- ext/OptionRepository.cpp)
+ cppdom.cpp
+ xmlparser.cpp
+ xmltokenizer.cpp
+ ext/OptionRepository.cpp)
if(BOOST_FOUND)
- include_directories(${Boost_INCLUDE_DIRS})
- list(APPEND SOURCES SpiritParser.cpp)
- list(APPEND API SpiritParser.h)
+ include_directories(${Boost_INCLUDE_DIRS})
+ list(APPEND SOURCES SpiritParser.cpp)
+ list(APPEND API SpiritParser.h)
endif()
add_definitions(-DCPPDOM_EXPORTS)
@@ -39,13 +39,13 @@
add_library(cppdom SHARED ${API} ${EXT_API} ${SOURCES})
set_target_properties(cppdom PROPERTIES
- PUBLIC_HEADER "${API}"
- COMPILE_DEFINITIONS_DEBUG "CPPDOM_DEBUG")
+ PUBLIC_HEADER "${API}"
+ COMPILE_DEFINITIONS_DEBUG "CPPDOM_DEBUG")
install(TARGETS cppdom
- RUNTIME DESTINATION ${BIN_DIR} COMPONENT Runtime
- LIBRARY DESTINATION ${LIB_DIR} COMPONENT Runtime
- ARCHIVE DESTINATION ${ARCH_DIR} COMPONENT Development
- PUBLIC_HEADER DESTINATION ${INCLUDE_DIR}/cppdom COMPONENT Development)
+ RUNTIME DESTINATION ${BIN_DIR} COMPONENT Runtime
+ LIBRARY DESTINATION ${LIB_DIR} COMPONENT Runtime
+ ARCHIVE DESTINATION ${ARCH_DIR} COMPONENT Development
+ PUBLIC_HEADER DESTINATION ${INCLUDE_DIR}/cppdom COMPONENT Development)
install(FILES ${EXT_API}
- DESTINATION ${INCLUDE_DIR}/cppdom/ext
- COMPONENT Development)
+ DESTINATION ${INCLUDE_DIR}/cppdom/ext
+ COMPONENT Development)
Modified: trunk/test/CMakeLists.txt
===================================================================
--- trunk/test/CMakeLists.txt 2012-07-30 15:14:17 UTC (rev 703)
+++ trunk/test/CMakeLists.txt 2012-07-31 16:57:43 UTC (rev 704)
@@ -1,36 +1,36 @@
find_package(cppunit)
if(CPPUNIT_FOUND)
- add_subdirectory(suite)
+ add_subdirectory(suite)
endif()
if(BUILD_TESTING)
- include_directories(.)
+ include_directories(.)
- # maketree
- add_executable(maketree maketree.cpp)
- target_link_libraries(maketree cppdom)
- add_test(NAME maketree
- COMMAND maketree)
+ # maketree
+ add_executable(maketree maketree.cpp)
+ target_link_libraries(maketree cppdom)
+ add_test(NAME maketree
+ COMMAND maketree)
- # nodetest
- include(CopyResourcesToBuildTree)
- add_executable(nodetest nodetest.cpp game.xml)
- set_target_properties(nodetest PROPERTIES RESOURCE "game.xml")
- target_link_libraries(nodetest cppdom)
- copy_resources_to_build_tree(nodetest)
- add_test(NAME nodetest
- COMMAND nodetest)
- set_tests_properties(nodetest PROPERTIES
- FAIL_REGULAR_EXPRESSION "[eE]rror"
- PASS_REGULAR_EXPRESSION "in name: bokbokbok")
+ # nodetest
+ include(CopyResourcesToBuildTree)
+ add_executable(nodetest nodetest.cpp game.xml)
+ set_target_properties(nodetest PROPERTIES RESOURCE "game.xml")
+ target_link_libraries(nodetest cppdom)
+ copy_resources_to_build_tree(nodetest)
+ add_test(NAME nodetest
+ COMMAND nodetest)
+ set_tests_properties(nodetest PROPERTIES
+ FAIL_REGULAR_EXPRESSION "[eE]rror"
+ PASS_REGULAR_EXPRESSION "in name: bokbokbok")
- # parsetest
- add_executable(parsetest parsetest.cpp)
- target_link_libraries(parsetest cppdom)
- foreach(testfile game.xml hamlet.xml nodetest.xml test.xml)
- add_test(NAME parsetest-${testfile}
- COMMAND parsetest "${CMAKE_CURRENT_SOURCE_DIR}/${testfile}")
- set_tests_properties(parsetest-${testfile} PROPERTIES
- FAIL_REGULAR_EXPRESSION "[eE]rror")
- endforeach()
+ # parsetest
+ add_executable(parsetest parsetest.cpp)
+ target_link_libraries(parsetest cppdom)
+ foreach(testfile game.xml hamlet.xml nodetest.xml test.xml)
+ add_test(NAME parsetest-${testfile}
+ COMMAND parsetest "${CMAKE_CURRENT_SOURCE_DIR}/${testfile}")
+ set_tests_properties(parsetest-${testfile} PROPERTIES
+ FAIL_REGULAR_EXPRESSION "[eE]rror")
+ endforeach()
endif()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pat...@us...> - 2012-07-30 15:14:28
|
Revision: 703
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=703&view=rev
Author: patrickh
Date: 2012-07-30 15:14:17 +0000 (Mon, 30 Jul 2012)
Log Message:
-----------
Merge the following changes from the trunk:
r698: Remove empty directories.
r699: Generate verison.h based on the version information from the CMake
scripts. This officially breaks the SCons build.
r700: Correct the usage of lib and lib64 based on the build type.
r701: Correct the usage of lib and lib64 based on the build type.
r702: Only install SpiritParser.h if it is built into the library.
r703: Add cppdom-config back into the install target.
Submitted by: Doug McCorkle
Revision Links:
--------------
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=698&view=rev
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=699&view=rev
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=700&view=rev
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=701&view=rev
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=702&view=rev
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=703&view=rev
Modified Paths:
--------------
branches/1.2/CMakeLists.txt
branches/1.2/cppdom/CMakeLists.txt
Added Paths:
-----------
branches/1.2/cppdom/version.h.in
Removed Paths:
-------------
branches/1.2/cmake/cmake-2.8.0-modules/
branches/1.2/cmake/cmake-2.8.1-modules/
branches/1.2/cmake/cmake-2.8.3-modules/
branches/1.2/cmake/cmake-2.8.4-modules/
branches/1.2/cmake/cmake-2.9.0-modules/
branches/1.2/cmake/ghost-fake-stl/
branches/1.2/cmake/launcher-templates/
branches/1.2/cmake/module-docs/
branches/1.2/cmake/nested_targets/
branches/1.2/cmake/package/
branches/1.2/cmake/package-licensing/
branches/1.2/cmake/workarounds/
branches/1.2/cppdom/version.h
Modified: branches/1.2/CMakeLists.txt
===================================================================
--- branches/1.2/CMakeLists.txt 2012-07-30 15:05:22 UTC (rev 702)
+++ branches/1.2/CMakeLists.txt 2012-07-30 15:14:17 UTC (rev 703)
@@ -14,19 +14,28 @@
set(CPACK_PACKAGE_VERSION
"${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
set(VERSION_UNDERSCORES "${CPACK_PACKAGE_VERSION_MAJOR}_${CPACK_PACKAGE_VERSION_MINOR}_${CPACK_PACKAGE_VERSION_PATCH}")
+
###
# Set up options
###
+# TODO this is not ideal/complete
+if(CMAKE_SIZEOF_VOID_P EQUAL 8)
+ set(arch "x86_64")
+ set(ARCH_DIR lib64)
+else()
+ set(arch "x86")
+ set(ARCH_DIR lib)
+endif()
+
# Define directories
set(BIN_DIR bin)
-set(ARCH_DIR lib)
set(FLAGPOLL_INFO_DIR share/flagpoll)
if(WIN32)
set(LIB_DIR bin)
set(INCLUDE_DIR include)
else()
- set(LIB_DIR lib)
+ set(LIB_DIR ${ARCH_DIR})
set(INCLUDE_DIR include/cppdom-${CPACK_PACKAGE_VERSION})
endif()
@@ -37,12 +46,7 @@
set(exec_prefix "\${prefix}")
set(includedir "\${fp_file_cwd}/../../${INCLUDE_DIR}")
set(libdir "\${fp_file_cwd}/../../${LIB_DIR}")
-# TODO this is not ideal/complete
-if(CMAKE_SIZEOF_VOID_P EQUAL 8)
- set(arch "x86_64")
-else()
- set(arch "x86")
-endif()
+
if(CMAKE_COMPILER_IS_GNUCXX)
set(cppdom_cxxflags "-Wno-deprecated")
set(include_path_flag "-I")
@@ -60,6 +64,10 @@
DESTINATION ${FLAGPOLL_INFO_DIR}
COMPONENT Development)
+install(FILES cppdom-config
+ DESTINATION ${BIN_DIR}
+ COMPONENT Development)
+
###
# Perform build configuration of dependencies
###
Modified: branches/1.2/cppdom/CMakeLists.txt
===================================================================
--- branches/1.2/cppdom/CMakeLists.txt 2012-07-30 15:05:22 UTC (rev 702)
+++ branches/1.2/cppdom/CMakeLists.txt 2012-07-30 15:14:17 UTC (rev 703)
@@ -2,13 +2,16 @@
# 2009-2011 Ryan Pavlik <rp...@ia...>
# http://academic.cleardefinition.com/
# Iowa State University HCI Graduate Program/VRAC
+set(CPPDOM_VERSION_MAJOR "${CPACK_PACKAGE_VERSION_MAJOR}")
+set(CPPDOM_VERSION_MINOR "${CPACK_PACKAGE_VERSION_MINOR}")
+set(CPPDOM_VERSION_PATCH "${CPACK_PACKAGE_VERSION_PATCH}")
+configure_file(version.h.in "${CMAKE_CURRENT_SOURCE_DIR}/version.h" @ONLY)
set(API
config.h
cppdom.h
predicates.h
shared_ptr.h
- SpiritParser.h
xmlparser.h
xmltokenizer.h
version.h)
@@ -23,6 +26,7 @@
if(BOOST_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
list(APPEND SOURCES SpiritParser.cpp)
+ list(APPEND API SpiritParser.h)
endif()
add_definitions(-DCPPDOM_EXPORTS)
Deleted: branches/1.2/cppdom/version.h
===================================================================
--- branches/1.2/cppdom/version.h 2012-07-30 15:05:22 UTC (rev 702)
+++ branches/1.2/cppdom/version.h 2012-07-30 15:14:17 UTC (rev 703)
@@ -1,139 +0,0 @@
-/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil c-basic-offset: 3 -*- */
-// vim:cindent:ts=3:sw=3:et:tw=80:sta:
-/*************************************************************** cppdom-cpr beg
- *
- * cppdom was forked from the original xmlpp version 0.6 under the LGPL. This
- * new, branched xmlpp is under the same LGPL (of course) and is being
- * maintained by:
- * Kevin Meinert <sub...@us...>
- * Allen Bierbaum <al...@us...>
- * Ben Scott <non...@us...>
- *
- * -----------------------------------------------------------------
- *
- * xmlpp - an xml parser and validator written in C++
- * copyright (c) 2000-2001 Michael Fink
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- *
- * -----------------------------------------------------------------
- * File: $RCSfile$
- * Date modified: $Date$
- * Version: $Revision$
- * -----------------------------------------------------------------
- *
- ************************************************************ cppdom-cpr-end */
-#ifndef CPPDOM_VERSION_H
-#define CPPDOM_VERSION_H
-
-/** @file version.h
- * This file contains two useful items.
- * - 1. The preprocessor friendly CPPDOM_VERSION "string". It is in the form
- * <major><minor><patch> where each part has exactly 3 digits.
- * - 2. The C++ friendly variable, version, that contains the version as a
- * string. It is in the form of <major>.<minor>.<patch> where each part
- * has anywhere from 1 to 3 digits.
- */
-
-/**
- * This is the "human-readable" CPPDOM version _string_. It is of the form
- * <major><minor><patch>. Each part has exactly 3 digits.
- */
-// The major/minor/patch version (up to 3 digits each).
-#define CPPDOM_VERSION_MAJOR 1
-#define CPPDOM_VERSION_MINOR 2
-#define CPPDOM_VERSION_PATCH 0
-
-//--------------------------------------------------------------------------
-//--------------------------------------------------------------------------
-// To update the version number, do not modify anything below this line!!!!
-//--------------------------------------------------------------------------
-//--------------------------------------------------------------------------
-
-
-//--------------------------------------------------------------------------
-// Define the helper macros
-//--------------------------------------------------------------------------
-
-// These helper macros are used build up the CPPDOM_VERSION macro
-#define CPPDOM_GLUE(a,b) a ## b
-#define CPPDOM_XGLUE(a,b) CPPDOM_GLUE(a,b)
-
-// These helpr macros are used to facilitate a zero left fill
-#define CPPDOM_ZEROFILL(a) 0 ## a
-#define CPPDOM_XZEROFILL(a) CPPDOM_ZEROFILL(a)
-
-// Fix up the major version by doing a zero left fill
-#if CPPDOM_VERSION_MAJOR < 10
-# define CPPDOM_VERSION_MAJOR_FILLED \
- CPPDOM_XZEROFILL(CPPDOM_XZEROFILL(CPPDOM_VERSION_MAJOR))
-#elif CPPDOM_VERSION_MAJOR < 100
-# define CPPDOM_VERSION_MAJOR_FILLED CPPDOM_XZEROFILL(CPPDOM_VERSION_MAJOR)
-#else
-# define CPPDOM_VERSION_MAJOR_FILLED CPPDOM_VERSION_MAJOR
-#endif
-
-// Fix up the minor version by doing a zero left fill
-#if CPPDOM_VERSION_MINOR < 10
-# define CPPDOM_VERSION_MINOR_FILLED \
- CPPDOM_XZEROFILL(CPPDOM_XZEROFILL(CPPDOM_VERSION_MINOR))
-#elif CPPDOM_VERSION_MINOR < 100
-# define CPPDOM_VERSION_MINOR_FILLED CPPDOM_XZEROFILL(CPPDOM_VERSION_MINOR)
-#else
-# define CPPDOM_VERSION_MINOR_FILLED CPPDOM_VERSION_MINOR
-#endif
-
-// Fix up the patch version by doing a zero left fill
-#if CPPDOM_VERSION_PATCH < 10
-# define CPPDOM_VERSION_PATCH_FILLED \
- CPPDOM_XZEROFILL(CPPDOM_XZEROFILL(CPPDOM_VERSION_PATCH))
-#elif CPPDOM_VERSION_PATCH < 100
-# define CPPDOM_VERSION_PATCH_FILLED CPPDOM_XZEROFILL(CPPDOM_VERSION_PATCH)
-#else
-# define CPPDOM_VERSION_PATCH_FILLED CPPDOM_VERSION_PATCH
-#endif
-
-//--------------------------------------------------------------------------
-// Define the CPPDOM_VERSION macro
-//--------------------------------------------------------------------------
-
-// Build up the CPPDOM_VERSION macro by pasting the individual parts together
-/**
- * The is the preprocessor-friendly version string. It is in the form of
- * <major><minor><patch>. Each part has exactly 3 digits.
- */
-#define CPPDOM_VERSION \
- CPPDOM_XGLUE( \
- CPPDOM_XGLUE(CPPDOM_VERSION_MAJOR_FILLED, CPPDOM_VERSION_MINOR_FILLED), \
- CPPDOM_VERSION_PATCH_FILLED \
- )
-
-//--------------------------------------------------------------------------
-// Cleanup after ourselves and undef all internal macros.
-//--------------------------------------------------------------------------
-
-// Undef the all helper macros
-#undef CPPDOM_XGLUE
-#undef CPPDOM_GLUE
-#undef CPPDOM_ZEROFILL
-#undef CPPDOM_XZEROFILL
-
-// Undef the XXX_FILLED temporary macros
-#undef CPPDOM_VERSION_MAJOR_FILLED
-#undef CPPDOM_VERSION_MINOR_FILLED
-#undef CPPDOM_VERSION_PATCH_FILLED
-
-#endif
Copied: branches/1.2/cppdom/version.h.in (from rev 702, trunk/cppdom/version.h.in)
===================================================================
--- branches/1.2/cppdom/version.h.in (rev 0)
+++ branches/1.2/cppdom/version.h.in 2012-07-30 15:14:17 UTC (rev 703)
@@ -0,0 +1,139 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil c-basic-offset: 3 -*- */
+// vim:cindent:ts=3:sw=3:et:tw=80:sta:
+/*************************************************************** cppdom-cpr beg
+ *
+ * cppdom was forked from the original xmlpp version 0.6 under the LGPL. This
+ * new, branched xmlpp is under the same LGPL (of course) and is being
+ * maintained by:
+ * Kevin Meinert <sub...@us...>
+ * Allen Bierbaum <al...@us...>
+ * Ben Scott <non...@us...>
+ *
+ * -----------------------------------------------------------------
+ *
+ * xmlpp - an xml parser and validator written in C++
+ * copyright (c) 2000-2001 Michael Fink
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *
+ * -----------------------------------------------------------------
+ * File: $RCSfile$
+ * Date modified: $Date: 2011-05-01 11:07:55 -0500 (Sun, 01 May 2011) $
+ * Version: $Revision: 683 $
+ * -----------------------------------------------------------------
+ *
+ ************************************************************ cppdom-cpr-end */
+#ifndef CPPDOM_VERSION_H
+#define CPPDOM_VERSION_H
+
+/** @file version.h
+ * This file contains two useful items.
+ * - 1. The preprocessor friendly CPPDOM_VERSION "string". It is in the form
+ * <major><minor><patch> where each part has exactly 3 digits.
+ * - 2. The C++ friendly variable, version, that contains the version as a
+ * string. It is in the form of <major>.<minor>.<patch> where each part
+ * has anywhere from 1 to 3 digits.
+ */
+
+/**
+ * This is the "human-readable" CPPDOM version _string_. It is of the form
+ * <major><minor><patch>. Each part has exactly 3 digits.
+ */
+// The major/minor/patch version (up to 3 digits each).
+#define CPPDOM_VERSION_MAJOR @CPPDOM_VERSION_MAJOR@
+#define CPPDOM_VERSION_MINOR @CPPDOM_VERSION_MINOR@
+#define CPPDOM_VERSION_PATCH @CPPDOM_VERSION_PATCH@
+
+//--------------------------------------------------------------------------
+//--------------------------------------------------------------------------
+// To update the version number, do not modify anything below this line!!!!
+//--------------------------------------------------------------------------
+//--------------------------------------------------------------------------
+
+
+//--------------------------------------------------------------------------
+// Define the helper macros
+//--------------------------------------------------------------------------
+
+// These helper macros are used build up the CPPDOM_VERSION macro
+#define CPPDOM_GLUE(a,b) a ## b
+#define CPPDOM_XGLUE(a,b) CPPDOM_GLUE(a,b)
+
+// These helpr macros are used to facilitate a zero left fill
+#define CPPDOM_ZEROFILL(a) 0 ## a
+#define CPPDOM_XZEROFILL(a) CPPDOM_ZEROFILL(a)
+
+// Fix up the major version by doing a zero left fill
+#if CPPDOM_VERSION_MAJOR < 10
+# define CPPDOM_VERSION_MAJOR_FILLED \
+ CPPDOM_XZEROFILL(CPPDOM_XZEROFILL(CPPDOM_VERSION_MAJOR))
+#elif CPPDOM_VERSION_MAJOR < 100
+# define CPPDOM_VERSION_MAJOR_FILLED CPPDOM_XZEROFILL(CPPDOM_VERSION_MAJOR)
+#else
+# define CPPDOM_VERSION_MAJOR_FILLED CPPDOM_VERSION_MAJOR
+#endif
+
+// Fix up the minor version by doing a zero left fill
+#if CPPDOM_VERSION_MINOR < 10
+# define CPPDOM_VERSION_MINOR_FILLED \
+ CPPDOM_XZEROFILL(CPPDOM_XZEROFILL(CPPDOM_VERSION_MINOR))
+#elif CPPDOM_VERSION_MINOR < 100
+# define CPPDOM_VERSION_MINOR_FILLED CPPDOM_XZEROFILL(CPPDOM_VERSION_MINOR)
+#else
+# define CPPDOM_VERSION_MINOR_FILLED CPPDOM_VERSION_MINOR
+#endif
+
+// Fix up the patch version by doing a zero left fill
+#if CPPDOM_VERSION_PATCH < 10
+# define CPPDOM_VERSION_PATCH_FILLED \
+ CPPDOM_XZEROFILL(CPPDOM_XZEROFILL(CPPDOM_VERSION_PATCH))
+#elif CPPDOM_VERSION_PATCH < 100
+# define CPPDOM_VERSION_PATCH_FILLED CPPDOM_XZEROFILL(CPPDOM_VERSION_PATCH)
+#else
+# define CPPDOM_VERSION_PATCH_FILLED CPPDOM_VERSION_PATCH
+#endif
+
+//--------------------------------------------------------------------------
+// Define the CPPDOM_VERSION macro
+//--------------------------------------------------------------------------
+
+// Build up the CPPDOM_VERSION macro by pasting the individual parts together
+/**
+ * The is the preprocessor-friendly version string. It is in the form of
+ * <major><minor><patch>. Each part has exactly 3 digits.
+ */
+#define CPPDOM_VERSION \
+ CPPDOM_XGLUE( \
+ CPPDOM_XGLUE(CPPDOM_VERSION_MAJOR_FILLED, CPPDOM_VERSION_MINOR_FILLED), \
+ CPPDOM_VERSION_PATCH_FILLED \
+ )
+
+//--------------------------------------------------------------------------
+// Cleanup after ourselves and undef all internal macros.
+//--------------------------------------------------------------------------
+
+// Undef the all helper macros
+#undef CPPDOM_XGLUE
+#undef CPPDOM_GLUE
+#undef CPPDOM_ZEROFILL
+#undef CPPDOM_XZEROFILL
+
+// Undef the XXX_FILLED temporary macros
+#undef CPPDOM_VERSION_MAJOR_FILLED
+#undef CPPDOM_VERSION_MINOR_FILLED
+#undef CPPDOM_VERSION_PATCH_FILLED
+
+#endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pat...@us...> - 2012-07-30 15:05:33
|
Revision: 702
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=702&view=rev
Author: patrickh
Date: 2012-07-30 15:05:22 +0000 (Mon, 30 Jul 2012)
Log Message:
-----------
Add cppdom-config back into the install target.
Submitted by: Doug McCorkle
Modified Paths:
--------------
trunk/CMakeLists.txt
Modified: trunk/CMakeLists.txt
===================================================================
--- trunk/CMakeLists.txt 2012-07-30 15:04:41 UTC (rev 701)
+++ trunk/CMakeLists.txt 2012-07-30 15:05:22 UTC (rev 702)
@@ -64,6 +64,10 @@
DESTINATION ${FLAGPOLL_INFO_DIR}
COMPONENT Development)
+install(FILES cppdom-config
+ DESTINATION ${BIN_DIR}
+ COMPONENT Development)
+
###
# Perform build configuration of dependencies
###
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pat...@us...> - 2012-07-30 15:04:52
|
Revision: 701
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=701&view=rev
Author: patrickh
Date: 2012-07-30 15:04:41 +0000 (Mon, 30 Jul 2012)
Log Message:
-----------
Only install SpiritParser.h if it is built into the library.
Submitted by: Doug McCorkle
Modified Paths:
--------------
trunk/cppdom/CMakeLists.txt
Modified: trunk/cppdom/CMakeLists.txt
===================================================================
--- trunk/cppdom/CMakeLists.txt 2012-07-30 15:03:35 UTC (rev 700)
+++ trunk/cppdom/CMakeLists.txt 2012-07-30 15:04:41 UTC (rev 701)
@@ -12,7 +12,6 @@
cppdom.h
predicates.h
shared_ptr.h
- SpiritParser.h
xmlparser.h
xmltokenizer.h
version.h)
@@ -27,6 +26,7 @@
if(BOOST_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
list(APPEND SOURCES SpiritParser.cpp)
+ list(APPEND API SpiritParser.h)
endif()
add_definitions(-DCPPDOM_EXPORTS)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pat...@us...> - 2012-07-30 15:03:41
|
Revision: 700
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=700&view=rev
Author: patrickh
Date: 2012-07-30 15:03:35 +0000 (Mon, 30 Jul 2012)
Log Message:
-----------
Correct the usage of lib and lib64 based on the build type.
Submitted by: Doug McCorkle
Modified Paths:
--------------
trunk/CMakeLists.txt
Modified: trunk/CMakeLists.txt
===================================================================
--- trunk/CMakeLists.txt 2012-07-30 15:02:59 UTC (rev 699)
+++ trunk/CMakeLists.txt 2012-07-30 15:03:35 UTC (rev 700)
@@ -14,19 +14,28 @@
set(CPACK_PACKAGE_VERSION
"${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
set(VERSION_UNDERSCORES "${CPACK_PACKAGE_VERSION_MAJOR}_${CPACK_PACKAGE_VERSION_MINOR}_${CPACK_PACKAGE_VERSION_PATCH}")
+
###
# Set up options
###
+# TODO this is not ideal/complete
+if(CMAKE_SIZEOF_VOID_P EQUAL 8)
+ set(arch "x86_64")
+ set(ARCH_DIR lib64)
+else()
+ set(arch "x86")
+ set(ARCH_DIR lib)
+endif()
+
# Define directories
set(BIN_DIR bin)
-set(ARCH_DIR lib)
set(FLAGPOLL_INFO_DIR share/flagpoll)
if(WIN32)
set(LIB_DIR bin)
set(INCLUDE_DIR include)
else()
- set(LIB_DIR lib)
+ set(LIB_DIR ${ARCH_DIR})
set(INCLUDE_DIR include/cppdom-${CPACK_PACKAGE_VERSION})
endif()
@@ -37,12 +46,7 @@
set(exec_prefix "\${prefix}")
set(includedir "\${fp_file_cwd}/../../${INCLUDE_DIR}")
set(libdir "\${fp_file_cwd}/../../${LIB_DIR}")
-# TODO this is not ideal/complete
-if(CMAKE_SIZEOF_VOID_P EQUAL 8)
- set(arch "x86_64")
-else()
- set(arch "x86")
-endif()
+
if(CMAKE_COMPILER_IS_GNUCXX)
set(cppdom_cxxflags "-Wno-deprecated")
set(include_path_flag "-I")
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pat...@us...> - 2012-07-30 15:03:10
|
Revision: 699
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=699&view=rev
Author: patrickh
Date: 2012-07-30 15:02:59 +0000 (Mon, 30 Jul 2012)
Log Message:
-----------
Generate verison.h based on the version information from the CMake
scripts. This officially breaks the SCons build.
Submitted by: Doug McCorkle
Modified Paths:
--------------
trunk/cppdom/CMakeLists.txt
Added Paths:
-----------
trunk/cppdom/version.h.in
Removed Paths:
-------------
trunk/cppdom/version.h
Modified: trunk/cppdom/CMakeLists.txt
===================================================================
--- trunk/cppdom/CMakeLists.txt 2012-07-30 14:41:53 UTC (rev 698)
+++ trunk/cppdom/CMakeLists.txt 2012-07-30 15:02:59 UTC (rev 699)
@@ -2,6 +2,10 @@
# 2009-2011 Ryan Pavlik <rp...@ia...>
# http://academic.cleardefinition.com/
# Iowa State University HCI Graduate Program/VRAC
+set(CPPDOM_VERSION_MAJOR "${CPACK_PACKAGE_VERSION_MAJOR}")
+set(CPPDOM_VERSION_MINOR "${CPACK_PACKAGE_VERSION_MINOR}")
+set(CPPDOM_VERSION_PATCH "${CPACK_PACKAGE_VERSION_PATCH}")
+configure_file(version.h.in "${CMAKE_CURRENT_SOURCE_DIR}/version.h" @ONLY)
set(API
config.h
Deleted: trunk/cppdom/version.h
===================================================================
--- trunk/cppdom/version.h 2012-07-30 14:41:53 UTC (rev 698)
+++ trunk/cppdom/version.h 2012-07-30 15:02:59 UTC (rev 699)
@@ -1,139 +0,0 @@
-/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil c-basic-offset: 3 -*- */
-// vim:cindent:ts=3:sw=3:et:tw=80:sta:
-/*************************************************************** cppdom-cpr beg
- *
- * cppdom was forked from the original xmlpp version 0.6 under the LGPL. This
- * new, branched xmlpp is under the same LGPL (of course) and is being
- * maintained by:
- * Kevin Meinert <sub...@us...>
- * Allen Bierbaum <al...@us...>
- * Ben Scott <non...@us...>
- *
- * -----------------------------------------------------------------
- *
- * xmlpp - an xml parser and validator written in C++
- * copyright (c) 2000-2001 Michael Fink
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- *
- * -----------------------------------------------------------------
- * File: $RCSfile$
- * Date modified: $Date$
- * Version: $Revision$
- * -----------------------------------------------------------------
- *
- ************************************************************ cppdom-cpr-end */
-#ifndef CPPDOM_VERSION_H
-#define CPPDOM_VERSION_H
-
-/** @file version.h
- * This file contains two useful items.
- * - 1. The preprocessor friendly CPPDOM_VERSION "string". It is in the form
- * <major><minor><patch> where each part has exactly 3 digits.
- * - 2. The C++ friendly variable, version, that contains the version as a
- * string. It is in the form of <major>.<minor>.<patch> where each part
- * has anywhere from 1 to 3 digits.
- */
-
-/**
- * This is the "human-readable" CPPDOM version _string_. It is of the form
- * <major><minor><patch>. Each part has exactly 3 digits.
- */
-// The major/minor/patch version (up to 3 digits each).
-#define CPPDOM_VERSION_MAJOR 1
-#define CPPDOM_VERSION_MINOR 3
-#define CPPDOM_VERSION_PATCH 0
-
-//--------------------------------------------------------------------------
-//--------------------------------------------------------------------------
-// To update the version number, do not modify anything below this line!!!!
-//--------------------------------------------------------------------------
-//--------------------------------------------------------------------------
-
-
-//--------------------------------------------------------------------------
-// Define the helper macros
-//--------------------------------------------------------------------------
-
-// These helper macros are used build up the CPPDOM_VERSION macro
-#define CPPDOM_GLUE(a,b) a ## b
-#define CPPDOM_XGLUE(a,b) CPPDOM_GLUE(a,b)
-
-// These helpr macros are used to facilitate a zero left fill
-#define CPPDOM_ZEROFILL(a) 0 ## a
-#define CPPDOM_XZEROFILL(a) CPPDOM_ZEROFILL(a)
-
-// Fix up the major version by doing a zero left fill
-#if CPPDOM_VERSION_MAJOR < 10
-# define CPPDOM_VERSION_MAJOR_FILLED \
- CPPDOM_XZEROFILL(CPPDOM_XZEROFILL(CPPDOM_VERSION_MAJOR))
-#elif CPPDOM_VERSION_MAJOR < 100
-# define CPPDOM_VERSION_MAJOR_FILLED CPPDOM_XZEROFILL(CPPDOM_VERSION_MAJOR)
-#else
-# define CPPDOM_VERSION_MAJOR_FILLED CPPDOM_VERSION_MAJOR
-#endif
-
-// Fix up the minor version by doing a zero left fill
-#if CPPDOM_VERSION_MINOR < 10
-# define CPPDOM_VERSION_MINOR_FILLED \
- CPPDOM_XZEROFILL(CPPDOM_XZEROFILL(CPPDOM_VERSION_MINOR))
-#elif CPPDOM_VERSION_MINOR < 100
-# define CPPDOM_VERSION_MINOR_FILLED CPPDOM_XZEROFILL(CPPDOM_VERSION_MINOR)
-#else
-# define CPPDOM_VERSION_MINOR_FILLED CPPDOM_VERSION_MINOR
-#endif
-
-// Fix up the patch version by doing a zero left fill
-#if CPPDOM_VERSION_PATCH < 10
-# define CPPDOM_VERSION_PATCH_FILLED \
- CPPDOM_XZEROFILL(CPPDOM_XZEROFILL(CPPDOM_VERSION_PATCH))
-#elif CPPDOM_VERSION_PATCH < 100
-# define CPPDOM_VERSION_PATCH_FILLED CPPDOM_XZEROFILL(CPPDOM_VERSION_PATCH)
-#else
-# define CPPDOM_VERSION_PATCH_FILLED CPPDOM_VERSION_PATCH
-#endif
-
-//--------------------------------------------------------------------------
-// Define the CPPDOM_VERSION macro
-//--------------------------------------------------------------------------
-
-// Build up the CPPDOM_VERSION macro by pasting the individual parts together
-/**
- * The is the preprocessor-friendly version string. It is in the form of
- * <major><minor><patch>. Each part has exactly 3 digits.
- */
-#define CPPDOM_VERSION \
- CPPDOM_XGLUE( \
- CPPDOM_XGLUE(CPPDOM_VERSION_MAJOR_FILLED, CPPDOM_VERSION_MINOR_FILLED), \
- CPPDOM_VERSION_PATCH_FILLED \
- )
-
-//--------------------------------------------------------------------------
-// Cleanup after ourselves and undef all internal macros.
-//--------------------------------------------------------------------------
-
-// Undef the all helper macros
-#undef CPPDOM_XGLUE
-#undef CPPDOM_GLUE
-#undef CPPDOM_ZEROFILL
-#undef CPPDOM_XZEROFILL
-
-// Undef the XXX_FILLED temporary macros
-#undef CPPDOM_VERSION_MAJOR_FILLED
-#undef CPPDOM_VERSION_MINOR_FILLED
-#undef CPPDOM_VERSION_PATCH_FILLED
-
-#endif
Added: trunk/cppdom/version.h.in
===================================================================
--- trunk/cppdom/version.h.in (rev 0)
+++ trunk/cppdom/version.h.in 2012-07-30 15:02:59 UTC (rev 699)
@@ -0,0 +1,139 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil c-basic-offset: 3 -*- */
+// vim:cindent:ts=3:sw=3:et:tw=80:sta:
+/*************************************************************** cppdom-cpr beg
+ *
+ * cppdom was forked from the original xmlpp version 0.6 under the LGPL. This
+ * new, branched xmlpp is under the same LGPL (of course) and is being
+ * maintained by:
+ * Kevin Meinert <sub...@us...>
+ * Allen Bierbaum <al...@us...>
+ * Ben Scott <non...@us...>
+ *
+ * -----------------------------------------------------------------
+ *
+ * xmlpp - an xml parser and validator written in C++
+ * copyright (c) 2000-2001 Michael Fink
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *
+ * -----------------------------------------------------------------
+ * File: $RCSfile$
+ * Date modified: $Date: 2011-05-01 11:07:55 -0500 (Sun, 01 May 2011) $
+ * Version: $Revision: 683 $
+ * -----------------------------------------------------------------
+ *
+ ************************************************************ cppdom-cpr-end */
+#ifndef CPPDOM_VERSION_H
+#define CPPDOM_VERSION_H
+
+/** @file version.h
+ * This file contains two useful items.
+ * - 1. The preprocessor friendly CPPDOM_VERSION "string". It is in the form
+ * <major><minor><patch> where each part has exactly 3 digits.
+ * - 2. The C++ friendly variable, version, that contains the version as a
+ * string. It is in the form of <major>.<minor>.<patch> where each part
+ * has anywhere from 1 to 3 digits.
+ */
+
+/**
+ * This is the "human-readable" CPPDOM version _string_. It is of the form
+ * <major><minor><patch>. Each part has exactly 3 digits.
+ */
+// The major/minor/patch version (up to 3 digits each).
+#define CPPDOM_VERSION_MAJOR @CPPDOM_VERSION_MAJOR@
+#define CPPDOM_VERSION_MINOR @CPPDOM_VERSION_MINOR@
+#define CPPDOM_VERSION_PATCH @CPPDOM_VERSION_PATCH@
+
+//--------------------------------------------------------------------------
+//--------------------------------------------------------------------------
+// To update the version number, do not modify anything below this line!!!!
+//--------------------------------------------------------------------------
+//--------------------------------------------------------------------------
+
+
+//--------------------------------------------------------------------------
+// Define the helper macros
+//--------------------------------------------------------------------------
+
+// These helper macros are used build up the CPPDOM_VERSION macro
+#define CPPDOM_GLUE(a,b) a ## b
+#define CPPDOM_XGLUE(a,b) CPPDOM_GLUE(a,b)
+
+// These helpr macros are used to facilitate a zero left fill
+#define CPPDOM_ZEROFILL(a) 0 ## a
+#define CPPDOM_XZEROFILL(a) CPPDOM_ZEROFILL(a)
+
+// Fix up the major version by doing a zero left fill
+#if CPPDOM_VERSION_MAJOR < 10
+# define CPPDOM_VERSION_MAJOR_FILLED \
+ CPPDOM_XZEROFILL(CPPDOM_XZEROFILL(CPPDOM_VERSION_MAJOR))
+#elif CPPDOM_VERSION_MAJOR < 100
+# define CPPDOM_VERSION_MAJOR_FILLED CPPDOM_XZEROFILL(CPPDOM_VERSION_MAJOR)
+#else
+# define CPPDOM_VERSION_MAJOR_FILLED CPPDOM_VERSION_MAJOR
+#endif
+
+// Fix up the minor version by doing a zero left fill
+#if CPPDOM_VERSION_MINOR < 10
+# define CPPDOM_VERSION_MINOR_FILLED \
+ CPPDOM_XZEROFILL(CPPDOM_XZEROFILL(CPPDOM_VERSION_MINOR))
+#elif CPPDOM_VERSION_MINOR < 100
+# define CPPDOM_VERSION_MINOR_FILLED CPPDOM_XZEROFILL(CPPDOM_VERSION_MINOR)
+#else
+# define CPPDOM_VERSION_MINOR_FILLED CPPDOM_VERSION_MINOR
+#endif
+
+// Fix up the patch version by doing a zero left fill
+#if CPPDOM_VERSION_PATCH < 10
+# define CPPDOM_VERSION_PATCH_FILLED \
+ CPPDOM_XZEROFILL(CPPDOM_XZEROFILL(CPPDOM_VERSION_PATCH))
+#elif CPPDOM_VERSION_PATCH < 100
+# define CPPDOM_VERSION_PATCH_FILLED CPPDOM_XZEROFILL(CPPDOM_VERSION_PATCH)
+#else
+# define CPPDOM_VERSION_PATCH_FILLED CPPDOM_VERSION_PATCH
+#endif
+
+//--------------------------------------------------------------------------
+// Define the CPPDOM_VERSION macro
+//--------------------------------------------------------------------------
+
+// Build up the CPPDOM_VERSION macro by pasting the individual parts together
+/**
+ * The is the preprocessor-friendly version string. It is in the form of
+ * <major><minor><patch>. Each part has exactly 3 digits.
+ */
+#define CPPDOM_VERSION \
+ CPPDOM_XGLUE( \
+ CPPDOM_XGLUE(CPPDOM_VERSION_MAJOR_FILLED, CPPDOM_VERSION_MINOR_FILLED), \
+ CPPDOM_VERSION_PATCH_FILLED \
+ )
+
+//--------------------------------------------------------------------------
+// Cleanup after ourselves and undef all internal macros.
+//--------------------------------------------------------------------------
+
+// Undef the all helper macros
+#undef CPPDOM_XGLUE
+#undef CPPDOM_GLUE
+#undef CPPDOM_ZEROFILL
+#undef CPPDOM_XZEROFILL
+
+// Undef the XXX_FILLED temporary macros
+#undef CPPDOM_VERSION_MAJOR_FILLED
+#undef CPPDOM_VERSION_MINOR_FILLED
+#undef CPPDOM_VERSION_PATCH_FILLED
+
+#endif
Property changes on: trunk/cppdom/version.h.in
___________________________________________________________________
Added: svn:eol-style
+ native
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pat...@us...> - 2012-07-30 14:42:02
|
Revision: 698
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=698&view=rev
Author: patrickh
Date: 2012-07-30 14:41:53 +0000 (Mon, 30 Jul 2012)
Log Message:
-----------
Remove empty directories.
Removed Paths:
-------------
trunk/cmake/cmake-2.8.0-modules/
trunk/cmake/cmake-2.8.1-modules/
trunk/cmake/cmake-2.8.3-modules/
trunk/cmake/cmake-2.8.4-modules/
trunk/cmake/cmake-2.9.0-modules/
trunk/cmake/ghost-fake-stl/
trunk/cmake/launcher-templates/
trunk/cmake/module-docs/
trunk/cmake/nested_targets/
trunk/cmake/package/
trunk/cmake/package-licensing/
trunk/cmake/workarounds/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pat...@us...> - 2012-07-27 22:31:09
|
Revision: 697
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=697&view=rev
Author: patrickh
Date: 2012-07-27 22:31:03 +0000 (Fri, 27 Jul 2012)
Log Message:
-----------
Set the package version to 1.2.0.
Modified Paths:
--------------
branches/1.2/CMakeLists.txt
Modified: branches/1.2/CMakeLists.txt
===================================================================
--- branches/1.2/CMakeLists.txt 2012-07-27 22:30:15 UTC (rev 696)
+++ branches/1.2/CMakeLists.txt 2012-07-27 22:31:03 UTC (rev 697)
@@ -9,8 +9,8 @@
project(cppdom)
set(CPACK_PACKAGE_VERSION_MAJOR "1")
-set(CPACK_PACKAGE_VERSION_MINOR "0")
-set(CPACK_PACKAGE_VERSION_PATCH "3")
+set(CPACK_PACKAGE_VERSION_MINOR "2")
+set(CPACK_PACKAGE_VERSION_PATCH "0")
set(CPACK_PACKAGE_VERSION
"${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
set(VERSION_UNDERSCORES "${CPACK_PACKAGE_VERSION_MAJOR}_${CPACK_PACKAGE_VERSION_MINOR}_${CPACK_PACKAGE_VERSION_PATCH}")
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pat...@us...> - 2012-07-27 22:30:25
|
Revision: 696
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=696&view=rev
Author: patrickh
Date: 2012-07-27 22:30:15 +0000 (Fri, 27 Jul 2012)
Log Message:
-----------
MFT [r694]: Remove unneeded CMake stuff.
Submitted by: Doug McCorkle
Revision Links:
--------------
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=694&view=rev
Modified Paths:
--------------
branches/1.2/CMakeLists.txt
Removed Paths:
-------------
branches/1.2/cmake/BoostTestTargets.cmake
branches/1.2/cmake/BoostTestTargetsDynamic.h
branches/1.2/cmake/BoostTestTargetsIncluded.h
branches/1.2/cmake/BoostTestTargetsStatic.h
branches/1.2/cmake/BundleOSGPlugins.cmake
branches/1.2/cmake/BundleOSGRuntime.cmake
branches/1.2/cmake/BundleVRJ22Runtime.cmake
branches/1.2/cmake/BundleVRJ30Runtime.cmake
branches/1.2/cmake/CheckMacHIDAPI.cmake
branches/1.2/cmake/CheckMacHIDAPI.cpp
branches/1.2/cmake/CheckVersion.cmake
branches/1.2/cmake/CleanDirectoryList.cmake
branches/1.2/cmake/CleanLibraryList.cmake
branches/1.2/cmake/CppcheckTargets.cmake
branches/1.2/cmake/CreateDashboardScripts.cmake
branches/1.2/cmake/CreateImportedTarget.cmake
branches/1.2/cmake/CreateLaunchers.cmake
branches/1.2/cmake/DashboardScript.cmake.in
branches/1.2/cmake/DoxygenTargets.cmake
branches/1.2/cmake/DoxygenTargets.doxyfile.in
branches/1.2/cmake/EnableExtraCompilerWarnings.cmake
branches/1.2/cmake/EnableProfiling.cmake
branches/1.2/cmake/FileCopyTargets.cmake
branches/1.2/cmake/FindALUT.cmake
branches/1.2/cmake/FindBluez.cmake
branches/1.2/cmake/FindDCubed.cmake
branches/1.2/cmake/FindFlagpoll.cmake
branches/1.2/cmake/FindGDB.cmake
branches/1.2/cmake/FindGHOST.cmake
branches/1.2/cmake/FindGLUI.cmake
branches/1.2/cmake/FindGLUT.cmake
branches/1.2/cmake/FindGMTL.cmake
branches/1.2/cmake/FindGPM.cmake
branches/1.2/cmake/FindGadgeteer12.cmake
branches/1.2/cmake/FindGadgeteer20.cmake
branches/1.2/cmake/FindGlove5DT.cmake
branches/1.2/cmake/FindHIDAPI.cmake
branches/1.2/cmake/FindJCCL12.cmake
branches/1.2/cmake/FindJCCL14.cmake
branches/1.2/cmake/FindJtTk.cmake
branches/1.2/cmake/FindJtTk.stampkey.cmake.in
branches/1.2/cmake/FindLAPACKLibs.cmake
branches/1.2/cmake/FindLibusb1.cmake
branches/1.2/cmake/FindLuabind.cmake
branches/1.2/cmake/FindLyX.cmake
branches/1.2/cmake/FindMacHID.cmake
branches/1.2/cmake/FindOpenCV.cmake
branches/1.2/cmake/FindOpenHaptics.cmake
branches/1.2/cmake/FindOpenHaptics.cpp
branches/1.2/cmake/FindParasolid.cmake
branches/1.2/cmake/FindSonix12.cmake
branches/1.2/cmake/FindSonix14.cmake
branches/1.2/cmake/FindTR1.cmake
branches/1.2/cmake/FindTooN.cmake
branches/1.2/cmake/FindTooNtag.cmake
branches/1.2/cmake/FindTweek12.cmake
branches/1.2/cmake/FindTweek14.cmake
branches/1.2/cmake/FindVPR20.cmake
branches/1.2/cmake/FindVPR22.cmake
branches/1.2/cmake/FindVPS.cmake
branches/1.2/cmake/FindVRJ22.cmake
branches/1.2/cmake/FindVRJ30.cmake
branches/1.2/cmake/FindVRJOGL22.cmake
branches/1.2/cmake/FindVRJOGL30.cmake
branches/1.2/cmake/FindVRJuggler.cmake
branches/1.2/cmake/FindVRJuggler22.cmake
branches/1.2/cmake/FindVRJuggler30.cmake
branches/1.2/cmake/FindVRPN.cmake
branches/1.2/cmake/FindVirtuoseAPI.cmake
branches/1.2/cmake/FindVirtuoseVPP.cmake
branches/1.2/cmake/FindWiiSCAAT.cmake
branches/1.2/cmake/FindWiiUse.cmake
branches/1.2/cmake/FindWinHID.cmake
branches/1.2/cmake/Findargp.cmake
branches/1.2/cmake/Findcppcheck.cmake
branches/1.2/cmake/Findcppcheck.cpp
branches/1.2/cmake/Findcutil.cmake
branches/1.2/cmake/Finddb2pdf.cmake
branches/1.2/cmake/FindosgLua.cmake
branches/1.2/cmake/Findquatlib.cmake
branches/1.2/cmake/GetCPUDetails.cmake
branches/1.2/cmake/GetCompilerInfoString.cmake
branches/1.2/cmake/GetDirectoryList.cmake
branches/1.2/cmake/GetFileList.cmake
branches/1.2/cmake/GetForceIncludeDefinitions.cmake
branches/1.2/cmake/GetGitRevisionDescription.cmake
branches/1.2/cmake/GetGitRevisionDescription.cmake.in
branches/1.2/cmake/GetSubprojectStatus.cmake
branches/1.2/cmake/LICENSE_1_0.txt
branches/1.2/cmake/Licensing.cmake
branches/1.2/cmake/ListCombinations.cmake
branches/1.2/cmake/ListFilter.cmake
branches/1.2/cmake/LuaTargets.cmake
branches/1.2/cmake/MSVCMultipleProcessCompile.cmake
branches/1.2/cmake/MSVCStaticRuntime.cmake
branches/1.2/cmake/MSVCVerboseLinking.cmake
branches/1.2/cmake/MakeVRJugglerAppBundle.cmake
branches/1.2/cmake/MakeVRJugglerAppBundle30.cmake
branches/1.2/cmake/OptionRequires.cmake
branches/1.2/cmake/PrefixListGlob.cmake
branches/1.2/cmake/ProgramFilesGlob.cmake
branches/1.2/cmake/README.markdown
branches/1.2/cmake/ResetConfigurations.cmake
branches/1.2/cmake/SearchProgramFilesForOpenSceneGraph.cmake
branches/1.2/cmake/SetDefaultBuildType.cmake
branches/1.2/cmake/SplitLibraryList.cmake
branches/1.2/cmake/StampSourcesWithVersion.cmake
branches/1.2/cmake/StampSourcesWithVersion.sed.in
branches/1.2/cmake/TCHARWorkaround.cmake
branches/1.2/cmake/UseBackportedModules.cmake
branches/1.2/cmake/UseTR1.cmake
branches/1.2/cmake/WarningDev.cmake
branches/1.2/cmake/cmake-2.8.0-modules/features/SelectLibraryConfigurations.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindOpenSceneGraph.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindOpenThreads.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/Findosg.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgAnimation.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgDB.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgFX.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgGA.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgIntrospection.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgManipulator.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgParticle.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgProducer.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgShadow.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgSim.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgTerrain.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgText.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgUtil.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgViewer.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgVolume.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgWidget.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/Findosg_functions.cmake
branches/1.2/cmake/cmake-2.8.1-modules/patchctestbug10149/CTest.cmake
branches/1.2/cmake/cmake-2.8.1-modules/patchctestbug10149/CTestScriptMode.cmake
branches/1.2/cmake/cmake-2.8.1-modules/patchctestbug10149/CTestTargets.cmake
branches/1.2/cmake/cmake-2.8.3-modules/FixWinInstallPrefix.cmake
branches/1.2/cmake/cmake-2.8.3-modules/autoinclude.cmake
branches/1.2/cmake/cmake-2.8.4-modules/ImproveEclipseGCCErrors.cmake
branches/1.2/cmake/cmake-2.8.4-modules/autoinclude.cmake
branches/1.2/cmake/cmake-2.8.4-modules/boost/FindBoost.cmake
branches/1.2/cmake/cmake-2.9.0-modules/RequireOutOfSourceBuild.cmake
branches/1.2/cmake/cmake-2.9.0-modules/autoinclude.cmake
branches/1.2/cmake/export-to-directory.sh
branches/1.2/cmake/ghost-fake-stl/iostream.h
branches/1.2/cmake/ghost-fake-stl/list.h
branches/1.2/cmake/ghost-fake-stl/set.h
branches/1.2/cmake/ghost-fake-stl/vector.h
branches/1.2/cmake/launcher-templates/genericlauncher.cmd.in
branches/1.2/cmake/launcher-templates/genericlauncher.sh.in
branches/1.2/cmake/launcher-templates/launcher.env.cmd.in
branches/1.2/cmake/launcher-templates/launcher.env.sh.in
branches/1.2/cmake/launcher-templates/perconfig.vcproj.user.in
branches/1.2/cmake/launcher-templates/targetlauncher.cmd.in
branches/1.2/cmake/launcher-templates/targetlauncher.sh.in
branches/1.2/cmake/launcher-templates/vcproj.user.in
branches/1.2/cmake/module-docs/AllModuleDependencies.dot
branches/1.2/cmake/module-docs/Example-FindMyPackage-UsingImportedTargets.cmake
branches/1.2/cmake/module-docs/Example-FindMyPackage.cmake
branches/1.2/cmake/module-docs/Example-FindMySimplePackage.cmake
branches/1.2/cmake/module-help.html
branches/1.2/cmake/module-help.txt
branches/1.2/cmake/nested_targets/DCubed/CMakeLists.txt
branches/1.2/cmake/nested_targets/DCubed/d3ew_p/CMakeLists.txt
branches/1.2/cmake/nested_targets/DCubed/d3ew_scene/CMakeLists.txt
branches/1.2/cmake/nested_targets/OpenHaptics/CMakeLists.txt
branches/1.2/cmake/nested_targets/Parasolid/CMakeLists.txt
branches/1.2/cmake/nested_targets/cutil/CMakeLists.txt
branches/1.2/cmake/package/macosx/Resources/en.lproj/MainMenu.nib/classes.nib
branches/1.2/cmake/package/macosx/Resources/en.lproj/MainMenu.nib/info.nib
branches/1.2/cmake/package/macosx/Resources/vrjuggler.plist
branches/1.2/cmake/package/macosx/VRJuggler22BundleInfo.plist.in
branches/1.2/cmake/package/macosx/VRJuggler30BundleInfo.plist.in
branches/1.2/cmake/package/macosx/fixupbundle.cmake.in
branches/1.2/cmake/package-licensing/Boost.cmake
branches/1.2/cmake/package-licensing/Eigen.cmake
branches/1.2/cmake/package-licensing/FLTK.cmake
branches/1.2/cmake/package-licensing/Lua.cmake
branches/1.2/cmake/package-licensing/LuaBind.cmake
branches/1.2/cmake/package-licensing/OpenHapticsAcademicEdition.cmake
branches/1.2/cmake/package-licensing/OpenSceneGraph.cmake
branches/1.2/cmake/package-licensing/PhysicalModelingUtils.cmake
branches/1.2/cmake/package-licensing/Qt-LGPL.cmake
branches/1.2/cmake/package-licensing/VPS.cmake
branches/1.2/cmake/package-licensing/VRJuggLua.cmake
branches/1.2/cmake/package-licensing/VRJuggler.cmake
branches/1.2/cmake/package-licensing/VirtuoseAPI.cmake
branches/1.2/cmake/package-licensing/osgLua.cmake
branches/1.2/cmake/update-help.sh
branches/1.2/cmake/workarounds/mac-alut-framework/AL/alut.h
branches/1.2/cmake/workarounds/mac-gl/GL/gl.h
branches/1.2/cmake/workarounds/mac-gl/GL/glui.h
branches/1.2/cmake/workarounds/mac-gl/GL/glut.h
branches/1.2/cmake/workarounds/mac-openal/AL/al.h
branches/1.2/cmake/workarounds/mac-openal/AL/alc.h
branches/1.2/cmake/workarounds/tchar/tchar.h
Modified: branches/1.2/CMakeLists.txt
===================================================================
--- branches/1.2/CMakeLists.txt 2012-07-27 22:21:58 UTC (rev 695)
+++ branches/1.2/CMakeLists.txt 2012-07-27 22:30:15 UTC (rev 696)
@@ -3,7 +3,7 @@
# http://academic.cleardefinition.com/
# Iowa State University HCI Graduate Program/VRAC
-cmake_minimum_required(VERSION 2.6.2)
+cmake_minimum_required(VERSION 2.8.8)
# Set package properties
project(cppdom)
@@ -64,7 +64,6 @@
# Perform build configuration of dependencies
###
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
-include(UseBackportedModules)
include(CTest)
find_package(Boost)
Deleted: branches/1.2/cmake/BoostTestTargets.cmake
===================================================================
--- branches/1.2/cmake/BoostTestTargets.cmake 2012-07-27 22:21:58 UTC (rev 695)
+++ branches/1.2/cmake/BoostTestTargets.cmake 2012-07-27 22:30:15 UTC (rev 696)
@@ -1,274 +0,0 @@
-# - Add tests using boost::test
-#
-# Add this line to your test files in place of including a basic boost test header:
-# #include <BoostTestTargetConfig.h>
-#
-# If you cannot do that and must use the included form for a given test,
-# include the line
-# // OVERRIDE_BOOST_TEST_INCLUDED_WARNING
-# in the same file with the boost test include.
-#
-# include(BoostTestTargets)
-# add_boost_test(<testdriver_name> SOURCES <source1> [<more sources...>]
-# [FAIL_REGULAR_EXPRESSION <additional fail regex>]
-# [LAUNCHER <generic launcher script>]
-# [LIBRARIES <library> [<library>...]]
-# [RESOURCES <resource> [<resource>...]]
-# [TESTS <testcasename> [<testcasename>...]])
-#
-# If for some reason you need access to the executable target created,
-# it can be found in ${${testdriver_name}_TARGET_NAME} as specified when
-# you called add_boost_test
-#
-# Requires CMake 2.6 or newer (uses the 'function' command)
-#
-# Requires:
-# GetForceIncludeDefinitions
-# CopyResourcesToBuildTree
-#
-# Original Author:
-# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
-# http://academic.cleardefinition.com
-# Iowa State University HCI Graduate Program/VRAC
-#
-# Copyright Iowa State University 2009-2010.
-# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or copy at
-# http://www.boost.org/LICENSE_1_0.txt)
-
-if(__add_boost_test)
- return()
-endif()
-set(__add_boost_test YES)
-
-set(BOOST_TEST_TARGET_PREFIX "boosttest")
-
-if(NOT Boost_FOUND)
- find_package(Boost 1.34.0 QUIET)
-endif()
-if("${Boost_VERSION}0" LESS "1034000")
- set(_shared_msg
- "NOTE: boost::test-based targets and tests cannot "
- "be added: boost >= 1.34.0 required but not found. "
- "(found: '${Boost_VERSION}'; want >=103400) ")
- if(BUILD_TESTING)
- message(FATAL_ERROR
- ${_shared_msg}
- "You may disable BUILD_TESTING to continue without the "
- "tests.")
- else()
- message(STATUS
- ${_shared_msg}
- "BUILD_TESTING disabled, so continuing anyway.")
- endif()
-endif()
-
-include(GetForceIncludeDefinitions)
-include(CopyResourcesToBuildTree)
-
-if(Boost_FOUND AND NOT "${Boost_VERSION}0" LESS "1034000")
- set(_boosttesttargets_libs)
- set(_boostConfig "BoostTestTargetsIncluded.h")
- if(NOT Boost_UNIT_TEST_FRAMEWORK_LIBRARY)
- find_package(Boost 1.34.0 QUIET COMPONENTS unit_test_framework)
- endif()
- if(Boost_UNIT_TEST_FRAMEWORK_LIBRARY)
- set(_boosttesttargets_libs "${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}")
- if(Boost_USE_STATIC_LIBS)
- set(_boostConfig "BoostTestTargetsStatic.h")
- else()
- if(NOT APPLE)
- set(_boostConfig "BoostTestTargetsDynamic.h")
- endif()
- endif()
- endif()
- get_filename_component(_moddir ${CMAKE_CURRENT_LIST_FILE} PATH)
- configure_file("${_moddir}/${_boostConfig}"
- "${CMAKE_CURRENT_BINARY_DIR}/BoostTestTargetConfig.h"
- COPYONLY)
- include_directories("${CMAKE_CURRENT_BINARY_DIR}")
-endif()
-
-function(add_boost_test _name)
- if(NOT BUILD_TESTING)
- return()
- endif()
- if("${CMAKE_VERSION}" VERSION_LESS "2.8.0")
- if(NOT "${_boost_test_cmakever_pestered}x" EQUALS "${CMAKE_VERSION}x")
- message(STATUS
- "Not adding boost::test targets - CMake 2.8.0 or newer required, using ${CMAKE_VERSION}")
- set(_boost_test_cmakever_pestered
- "${CMAKE_VERSION}"
- CACHE
- INTERNAL
- ""
- FORCE)
- endif()
- return()
- endif()
-
- # parse arguments
- set(_nowhere)
- set(_curdest _nowhere)
- set(_val_args
- SOURCES
- FAIL_REGULAR_EXPRESSION
- LAUNCHER
- LIBRARIES
- RESOURCES
- TESTS)
- set(_bool_args
- USE_COMPILED_LIBRARY)
- foreach(_arg ${_val_args} ${_bool_args})
- set(${_arg})
- endforeach()
- foreach(_element ${ARGN})
- list(FIND _val_args "${_element}" _val_arg_find)
- list(FIND _bool_args "${_element}" _bool_arg_find)
- if("${_val_arg_find}" GREATER "-1")
- set(_curdest "${_element}")
- elseif("${_bool_arg_find}" GREATER "-1")
- set("${_element}" ON)
- set(_curdest _nowhere)
- else()
- list(APPEND ${_curdest} "${_element}")
- endif()
- endforeach()
-
- if(_nowhere)
- message(FATAL_ERROR "Syntax error in use of add_boost_test!")
- endif()
-
- if(NOT SOURCES)
- message(FATAL_ERROR
- "Syntax error in use of add_boost_test: at least one source file required!")
- endif()
-
- if(Boost_FOUND AND NOT "${Boost_VERSION}0" LESS "1034000")
-
- include_directories(${Boost_INCLUDE_DIRS})
-
- set(includeType)
- foreach(src ${SOURCES})
- file(READ ${src} thefile)
- if("${thefile}" MATCHES ".*BoostTestTargetConfig.h.*")
- set(includeType CONFIGURED)
- set(includeFileLoc ${src})
- break()
- elseif("${thefile}" MATCHES ".*boost/test/included/unit_test.hpp.*")
- set(includeType INCLUDED)
- set(includeFileLoc ${src})
- set(_boosttesttargets_libs) # clear this out - linking would be a bad idea
- if(NOT
- "${thefile}"
- MATCHES
- ".*OVERRIDE_BOOST_TEST_INCLUDED_WARNING.*")
- message("Please replace the include line in ${src} with this alternate include line instead:")
- message(" \#include <BoostTestTargetConfig.h>")
- message("Once you've saved your changes, re-run CMake. (See BoostTestTargets.cmake for more info)")
- endif()
- break()
- endif()
- endforeach()
-
- if(NOT _boostTestTargetsNagged${_name} STREQUAL "${includeType}")
- if("includeType" STREQUAL "CONFIGURED")
- message(STATUS
- "Test '${_name}' uses the CMake-configurable form of the boost test framework - congrats! (Including File: ${includeFileLoc})")
- elseif("${includeType}" STREQUAL "INCLUDED")
- message("In test '${_name}': ${includeFileLoc} uses the 'included' form of the boost unit test framework.")
- else()
- message("In test '${_name}': Didn't detect the CMake-configurable boost test include.")
- message("Please replace your existing boost test include in that test with the following:")
- message(" \#include <BoostTestTargetConfig.h>")
- message("Once you've saved your changes, re-run CMake. (See BoostTestTargets.cmake for more info)")
- endif()
- endif()
- set(_boostTestTargetsNagged${_name}
- "${includeType}"
- CACHE
- INTERNAL
- ""
- FORCE)
-
-
- if(RESOURCES)
- list(APPEND SOURCES ${RESOURCES})
- endif()
-
- # Generate a unique target name, using the relative binary dir
- # and provided name. (transform all / into _ and remove all other
- # non-alphabet characters)
- file(RELATIVE_PATH
- targetpath
- "${CMAKE_BINARY_DIR}"
- "${CMAKE_CURRENT_BINARY_DIR}")
- string(REGEX REPLACE "[^A-Za-z/_]" "" targetpath "${targetpath}")
- string(REPLACE "/" "_" targetpath "${targetpath}")
-
- set(_target_name ${BOOST_TEST_TARGET_PREFIX}-${targetpath}-${_name})
- set(${_name}_TARGET_NAME "${_target_name}" PARENT_SCOPE)
-
- # Build the test.
- add_executable(${_target_name} ${SOURCES})
-
- list(APPEND LIBRARIES ${_boosttesttargets_libs})
-
- if(LIBRARIES)
- target_link_libraries(${_target_name} ${LIBRARIES})
- endif()
-
- if(RESOURCES)
- set_property(TARGET ${_target_name} PROPERTY RESOURCE ${RESOURCES})
- copy_resources_to_build_tree(${_target_name})
- endif()
-
- if(NOT Boost_TEST_FLAGS)
-# set(Boost_TEST_FLAGS --catch_system_error=yes --output_format=XML)
- set(Boost_TEST_FLAGS --catch_system_error=yes)
- endif()
-
- # TODO: Figure out why only recent boost handles individual test running properly
-
- if(LAUNCHER)
- set(_test_command ${LAUNCHER} "\$<TARGET_FILE:${_target_name}>")
- else()
- set(_test_command ${_target_name})
- endif()
-
- if(TESTS AND ( "${Boost_VERSION}" VERSION_GREATER "103799" ))
- foreach(_test ${TESTS})
- add_test(NAME
- ${_name}-${_test}
- COMMAND
- ${_test_command}
- --run_test=${_test}
- ${Boost_TEST_FLAGS})
- if(FAIL_REGULAR_EXPRESSION)
- set_tests_properties(${_name}-${_test}
- PROPERTIES
- FAIL_REGULAR_EXPRESSION
- "${FAIL_REGULAR_EXPRESSION}")
- endif()
- endforeach()
- else()
- add_test(NAME
- ${_name}-boost_test
- COMMAND
- ${_test_command}
- ${Boost_TEST_FLAGS})
- if(FAIL_REGULAR_EXPRESSION)
- set_tests_properties(${_name}-${_test}
- PROPERTIES
- FAIL_REGULAR_EXPRESSION
- "${FAIL_REGULAR_EXPRESSION}")
- endif()
- endif()
-
- # CppCheck the test if we can.
- if(COMMAND add_cppcheck)
- add_cppcheck(${_target_name} STYLE UNUSED_FUNCTIONS)
- endif()
-
- endif()
-endfunction()
Deleted: branches/1.2/cmake/BoostTestTargetsDynamic.h
===================================================================
--- branches/1.2/cmake/BoostTestTargetsDynamic.h 2012-07-27 22:21:58 UTC (rev 695)
+++ branches/1.2/cmake/BoostTestTargetsDynamic.h 2012-07-27 22:30:15 UTC (rev 696)
@@ -1,9 +0,0 @@
-// Small header computed by CMake to set up boost test.
-// include AFTER #define BOOST_TEST_MODULE whatever
-// but before any other boost test includes.
-
-// Using the Boost UTF dynamic library
-
-#define BOOST_TEST_DYN_LINK
-#include <boost/test/unit_test.hpp>
-
Deleted: branches/1.2/cmake/BoostTestTargetsIncluded.h
===================================================================
--- branches/1.2/cmake/BoostTestTargetsIncluded.h 2012-07-27 22:21:58 UTC (rev 695)
+++ branches/1.2/cmake/BoostTestTargetsIncluded.h 2012-07-27 22:30:15 UTC (rev 696)
@@ -1,7 +0,0 @@
-// Small header computed by CMake to set up boost test.
-// include AFTER #define BOOST_TEST_MODULE whatever
-// but before any other boost test includes.
-
-// Using the Boost UTF included framework
-
-#include <boost/test/included/unit_test.hpp>
Deleted: branches/1.2/cmake/BoostTestTargetsStatic.h
===================================================================
--- branches/1.2/cmake/BoostTestTargetsStatic.h 2012-07-27 22:21:58 UTC (rev 695)
+++ branches/1.2/cmake/BoostTestTargetsStatic.h 2012-07-27 22:30:15 UTC (rev 696)
@@ -1,7 +0,0 @@
-// Small header computed by CMake to set up boost test.
-// include AFTER #define BOOST_TEST_MODULE whatever
-// but before any other boost test includes.
-
-// Using the Boost UTF static library
-
-#include <boost/test/unit_test.hpp>
Deleted: branches/1.2/cmake/BundleOSGPlugins.cmake
===================================================================
--- branches/1.2/cmake/BundleOSGPlugins.cmake 2012-07-27 22:21:58 UTC (rev 695)
+++ branches/1.2/cmake/BundleOSGPlugins.cmake 2012-07-27 22:30:15 UTC (rev 696)
@@ -1,83 +0,0 @@
-# - Provide access to the OpenSceneGraph runtime files for bundling in
-# an installation or package.
-#
-# Sets these variables:
-# - OSGDB_PLUGINS_RELEASE
-# - OSGDB_PLUGINS_DEBUG
-# - OSGWRAPPER_PLUGINS_RELEASE
-# - OSGWRAPPER_PLUGINS_DEBUG
-# - OSG_RUNTIME_LIBRARY_DIR
-# - OSG_PATH_TO_PLUGINS
-#
-# Creates this function:
-# - install_osg_plugins( {varNameForOutputFilenames} )
-#
-# Requires these CMake modules:
-# no additional modules required
-#
-# Original Author:
-# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
-# http://academic.cleardefinition.com
-# Iowa State University HCI Graduate Program/VRAC
-#
-# Copyright Iowa State University 2009-2010.
-# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or copy at
-# http://www.boost.org/LICENSE_1_0.txt)
-
-
-function(_osgbundle_split_debug_versions releasevar debugvar)
- set(release)
- set(debug)
- foreach(fn ${ARGN})
- get_filename_component(name "${fn}" NAME_WE)
- if(${name} MATCHES "d$")
- list(APPEND debug "${fn}")
- else()
- list(APPEND release "${fn}")
- endif()
- endforeach()
- set(${releasevar} ${release} PARENT_SCOPE)
- set(${debugvar} ${debug} PARENT_SCOPE)
-endfunction()
-
-function(_osgbundle_find_plugins varprefix filenameprefix)
- file(GLOB
- all
- "${OSG_RUNTIME_LIBRARY_DIR}/osgPlugins-${OPENSCENEGRAPH_VERSION}/${filenameprefix}*${CMAKE_SHARED_LIBRARY_SUFFIX}")
- _osgbundle_split_debug_versions(${varprefix}_PLUGINS_RELEASE
- ${varprefix}_PLUGINS_DEBUG
- ${all})
- set(${varprefix}_PLUGINS_RELEASE
- "${${varprefix}_PLUGINS_RELEASE}"
- PARENT_SCOPE)
- set(${varprefix}_PLUGINS_DEBUG
- "${${varprefix}_PLUGINS_DEBUG}"
- PARENT_SCOPE)
-endfunction()
-
-if(OPENSCENEGRAPH_FOUND)
- if(WIN32)
- get_filename_component(_osglibdir "${OSG_LIBRARY}" PATH)
- get_filename_component(_osgroot "${_osglibdir}/.." ABSOLUTE)
- set(OSG_RUNTIME_LIBRARY_DIR "${_osgroot}/bin")
- set(OSG_PATH_TO_PLUGINS "bin/osgPlugins-${OPENSCENEGRAPH_VERSION}/")
- else()
- get_filename_component(_osglibdir "${OSG_LIBRARY}" PATH)
- set(OSG_RUNTIME_LIBRARY_DIR "${_osglibdir}")
- set(OSG_PATH_TO_PLUGINS "lib/osgPlugins-${OPENSCENEGRAPH_VERSION}/")
- endif()
- # Find the osgDB plugins
- _osgbundle_find_plugins(OSGDB osgdb)
- _osgbundle_find_plugins(OSGWRAPPER osgwrapper)
-endif()
-
-function(install_osg_plugins var)
- set(INSTALLEDPLUGINS)
- foreach(plugin ${OSGDB_PLUGINS_RELEASE} ${OSGWRAPPER_PLUGINS_RELEASE})
- install(FILES "${plugin}" DESTINATION "${OSG_PATH_TO_PLUGINS}")
- get_filename_component(name "${plugin}" NAME)
- list(APPEND INSTALLEDPLUGINS "${OSG_PATH_TO_PLUGINS}/${name}")
- endforeach()
- set(${var} ${INSTALLEDPLUGINS} PARENT_SCOPE)
-endfunction()
Deleted: branches/1.2/cmake/BundleOSGRuntime.cmake
===================================================================
--- branches/1.2/cmake/BundleOSGRuntime.cmake 2012-07-27 22:21:58 UTC (rev 695)
+++ branches/1.2/cmake/BundleOSGRuntime.cmake 2012-07-27 22:30:15 UTC (rev 696)
@@ -1,118 +0,0 @@
-# - Include the OpenSceneGraph runtime files in an installation or built package.
-#
-# OSGRUNTIME_BUNDLE - Set to "yes" to enable this behavior
-# OSGRUNTIME_zlib1dll - Must be set to the location of zlib1.dll on Windows
-# OSGRUNTIME_zlib1ddll - Can be set to the location of zlib1d.dll (debug) on Windows.
-# If set, will be installed.
-#
-# Requires these CMake modules:
-# no additional modules required
-#
-# Original Author:
-# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
-# http://academic.cleardefinition.com
-# Iowa State University HCI Graduate Program/VRAC
-#
-# Copyright Iowa State University 2009-2010.
-# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or copy at
-# http://www.boost.org/LICENSE_1_0.txt)
-
-function(_osgbundle_split_debug_versions releasevar debugvar)
- set(release)
- set(debug)
- foreach(fn ${ARGN})
- get_filename_component(name "${fn}" NAME_WE)
- if(${name} MATCHES "d$")
- list(APPEND debug "${fn}")
- else()
- list(APPEND release "${fn}")
- endif()
- endforeach()
- set(${releasevar} ${release} PARENT_SCOPE)
- set(${debugvar} ${debug} PARENT_SCOPE)
-endfunction()
-
-function(_osgbundle_find_plugins varprefix filenameprefix)
- file(GLOB
- all
- "${OSG_RUNTIME_LIBRARY_DIR}/osgPlugins-${OPENSCENEGRAPH_VERSION}/${filenameprefix}*${CMAKE_SHARED_LIBRARY_SUFFIX}")
- _osgbundle_split_debug_versions(${varprefix}_PLUGINS_RELEASE
- ${varprefix}_PLUGINS_DEBUG
- ${all})
-endfunction()
-
-if(OPENSCENEGRAPH_FOUND)
- if(WIN32)
- get_filename_component(_osglibdir "${OSG_LIBRARY}" PATH)
- get_filename_component(_osgroot "${_osglibdir}/.." ABSOLUTE)
- set(OSG_RUNTIME_LIBRARY_DIR "${_osgroot}/bin")
- find_file(OSGBUNDLE_zlib1dll
- zlib1.dll
- PATHS
- "${_osgroot}/bin"
- "${_osgroot}/lib")
- find_file(OSGBUNDLE_zlib1ddll
- zlib1d.dll
- PATHS
- "${_osgroot}/bin"
- "${_osgroot}/lib")
- mark_as_advanced(OSGBUNDLE_zlib1dll OSGBUNDLE_zlib1ddll)
- set(_osgbundle_required OSGBUNDLE_zlib1dll)
- set(_osgbundle_platformOK on)
- else()
- get_filename_component(_osglibdir "${OSG_LIBRARY}" PATH)
- set(OSG_RUNTIME_LIBRARY_DIR "${_osglibdir}")
- set(_osgbundle_platformOK on)
- endif()
-
- # Find the osgDB plugins
-
- _osgbundle_find_plugins(OSGDB osgdb)
- _osgbundle_find_plugins(OSGWRAPPER osgwrapper)
-endif()
-
-
-
-if(_osgbundle_platformOK)
- set(_osgbundle_caninstall on)
- foreach(_var ${_osgbundle_required})
- if(NOT ${_var})
- # If we are missing a single required file, cut out now.
- set(_osgbundle_caninstall off)
- option(OSGRUNTIME_BUNDLE
- "Install a local copy of the OpenSceneGraph runtime files with the project."
- off)
- endif()
- endforeach()
- if(_osgbundle_caninstall)
- option(OSGRUNTIME_BUNDLE
- "Install a local copy of the OpenSceneGraph runtime files with the project."
- on)
- endif()
-endif()
-
-mark_as_advanced(OSGRUNTIME_BUNDLE)
-
-if(OSGRUNTIME_BUNDLE AND OPENSCENEGRAPH_FOUND AND _osgbundle_caninstall)
- if(WIN32)
- set(DESTINATION bin)
- install(FILES "${OSGBUNDLE_zlib1dll}"
- DESTINATION ${DESTINATION})
-
- if(OSGBUNDLE_zlib1ddll)
- install(FILES "${OSGBUNDLE_zlib1ddll}"
- DESTINATION ${DESTINATION})
- endif()
-
- else()
- set(DESTINATION lib)
- endif()
-
- install(DIRECTORY "${_osgroot}/bin/" "${_osgroot}/lib/"
- DESTINATION ${DESTINATION}
- FILES_MATCHING
-
- # Runtime files
- PATTERN "*${CMAKE_SHARED_LIBRARY_SUFFIX}")
-endif()
Deleted: branches/1.2/cmake/BundleVRJ22Runtime.cmake
===================================================================
--- branches/1.2/cmake/BundleVRJ22Runtime.cmake 2012-07-27 22:21:58 UTC (rev 695)
+++ branches/1.2/cmake/BundleVRJ22Runtime.cmake 2012-07-27 22:30:15 UTC (rev 696)
@@ -1,99 +0,0 @@
-# - Include the VR Juggler runtime files in an installation or built package.
-#
-# VRJUGGLERRUNTIME_BUNDLE
-# VRJUGGLERRUNTIME_BUNDLE_DEBUG - set to yes to include debug dll's as well
-#
-# Requires these CMake modules:
-# FindVRJuggler22 and its dependencies
-#
-# Original Author:
-# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
-# http://academic.cleardefinition.com
-# Iowa State University HCI Graduate Program/VRAC
-#
-# Copyright Iowa State University 2009-2010.
-# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or copy at
-# http://www.boost.org/LICENSE_1_0.txt)
-
-if(WIN32)
- option(VRJUGGLERRUNTIME_BUNDLE
- "Install a local copy of the VR Juggler runtime files with the project."
- on)
- option(VRJUGGLERRUNTIME_BUNDLE_DEBUG
- "Install the VR Juggler debug runtime files as well."
- off)
- mark_as_advanced(VRJUGGLERRUNTIME_BUNDLE_DEBUG)
-else()
- # TODO - how to handle when not on Windows?
- #option(VRJUGGLERRUNTIME_BUNDLE "Install a local copy of the VR Juggler runtime files with the project." off)
-endif()
-
-mark_as_advanced(VRJUGGLERRUNTIME_BUNDLE VRJUGGLERRUNTIME_BUNDLE_DEBUG)
-
-if(VRJUGGLERRUNTIME_BUNDLE AND VRJUGGLER22_FOUND)
- if(WIN32)
- get_filename_component(_vrjlibdir "${VRJ22_LIBRARY_RELEASE}" PATH)
- get_filename_component(_vrjroot "${_vrjlibdir}/../" ABSOLUTE)
-
- # TODO - make sure gadgeteer and sonix can find their DSO's at runtime...
-
- foreach(_dir bin lib)
- if(VRJUGGLERRUNTIME_BUNDLE_DEBUG)
- install(DIRECTORY "${_vrjroot}/${_dir}/"
- DESTINATION bin
- PATTERN "*.lib" EXCLUDE # exclude static and link libraries
- PATTERN "*.exe" EXCLUDE # exclude unneeded executables
- PATTERN "*.py" EXCLUDE # exclude unneeded python executables
- PATTERN "*.pyc" EXCLUDE # exclude unneeded python executables
- )
- else()
- install(DIRECTORY ${_vrjroot}/${_dir}/
- DESTINATION bin
- PATTERN "*.lib" EXCLUDE # exclude static and link libraries
- PATTERN "*.exe" EXCLUDE # exclude unneeded executables
- PATTERN "*.py" EXCLUDE # exclude unneeded python executables
- PATTERN "*.pyc" EXCLUDE # exclude unneeded python executables
-
- PATTERN "*d.dll" EXCLUDE # exclude debug dll's
- PATTERN "*-gd-*.dll" EXCLUDE # exclude Boost debug dll's
- )
- endif()
-
- endforeach()
-
- install(DIRECTORY ${_vrjroot}/share/
- DESTINATION share
- FILES_MATCHING
-
- # Runtime files
- PATTERN "*.dll"
- PATTERN "*.jar"
-
- # Data files
- PATTERN "*.wav"
- PATTERN "*.xml"
- PATTERN "*.xsl"
- PATTERN "*.xsd"
- PATTERN "*.flt"
- PATTERN "*.dat"
- PATTERN "*.table"
-
-
- # Config files
- PATTERN "*.jdef"
- PATTERN "*.jconf"
- PATTERN "*.cfg"
- PATTERN "hosts.allow"
-
- # Other Files
- PATTERN "*.txt"
- PATTERN "COPYING*"
- PATTERN "ChangeLog"
- )
-
- endif()
-
-
-
-endif()
Deleted: branches/1.2/cmake/BundleVRJ30Runtime.cmake
===================================================================
--- branches/1.2/cmake/BundleVRJ30Runtime.cmake 2012-07-27 22:21:58 UTC (rev 695)
+++ branches/1.2/cmake/BundleVRJ30Runtime.cmake 2012-07-27 22:30:15 UTC (rev 696)
@@ -1,96 +0,0 @@
-# - Include the VR Juggler runtime files in an installation or built package.
-#
-# VRJUGGLERRUNTIME_BUNDLE
-# VRJUGGLERRUNTIME_BUNDLE_DEBUG - set to yes to include debug dll's as well
-#
-# Requires these CMake modules:
-# FindVRJuggler22 and its dependencies
-#
-# Original Author:
-# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
-# http://academic.cleardefinition.com
-# Iowa State University HCI Graduate Program/VRAC
-# Updated for VR Juggler 3.0 by:
-# Brandon Newendorp <br...@ne...>
-
-if(WIN32)
- option(VRJUGGLERRUNTIME_BUNDLE
- "Install a local copy of the VR Juggler runtime files with the project."
- on)
- option(VRJUGGLERRUNTIME_BUNDLE_DEBUG
- "Install the VR Juggler debug runtime files as well."
- off)
- mark_as_advanced(VRJUGGLERRUNTIME_BUNDLE_DEBUG)
-else()
- # TODO - how to handle when not on Windows?
- #option(VRJUGGLERRUNTIME_BUNDLE "Install a local copy of the VR Juggler runtime files with the project." off)
-endif()
-
-mark_as_advanced(VRJUGGLERRUNTIME_BUNDLE VRJUGGLERRUNTIME_BUNDLE_DEBUG)
-
-if(VRJUGGLERRUNTIME_BUNDLE AND VRJUGGLER22_FOUND)
- if(WIN32)
- get_filename_component(_vrjlibdir "${VRJ22_LIBRARY_RELEASE}" PATH)
- get_filename_component(_vrjroot "${_vrjlibdir}/../" ABSOLUTE)
-
- # TODO - make sure gadgeteer and sonix can find their DSO's at runtime...
-
- foreach(_dir bin lib)
- if(VRJUGGLERRUNTIME_BUNDLE_DEBUG)
- install(DIRECTORY "${_vrjroot}/${_dir}/"
- DESTINATION bin
- PATTERN "*.lib" EXCLUDE # exclude static and link libraries
- PATTERN "*.exe" EXCLUDE # exclude unneeded executables
- PATTERN "*.py" EXCLUDE # exclude unneeded python executables
- PATTERN "*.pyc" EXCLUDE # exclude unneeded python executables
- )
- else()
- install(DIRECTORY ${_vrjroot}/${_dir}/
- DESTINATION bin
- PATTERN "*.lib" EXCLUDE # exclude static and link libraries
- PATTERN "*.exe" EXCLUDE # exclude unneeded executables
- PATTERN "*.py" EXCLUDE # exclude unneeded python executables
- PATTERN "*.pyc" EXCLUDE # exclude unneeded python executables
-
- PATTERN "*d.dll" EXCLUDE # exclude debug dll's
- PATTERN "*-gd-*.dll" EXCLUDE # exclude Boost debug dll's
- )
- endif()
-
- endforeach()
-
- install(DIRECTORY ${_vrjroot}/share/
- DESTINATION share
- FILES_MATCHING
-
- # Runtime files
- PATTERN "*.dll"
- PATTERN "*.jar"
-
- # Data files
- PATTERN "*.wav"
- PATTERN "*.xml"
- PATTERN "*.xsl"
- PATTERN "*.xsd"
- PATTERN "*.flt"
- PATTERN "*.dat"
- PATTERN "*.table"
-
-
- # Config files
- PATTERN "*.jdef"
- PATTERN "*.jconf"
- PATTERN "*.cfg"
- PATTERN "hosts.allow"
-
- # Other Files
- PATTERN "*.txt"
- PATTERN "COPYING*"
- PATTERN "ChangeLog"
- )
-
- endif()
-
-
-
-endif()
Deleted: branches/1.2/cmake/CheckMacHIDAPI.cmake
===================================================================
--- branches/1.2/cmake/CheckMacHIDAPI.cmake 2012-07-27 22:21:58 UTC (rev 695)
+++ branches/1.2/cmake/CheckMacHIDAPI.cmake 2012-07-27 22:30:15 UTC (rev 696)
@@ -1,73 +0,0 @@
-# - Script to check if the signature for a mac HID callback uses UInt32 or uint32_t
-# Requires that the associated CPP file be present: CheckMacHIDAPI.cpp.
-#
-# MACOSX_HID_UINT32T, set according to the results of our test.
-#
-# Use add_definitions(-DMACOSX_HID_UINT32T=${MACOSX_HID_UINT32T}) in your
-# listfile and the following prototype for the function you'd like to
-# register using setInterruptReportHandlerCallback:
-# void ReaderReportCallback(
-# void *target,
-# IOReturn result,
-# void *refcon,
-# void *sender,
-# MACOSX_HID_UINT32T size
-# )
-#
-# Original Author:
-# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
-# http://academic.cleardefinition.com
-# Iowa State University HCI Graduate Program/VRAC
-#
-# Copyright Iowa State University 2009-2010.
-# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or copy at
-# http://www.boost.org/LICENSE_1_0.txt)
-
-
-if(APPLE)
- if(NOT MACOSX_HID_UINT32T)
- get_filename_component(_moddir ${CMAKE_CURRENT_LIST_FILE} PATH)
-
- try_compile(_HID_uint32t
- ${CMAKE_BINARY_DIR}
- ${_moddir}/CheckMacHIDAPI.cpp
- OUTPUT_VARIABLE
- _HID_uint32t_OUTPUT
- COMPILE_DEFINITIONS
- -DMACOSX_HID_UINT32T=uint32_t)
- message(STATUS
- "Checking uint32_t in HID callback signature... ${_HID_uint32t}")
-
- try_compile(_HID_UInt32
- ${CMAKE_BINARY_DIR}
- ${_moddir}/CheckMacHIDAPI.cpp
- OUTPUT_VARIABLE
- _HID_UInt32_OUTPUT
- COMPILE_DEFINITIONS
- -DMACOSX_HID_UINT32T=UInt32)
- message(STATUS
- "Checking UInt32 in HID callback signature... ${_HID_UInt32}")
-
-
- if(_HID_uint32t)
- set(MACOSX_HID_UINT32T
- "uint32_t"
- CACHE
- STRING
- "The 32-bit uint type desired in the callback set by setInterruptReportHandlerCallback")
- mark_as_advanced(MACOSX_HID_UINT32T)
- elseif(_HID_UInt32)
- set(MACOSX_HID_UINT32T
- "UInt32"
- CACHE
- STRING
- "The 32-bit uint type desired in the callback set by setInterruptReportHandlerCallback")
- mark_as_advanced(MACOSX_HID_UINT32T)
- else()
- message(SEND_ERROR
- "ERROR: Could not detect appropriate Mac HID uint32 type!")
- endif()
-
- endif()
-endif()
Deleted: branches/1.2/cmake/CheckMacHIDAPI.cpp
===================================================================
--- branches/1.2/cmake/CheckMacHIDAPI.cpp 2012-07-27 22:21:58 UTC (rev 695)
+++ branches/1.2/cmake/CheckMacHIDAPI.cpp 2012-07-27 22:30:15 UTC (rev 696)
@@ -1,47 +0,0 @@
-/**
- * \file CheckMacHIDAPI.cpp
- * \brief C++ source file used by CMake module CheckMacHIDAPI.cmake
- *
- * \author
- * Ryan Pavlik, 2009-2010
- * <rp...@ia...>
- * http://academic.cleardefinition.com/
- *
- * \author
- * Based on code extracted from VRPN 07.22 for use as a minimal test case
- *
- * Attempts to compile a difficult bit of code against the Mac
- * HID API, as two different types have been required in the callback
- * function (UInt32 and uint32_t) and testing is the best way to know
- * which one is correct for a given system.
- *
- */
-
-
-#if defined(__APPLE__)
-
-#include <stdio.h>
-#include <IOKit/IOCFPlugIn.h>
-#include <IOKit/hid/IOHIDLib.h>
-#include <IOKit/hid/IOHIDKeys.h>
-#include <CoreFoundation/CoreFoundation.h>
-void ReaderReportCallback(
- void *target, IOReturn result, void *refcon, void *sender, MACOSX_HID_UINT32T size
- )
- {}
-#endif
-
-int main(int argc, char* argv[]) {
-#if defined(__APPLE__)
- io_object_t _ioObject;
- IOHIDDeviceInterface122 **_interface;
- bool _gotdata;
- int _gotsize;
- unsigned char _buffer[512];
- IOReturn result = (*_interface)->setInterruptReportHandlerCallback(_interface,
- _buffer, 512,
- ReaderReportCallback,
- NULL, 0);
-#endif
- return 0;
-}
Deleted: branches/1.2/cmake/CheckVersion.cmake
===================================================================
--- branches/1.2/cmake/CheckVersion.cmake 2012-07-27 22:21:58 UTC (rev 695)
+++ branches/1.2/cmake/CheckVersion.cmake 2012-07-27 22:30:15 UTC (rev 696)
@@ -1,47 +0,0 @@
-# - Utility function for Find modules considering multiple possible versions
-#
-# Requires these CMake modules:
-# no additional modules required
-#
-# Original Author:
-# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
-# http://academic.cleardefinition.com
-# Iowa State University HCI Graduate Program/VRAC
-#
-# Copyright Iowa State University 2009-2010.
-# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or copy at
-# http://www.boost.org/LICENSE_1_0.txt)
-
-if(__check_version)
- return()
-endif()
-set(__check_version YES)
-
-function(check_version var packagename version)
- # By default, we say that the version is good enough
- set(_result TRUE)
-
- # Was a version requested? If so, what is our test condition?
- if(${packagename}_FIND_VERSION)
- if(${packagename}_FIND_VERSION_EXACT)
- # Yes, an exact == version was requested - check it.
-
- if(NOT "${version}" VERSION_EQUAL "${${packagename}_FIND_VERSION}")
- # version is not an exact match
- set(_result FALSE)
- endif()
- else()
- # Yes, a minimum >= version was requested - check it.
-
- if("${version}" VERSION_LESS "${${packagename}_FIND_VERSION}")
- # version is lower than requested
- set(_result FALSE)
- endif()
-
- endif()
- endif()
-
- # Return _result
- set(${var} ${_result} PARENT_SCOPE)
-endfunction()
Deleted: branches/1.2/cmake/CleanDirectoryList.cmake
===================================================================
--- branches/1.2/cmake/CleanDirectoryList.cmake 2012-07-27 22:21:58 UTC (rev 695)
+++ branches/1.2/cmake/CleanDirectoryList.cmake 2012-07-27 22:30:15 UTC (rev 696)
@@ -1,48 +0,0 @@
-# - Removes duplicate entries and non-directories from a provided list
-#
-# clean_directory_list(<listvar> [<additional list items>...])
-#
-# Requires CMake 2.6 or newer (uses the 'function' command)
-#
-# Original Author:
-# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
-# http://academic.cleardefinition.com
-# Iowa State University HCI Graduate Program/VRAC
-#
-# Copyright Iowa State University 2009-2010.
-# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or copy at
-# http://www.boost.org/LICENSE_1_0.txt)
-
-if(__clean_directory_list)
- return()
-endif()
-set(__clean_directory_list YES)
-
-function(clean_directory_list _var)
- # combine variable's current value with additional list items
- set(_in ${${_var}} ${ARGN})
-
- if(_in)
- # Initial list cleaning
- list(REMOVE_DUPLICATES _in)
-
- # Grab the absolute path of each actual directory
- set(_out)
- foreach(_dir ${_in})
- if(IS_DIRECTORY "${_dir}")
- get_filename_component(_dir "${_dir}" ABSOLUTE)
- file(TO_CMAKE_PATH "${_dir}" _dir)
- list(APPEND _out "${_dir}")
- endif()
- endforeach()
-
- if(_out)
- # Clean up the output list now
- list(REMOVE_DUPLICATES _out)
- endif()
-
- # return _out
- set(${_var} "${_out}" PARENT_SCOPE)
- endif()
-endfunction()
Deleted: branches/1.2/cmake/CleanLibraryList.cmake
===================================================================
--- branches/1.2/cmake/CleanLibraryList.cmake 2012-07-27 22:21:58 UTC (rev 695)
+++ branches/1.2/cmake/CleanLibraryList.cmake 2012-07-27 22:30:15 UTC (rev 696)
@@ -1,72 +0,0 @@
-# - A smarter replacement for list(REMOVE_DUPLICATES) for library lists
-#
-# Note that, in the case of cyclic link dependencies, you _do_ actually need
-# a library in a list multiple times. So, only use this function when you know
-# that the dependency graph is acyclic.
-#
-# clean_library_list(<listvar> [<additional list items>...]) - where
-# listvar is the name of a destination variable, and also possibly a source, and
-# it is followed by any number (including 0) of additional libraries to append
-# to the list before processing.
-#
-# Removes duplicates from the list, leaving only the last instance, while
-# preserving the meaning of the "optimized", "debug", and "general" labeling.
-# (Libraries listed as general are listed in the result instead as optimized and
-# debug)
-#
-# Requires CMake 2.6 or newer (uses the 'function' command)
-#
-# Original Author:
-# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
-# http://academic.cleardefinition.com
-# Iowa State University HCI Graduate Program/VRAC
-#
-# Copyright Iowa State University 2009-2010.
-# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or copy at
-# http://www.boost.org/LICENSE_1_0.txt)
-
-if(__clean_library_list)
- return()
-endif()
-set(__clean_library_list YES)
-
-function(clean_library_list _var)
- # combine variable's current value with additional list items
- set(_work ${${_var}} ${ARGN})
- if(_work)
- # Turn each of optimized, debug, and general into flags
- # prefixed on their respective library (combining list items)
- string(REGEX REPLACE "optimized;" "1CLL%O%" _work "${_work}")
- string(REGEX REPLACE "debug;" "1CLL%D%" _work "${_work}")
- string(REGEX REPLACE "general;" "1CLL%G%" _work "${_work}")
-
- # Any library that doesn't have a prefix is general, and a general
- # library is both debug and optimized so stdize it
- set(_std)
- foreach(_lib ${_work})
- if(NOT "${_lib}" MATCHES "^1CLL%.%")
- list(APPEND _std "1CLL%D%${_lib}" "1CLL%O%${_lib}")
- elseif("${_lib}" MATCHES "^1CLL%G%")
- string(REPLACE "1CLL%G%" "" _justlib "${_lib}")
- list(APPEND _std "1CLL%D%${_justlib}" "1CLL%O%${_justlib}")
- else()
- list(APPEND _std "${_lib}")
- endif()
- endforeach()
-
- # REMOVE_DUPLICATES leaves the first - so we reverse before and after
- # to keep the last, instead
- list(REVERSE _std)
- list(REMOVE_DUPLICATES _std)
- list(REVERSE _std)
-
- # Split list items back out again: turn prefixes into the
- # library type flags.
- string(REGEX REPLACE "1CLL%D%" "debug;" _std "${_std}")
- string(REGEX REPLACE "1CLL%O%" "optimized;" _std "${_std}")
-
- # Return _std
- set(${_var} ${_std} PARENT_SCOPE)
- endif()
-endfunction()
Deleted: branches/1.2/cmake/CppcheckTargets.cmake
===================================================================
--- branches/1.2/cmake/CppcheckTargets.cmake 2012-07-27 22:21:58 UTC (rev 695)
+++ branches/1.2/cmake/CppcheckTargets.cmake 2012-07-27 22:30:15 UTC (rev 696)
@@ -1,213 +0,0 @@
-# - Run cppcheck on c++ source files as a custom target and a test
-#
-# include(CppcheckTargets)
-# add_cppcheck(<target-name> [UNUSED_FUNCTIONS] [STYLE] [POSSIBLE_ERROR] [FAIL_ON_WARNINGS]) -
-# Create a target to check a target's sources with cppcheck and the indicated options
-# add_cppcheck_sources(<target-name> [UNUSED_FUNCTIONS] [STYLE] [POSSIBLE_ERROR] [FAIL_ON_WARNINGS]) -
-# Create a target to check standalone sources with cppcheck and the indicated options
-#
-# Requires these CMake modules:
-# Findcppcheck
-#
-# Requires CMake 2.6 or newer (uses the 'function' command)
-#
-# Original Author:
-# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
-# http://academic.cleardefinition.com
-# Iowa State University HCI Graduate Program/VRAC
-#
-# Copyright Iowa State University 2009-2010.
-# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or copy at
-# http://www.boost.org/LICENSE_1_0.txt)
-
-if(__add_cppcheck)
- return()
-endif()
-set(__add_cppcheck YES)
-
-if(NOT CPPCHECK_FOUND)
- find_package(cppcheck QUIET)
-endif()
-
-if(CPPCHECK_FOUND)
- if(NOT TARGET all_cppcheck)
- add_custom_target(all_cppcheck)
- set_target_properties(all_cppcheck PROPERTIES EXCLUDE_FROM_ALL TRUE)
- endif()
-endif()
-
-function(add_cppcheck_sources _targetname)
- if(CPPCHECK_FOUND)
- set(_cppcheck_args)
- set(_input ${ARGN})
- list(FIND _input UNUSED_FUNCTIONS _unused_func)
- if("${_unused_func}" GREATER "-1")
- list(APPEND _cppcheck_args ${CPPCHECK_UNUSEDFUNC_ARG})
- list(REMOVE_AT _input ${_unused_func})
- endif()
-
- list(FIND _input STYLE _style)
- if("${_style}" GREATER "-1")
- list(APPEND _cppcheck_args ${CPPCHECK_STYLE_ARG})
- list(REMOVE_AT _input ${_style})
- endif()
-
- list(FIND _input POSSIBLE_ERROR _poss_err)
- if("${_poss_err}" GREATER "-1")
- list(APPEND _cppcheck_args ${CPPCHECK_POSSIBLEERROR_ARG})
- list(REMOVE_AT _input ${_poss_err})
- endif()
-
- list(FIND _input FAIL_ON_WARNINGS _fail_on_warn)
- if("${_fail_on_warn}" GREATER "-1")
- list(APPEND
- CPPCHECK_FAIL_REGULAR_EXPRESSION
- ${CPPCHECK_WARN_REGULAR_EXPRESSION})
- list(REMOVE_AT _input ${_fail_on_warn})
- endif()
-
- set(_files)
- foreach(_source ${_input})
- get_source_file_property(_cppcheck_loc "${_source}" LOCATION)
- if(_cppcheck_loc)
- # This file has a source file property, carry on.
- get_source_file_property(_cppcheck_lang "${_source}" LANGUAGE)
- if("${_cppcheck_lang}" MATCHES "CXX")
- list(APPEND _files "${_cppcheck_loc}")
- endif()
- else()
- # This file doesn't have source file properties - figure it out.
- get_filename_component(_cppcheck_loc "${_source}" ABSOLUTE)
- if(EXISTS "${_cppcheck_loc}")
- list(APPEND _files "${_cppcheck_loc}")
- else()
- message(FATAL_ERROR
- "Adding CPPCHECK for file target ${_targetname}: "
- "File ${_source} does not exist or needs a corrected path location "
- "since we think its absolute path is ${_cppcheck_loc}")
- endif()
- endif()
- endforeach()
-
- if("1.${CMAKE_VERSION}" VERSION_LESS "1.2.8.0")
- # Older than CMake 2.8.0
- add_test(${_targetname}_cppcheck_test
- "${CPPCHECK_EXECUTABLE}"
- ${CPPCHECK_TEMPLATE_ARG}
- ${_cppcheck_args}
- ${_files})
- else()
- # CMake 2.8.0 and newer
- add_test(NAME
- ${_targetname}_cppcheck_test
- COMMAND
- "${CPPCHECK_EXECUTABLE}"
- ${CPPCHECK_TEMPLATE_ARG}
- ${_cppcheck_args}
- ${_files})
- endif()
-
- set_tests_properties(${_targetname}_cppcheck_test
- PROPERTIES
- FAIL_REGULAR_EXPRESSION
- "${CPPCHECK_FAIL_REGULAR_EXPRESSION}")
-
- add_custom_command(TARGET
- all_cppcheck
- PRE_BUILD
- COMMAND
- ${CPPCHECK_EXECUTABLE}
- ${CPPCHECK_QUIET_ARG}
- ${CPPCHECK_TEMPLATE_ARG}
- ${_cppcheck_args}
- ${_files}
- WORKING_DIRECTORY
- "${CMAKE_CURRENT_SOURCE_DIR}"
- COMMENT
- "${_targetname}_cppcheck: Running cppcheck on target ${_targetname}..."
- VERBATIM)
- endif()
-endfunction()
-
-function(add_cppcheck _name)
- if(NOT TARGET ${_name})
- message(FATAL_ERROR
- "add_cppcheck given a target name that does not exist: '${_name}' !")
- endif()
- if(CPPCHECK_FOUND)
- set(_cppcheck_args)
-
- list(FIND ARGN UNUSED_FUNCTIONS _unused_func)
- if("${_unused_func}" GREATER "-1")
- list(APPEND _cppcheck_args ${CPPCHECK_UNUSEDFUNC_ARG})
- endif()
-
- list(FIND ARGN STYLE _style)
- if("${_style}" GREATER "-1")
- list(APPEND _cppcheck_args ${CPPCHECK_STYLE_ARG})
- endif()
-
- list(FIND ARGN POSSIBLE_ERROR _poss_err)
- if("${_poss_err}" GREATER "-1")
- list(APPEND _cppcheck_args ${CPPCHECK_POSSIBLEERROR_ARG})
- endif()
-
- list(FIND _input FAIL_ON_WARNINGS _fail_on_warn)
- if("${_fail_on_warn}" GREATER "-1")
- list(APPEND
- CPPCHECK_FAIL_REGULAR_EXPRESSION
- ${CPPCHECK_WARN_REGULAR_EXPRESSION})
- list(REMOVE_AT _input ${_unused_func})
- endif()
-
- get_target_property(_cppcheck_sources "${_name}" SOURCES)
- set(_files)
- foreach(_source ${_cppcheck_sources})
- get_source_file_property(_cppcheck_lang "${_source}" LANGUAGE)
- get_source_file_property(_cppcheck_loc "${_source}" LOCATION)
- if("${_cppcheck_lang}" MATCHES "CXX")
- list(APPEND _files "${_cppcheck_loc}")
- endif()
- endforeach()
-
- if("1.${CMAKE_VERSION}" VERSION_LESS "1.2.8.0")
- # Older than CMake 2.8.0
- add_test(${_name}_cppcheck_test
- "${CPPCHECK_EXECUTABLE}"
- ${CPPCHECK_TEMPLATE_ARG}
- ${_cppcheck_args}
- ${_files})
- else()
- # CMake 2.8.0 and newer
- add_test(NAME
- ${_name}_cppcheck_test
- COMMAND
- "${CPPCHECK_EXECUTABLE}"
- ${CPPCHECK_TEMPLATE_ARG}
- ${_cppcheck_args}
- ${_files})
- endif()
-
- set_tests_properties(${_name}_cppcheck_test
- PROPERTIES
- FAIL_REGULAR_EXPRESSION
- "${CPPCHECK_FAIL_REGULAR_EXPRESSION}")
-
- add_custom_command(TARGET
- all_cppcheck
- PRE_BUILD
- COMMAND
- ${CPPCHECK_EXECUTABLE}
- ${CPPCHECK_QUIET_ARG}
- ${CPPCHECK_TEMPLATE_ARG}
- ${_cppcheck_args}
- ${_files}
- WORKING_DIRECTORY
- "${CMAKE_CURRENT_SOURCE_DIR}"
- COMMENT
- "${_name}_cppcheck: Running cppcheck on target ${_name}..."
- VERBATIM)
- endif()
-
-endfunction()
Deleted: branches/1.2/cmake/CreateDashboardScripts.cmake
===================================================================
--- branches/1.2/cmake/CreateDashboardScripts.cmake 2012-07-27 22:21:58 UTC (rev 695)
+++ branches/1.2/cmake/CreateDashboardScripts.cmake 2012-07-27 22:30:15 UTC (rev 696)
@@ -1,196 +0,0 @@
-# - Create ctest -S scripts to use to run dashboard builds
-#
-# include(CreateDashboardScripts)
-# create_dashboard_scripts([<initialcachetemplatefilename>])
-#
-# If you need additional settings to persist from the "parent" CMake instance
-# to the initial cache created by the dashboard script,
-# you may pass a filename which will be configured into the initial cache.
-#
-# In the resulting DASHBOARDSCRIPT_BASE_DIRECTORY, an end-user
-# may optionally create a file named
-# CustomInitialCache.${DASHBOARDSCRIPT_SCRIPT_NAME}
-# (by default, CustomInitialCache.go.cmake) containing set commands that use
-# the CACHE option, to set up additional site-local cache variable values.
-#
-# Requires these CMake modules:
-# GetCompilerInfoString
-#
-# Requires CMake 2.6 or newer (uses the 'function' command)
-#
-# Original Author:
-# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
-# http://academic.cleardefinition.com
-# Iowa State University HCI Graduate Program/VRAC
-#
-# Copyright Iowa State University 2009-2010.
-# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or copy at
-# http://www.boost.org/LICENSE_1_0.txt)
-
-# Only do any of the prep work if not already in a dashboard script
-if(NOT IN_DASHBOARD_SCRIPT)
-
- # Hide a CTest variable
- mark_as_advanced(DART_TESTING_TIMEOUT)
-
- include(GetCompilerInfoString)
-
- get_compiler_info_string(_COMPILERID)
-
- # We must run the following at "include" time, not at function call time,
- # to find the path to this module rather than the path to a calling list file
- get_filename_component(_dashboardmoddir
- ${CMAKE_CURRENT_LIST_FILE}
- PATH)
-
- if(NOT "$ENV{USER}" MATCHES "^$")
- set(_user "$ENV{USER}")
- elseif(NOT "$ENV{USERNAME}" MATCHES "^$")
- set(_user "$ENV{USERNAME}")
- endif()
-
- if(NOT _dashboardscript_machine)
- if(NOT SITE)
- site_name(SITE)
- endif()
- set(_dashboardscript_machine "${SITE}" CACHE INTERNAL "")
- set(SITE
- "${_user}@${_dashboardscript_machine}"
- CACHE
- STRING
- "Human-readable site name"
- FORCE)
- endif()
-
- set(DASHBOARDSCRIPT_BASE_DIRECTORY
- "${CMAKE_BINARY_DIR}/Dashboards-${_dashboardscript_machine}-${_user}"
- CACHE
- PATH
- "Directory to use as the root of all dashboard work")
- mark_as_advanced(DASHBOARDSCRIPT_BASE_DIRECTORY)
-
- set(DASHBOARDSCRIPT_SOURCE_DIRECTORY "${CMAKE_SOURCE_DIR}")
-
- set(BUILDNAME
- "${CMAKE_SYSTEM}-${CMAKE_SYSTEM_PROCESSOR}-${_COMPILERID}"
- CACHE
- STRING
- "Human-readable build ID info")
-
- set(DASHBOARDSCRIPT_CMAKE_COMMAND
- "${CMAKE_COMMAND}"
- CACHE
- FILEPATH
- "The cmake binary to use when configuring a dashboard build")
- mark_as_advanced(DASHBOARDSCRIPT_CMAKE_COMMAND)
-
- # Try to find CTest, preferably right next to the chosen CMake
- if(DASHBOARDSCRIPT_CMAKE_COMMAND)
- get_filename_component(_cmake_dir
- ${DASHBOARDSCRIPT_CMAKE_COMMAND}
- PATH)
- else()
- get_filename_component(_cmake_dir ${CMAKE_COMMAND} PATH)
- endif()
- find_program(DASHBOARDSCRIPT_CTEST_EXECUTABLE
- NAMES
- ctest
- HINTS
- "${_cmake_dir}"
- NO_DEFAULT_PATH)
- find_program(DASHBOARDSCRIPT_CTEST_EXECUTABLE
- NAMES
- ctest
- HINTS
- "${_cmake_dir}")
-
-
- set(DASHBOARDSCRIPT_CTEST_EXECUTABLE
- "${DASHBOARDSCRIPT_CTEST_EXECUTABLE}"
- CACHE
- FILEPATH
- "Path to the CTest executable to use for dashboard builds.")
- mark_as_advanced(DASHBOARDSCRIPT_CTEST_EXECUTABLE)
-
-
- # Optionals
-
- if(NOT "1.${CMAKE_VERSION}" VERSION_LESS "1.2.8.0")
- if(IS_DIRECTORY "${CMAKE_SOURCE_DIRECTORY}/.git")
- find_program(DASHBOARDSCRIPT_GIT_EXECUTABLE NAMES git git.cmd)
- if(DASHBOARDSCRIPT_GIT_EXECUTABLE)
-
- set(UPDATE_TYPE "git")
- set(UPDATE_COMMAND "${DASHBOARDSCRIPT_GIT_EXECUTABLE}")
- set(UPDATE_OPTIONS "")
- mark_as_advanced(DASHBOARDSCRIPT_GIT_EXECUTABLE)
- endif()
- endif()
- endif()
-
-else()
- # IN_DASHBOARD_SCRIPT is YES
- message(STATUS
- "CreateDashboardScripts detected that we're in a dashboard script already.")
-endif()
-
-function(create_dashboard_scripts)
- # Only create the script if we have all the required variables
- # and are not already in it, and are at least 2.8.0.
- if(DASHBOARDSCRIPT_BASE_DIRECTORY AND
- DASHBOARDSCRIPT_SOURCE_DIRECTORY AND
- DASHBOARDSCRIPT_BASE_DIRECTORY AND
- BUILDNAME AND
- DASHBOARDSCRIPT_CMAKE_COMMAND AND
- DASHBOARDSCRIPT_CTEST_EXECUTABLE AND
- NOT IN_DASHBOARD_SCRIPT AND
- NOT "${CMAKE_VERSION}" VERSION_LESS "2.8.0")
-
- set(_Continuous_cron "15 * * * * ")
- set(_Nightly_cron "15 0 * * * ")
- set(_Experimental_cron
- "\nor run this command for an one-off experimental test build:\n")
- set(_Experimental_flags "-VV")
-
- message(STATUS
- "Dashboard scripts have been generated for automatic nightly and continuous builds.")
- if(WIN32)
- set(_Continuous_cron)
- set(_Nightly_cron)
- message(STATUS
- "You can set up scheduled tasks to run these command lines:")
- else()
- message(STATUS "You can add these sample lines to your crontab:")
- endif()
-
- set(_msg)
-
- if(NOT DASHBOARDSCRIPT_BUILD_CONFIGURATION)
- set(DASHBOARDSCRIPT_BUILD_CONFIGURATION "RelWithDebInfo")
- endif()
- set(DASHBOARDSCRIPT_BUILD_CONFIGURATION "${DASHBOARDSCRIPT_BUILD_CONFIGURATION}" CACHE STRING "Build configuration to use for dashboard builds by default")
- mark_as_advanced(DASHBOARDSCRIPT_BUILD_CONFIGURATION)
-
- foreach(DASHBOARDSCRIPT_DASH_TYPE Nightly Continuous Experimental)
- # If given a cache template, configure it
- if(ARGN)
- configure_file(${ARGN}
- "${DASHBOARDSCRIPT_BASE_DIRECTORY}/GeneratedInitialCache.run${DASHBOARDSCRIPT_DASH_TYPE}.cmake"
- @ONLY)
- endif()
-
- # Actually create the script file
- configure_file(${_dashboardmoddir}/DashboardScript.cmake.in
- "${DASHBOARDSCRIPT_BASE_DIRECTORY}/run${DASHBOARDSCRIPT_DASH_TYPE}.cmake"
- @ONLY)
-
- set(_msg
- "${_msg}\n${_${DASHBOARDSCRIPT_DASH_TYPE}_cron}\"${DASHBOARDSCRIPT_CTEST_EXECUTABLE}\" -S \"${DASHBOARDSCRIPT_BASE_DIRECTORY}/run${DASHBOARDSCRIPT_DASH_TYPE}.cmake\" ${_${DASHBOARDSCRIPT_DASH_TYPE}_flags}")
-
- endforeach()
- message(STATUS "\n${_msg}\n")
- message(STATUS "")
-
- endif()
-endfunction()
Deleted: branches/1.2/cmake/CreateImportedTarget.cmake
===================================================================
--- branches/1.2/cmake/CreateImportedTarget.cmake 2012-07-27 22:21:58 UTC (rev 695)
+++ branches/1.2/cmake/CreateImportedTarget.cmake 2012-07-27 22:30:15 UTC (rev 696)
@@ -1,64 +0,0 @@
-# - A smarter replacement for list(REMOVE_DUPLICATES) for library lists
-#
-# create_imported_target(<libname> [SHARED|STATIC|MODULE] [<library dependency>...]) - where
-# ${libname}_LIBRARIES is set to this library's paths.
-#
-# Removes duplicates from the list then sorts while preserving "optimized",
-# "debug", and "general" labeling
-#
-# Requires CMake 2.6 or newer (uses the 'function' command)
-#
-# Original Author:
-# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
-# http://academic.cleardefinition.com
-# Iowa State University HCI Graduate Program/VRAC
-#
-# Copyright Iowa State University 2009-2010.
-# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or copy at
-# http://www.boost.org/LICENSE_1_0.txt)
-
-if(__create_imported_target)
- return()
-endif()
-set(__create_imported_target YES)
-
-function(create_imported_target _libname)
- if(ARGN)
- list(FIND ARGN SHARED _target_shared)
- list(FIND ARGN STATIC _target_static)
- list(FIND ARGN MODULE _target_module)
-
- if(${_target_shared} GREATER -1)
- set(_target_type SHARED)
- elseif(${_target_static} GREATER -1)
- set(_target_type STATIC)
- elseif(${_target_module} GREATER -1)
- set(_target_type MODULE)
- else()
- set(_target_type UNKNOWN)
- endif()
-
- set(_deps ${ARGN})
- list(REMOVE_ITEM _deps SHARED STATIC MODULE UNKNOWN)
- else()
- set(_target_type UNKNOWN)
- set(_deps)
- endif()
-
- if(${_libname}_LIBRARIES AND NOT TARGET ${_libname}_imported)
- add_library(${_libname}_imported ${_target_type} IMPORTED)
- #message(STATUS "Library ${_libname}: lib ${${_libname}_LIBRARIES}")
- #message(STATUS "Deps: ${_deps}")
- set_target_properties(${_libname}_imported
- PROPERTIES
- IMPORTED_LOCATION
- "${${_libname}_LIBRARIES}"
- IMPORTED_LINK_INTERFACE_LIBRARIES
- "${_deps}")
- endif()
-
- if(TARGET ${_libname}_imported)
- set(${_libname}_LIBRARIES ${_libname}_imported PARENT_SCOPE)
- endif()
-endfunction()
Deleted: bra...
[truncated message content] |
|
From: <pat...@us...> - 2012-07-27 22:22:04
|
Revision: 695
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=695&view=rev
Author: patrickh
Date: 2012-07-27 22:21:58 +0000 (Fri, 27 Jul 2012)
Log Message:
-----------
Set the package version to 1.3.0.
Submitted by: Doug McCorkle
Modified Paths:
--------------
trunk/CMakeLists.txt
Modified: trunk/CMakeLists.txt
===================================================================
--- trunk/CMakeLists.txt 2012-07-27 22:21:26 UTC (rev 694)
+++ trunk/CMakeLists.txt 2012-07-27 22:21:58 UTC (rev 695)
@@ -9,8 +9,8 @@
project(cppdom)
set(CPACK_PACKAGE_VERSION_MAJOR "1")
-set(CPACK_PACKAGE_VERSION_MINOR "0")
-set(CPACK_PACKAGE_VERSION_PATCH "3")
+set(CPACK_PACKAGE_VERSION_MINOR "3")
+set(CPACK_PACKAGE_VERSION_PATCH "0")
set(CPACK_PACKAGE_VERSION
"${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
set(VERSION_UNDERSCORES "${CPACK_PACKAGE_VERSION_MAJOR}_${CPACK_PACKAGE_VERSION_MINOR}_${CPACK_PACKAGE_VERSION_PATCH}")
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pat...@us...> - 2012-07-27 22:21:36
|
Revision: 694
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=694&view=rev
Author: patrickh
Date: 2012-07-27 22:21:26 +0000 (Fri, 27 Jul 2012)
Log Message:
-----------
Remove unneeded CMake stuff.
Submitted by: Doug McCorkle
Modified Paths:
--------------
trunk/CMakeLists.txt
Removed Paths:
-------------
trunk/cmake/BoostTestTargets.cmake
trunk/cmake/BoostTestTargetsDynamic.h
trunk/cmake/BoostTestTargetsIncluded.h
trunk/cmake/BoostTestTargetsStatic.h
trunk/cmake/BundleOSGPlugins.cmake
trunk/cmake/BundleOSGRuntime.cmake
trunk/cmake/BundleVRJ22Runtime.cmake
trunk/cmake/BundleVRJ30Runtime.cmake
trunk/cmake/CheckMacHIDAPI.cmake
trunk/cmake/CheckMacHIDAPI.cpp
trunk/cmake/CheckVersion.cmake
trunk/cmake/CleanDirectoryList.cmake
trunk/cmake/CleanLibraryList.cmake
trunk/cmake/CppcheckTargets.cmake
trunk/cmake/CreateDashboardScripts.cmake
trunk/cmake/CreateImportedTarget.cmake
trunk/cmake/CreateLaunchers.cmake
trunk/cmake/DashboardScript.cmake.in
trunk/cmake/DoxygenTargets.cmake
trunk/cmake/DoxygenTargets.doxyfile.in
trunk/cmake/EnableExtraCompilerWarnings.cmake
trunk/cmake/EnableProfiling.cmake
trunk/cmake/FileCopyTargets.cmake
trunk/cmake/FindALUT.cmake
trunk/cmake/FindBluez.cmake
trunk/cmake/FindDCubed.cmake
trunk/cmake/FindFlagpoll.cmake
trunk/cmake/FindGDB.cmake
trunk/cmake/FindGHOST.cmake
trunk/cmake/FindGLUI.cmake
trunk/cmake/FindGLUT.cmake
trunk/cmake/FindGMTL.cmake
trunk/cmake/FindGPM.cmake
trunk/cmake/FindGadgeteer12.cmake
trunk/cmake/FindGadgeteer20.cmake
trunk/cmake/FindGlove5DT.cmake
trunk/cmake/FindHIDAPI.cmake
trunk/cmake/FindJCCL12.cmake
trunk/cmake/FindJCCL14.cmake
trunk/cmake/FindJtTk.cmake
trunk/cmake/FindJtTk.stampkey.cmake.in
trunk/cmake/FindLAPACKLibs.cmake
trunk/cmake/FindLibusb1.cmake
trunk/cmake/FindLuabind.cmake
trunk/cmake/FindLyX.cmake
trunk/cmake/FindMacHID.cmake
trunk/cmake/FindOpenCV.cmake
trunk/cmake/FindOpenHaptics.cmake
trunk/cmake/FindOpenHaptics.cpp
trunk/cmake/FindParasolid.cmake
trunk/cmake/FindSonix12.cmake
trunk/cmake/FindSonix14.cmake
trunk/cmake/FindTR1.cmake
trunk/cmake/FindTooN.cmake
trunk/cmake/FindTooNtag.cmake
trunk/cmake/FindTweek12.cmake
trunk/cmake/FindTweek14.cmake
trunk/cmake/FindVPR20.cmake
trunk/cmake/FindVPR22.cmake
trunk/cmake/FindVPS.cmake
trunk/cmake/FindVRJ22.cmake
trunk/cmake/FindVRJ30.cmake
trunk/cmake/FindVRJOGL22.cmake
trunk/cmake/FindVRJOGL30.cmake
trunk/cmake/FindVRJuggler.cmake
trunk/cmake/FindVRJuggler22.cmake
trunk/cmake/FindVRJuggler30.cmake
trunk/cmake/FindVRPN.cmake
trunk/cmake/FindVirtuoseAPI.cmake
trunk/cmake/FindVirtuoseVPP.cmake
trunk/cmake/FindWiiSCAAT.cmake
trunk/cmake/FindWiiUse.cmake
trunk/cmake/FindWinHID.cmake
trunk/cmake/Findargp.cmake
trunk/cmake/Findcppcheck.cmake
trunk/cmake/Findcppcheck.cpp
trunk/cmake/Findcutil.cmake
trunk/cmake/Finddb2pdf.cmake
trunk/cmake/FindosgLua.cmake
trunk/cmake/Findquatlib.cmake
trunk/cmake/GetCPUDetails.cmake
trunk/cmake/GetCompilerInfoString.cmake
trunk/cmake/GetDirectoryList.cmake
trunk/cmake/GetFileList.cmake
trunk/cmake/GetForceIncludeDefinitions.cmake
trunk/cmake/GetGitRevisionDescription.cmake
trunk/cmake/GetGitRevisionDescription.cmake.in
trunk/cmake/GetSubprojectStatus.cmake
trunk/cmake/LICENSE_1_0.txt
trunk/cmake/Licensing.cmake
trunk/cmake/ListCombinations.cmake
trunk/cmake/ListFilter.cmake
trunk/cmake/LuaTargets.cmake
trunk/cmake/MSVCMultipleProcessCompile.cmake
trunk/cmake/MSVCStaticRuntime.cmake
trunk/cmake/MSVCVerboseLinking.cmake
trunk/cmake/MakeVRJugglerAppBundle.cmake
trunk/cmake/MakeVRJugglerAppBundle30.cmake
trunk/cmake/OptionRequires.cmake
trunk/cmake/PrefixListGlob.cmake
trunk/cmake/ProgramFilesGlob.cmake
trunk/cmake/README.markdown
trunk/cmake/ResetConfigurations.cmake
trunk/cmake/SearchProgramFilesForOpenSceneGraph.cmake
trunk/cmake/SetDefaultBuildType.cmake
trunk/cmake/SplitLibraryList.cmake
trunk/cmake/StampSourcesWithVersion.cmake
trunk/cmake/StampSourcesWithVersion.sed.in
trunk/cmake/TCHARWorkaround.cmake
trunk/cmake/UseBackportedModules.cmake
trunk/cmake/UseTR1.cmake
trunk/cmake/WarningDev.cmake
trunk/cmake/cmake-2.8.0-modules/features/SelectLibraryConfigurations.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindOpenSceneGraph.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindOpenThreads.cmake
trunk/cmake/cmake-2.8.0-modules/osg/Findosg.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindosgAnimation.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindosgDB.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindosgFX.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindosgGA.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindosgIntrospection.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindosgManipulator.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindosgParticle.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindosgProducer.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindosgShadow.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindosgSim.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindosgTerrain.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindosgText.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindosgUtil.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindosgViewer.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindosgVolume.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindosgWidget.cmake
trunk/cmake/cmake-2.8.0-modules/osg/Findosg_functions.cmake
trunk/cmake/cmake-2.8.1-modules/patchctestbug10149/CTest.cmake
trunk/cmake/cmake-2.8.1-modules/patchctestbug10149/CTestScriptMode.cmake
trunk/cmake/cmake-2.8.1-modules/patchctestbug10149/CTestTargets.cmake
trunk/cmake/cmake-2.8.3-modules/FixWinInstallPrefix.cmake
trunk/cmake/cmake-2.8.3-modules/autoinclude.cmake
trunk/cmake/cmake-2.8.4-modules/ImproveEclipseGCCErrors.cmake
trunk/cmake/cmake-2.8.4-modules/autoinclude.cmake
trunk/cmake/cmake-2.8.4-modules/boost/FindBoost.cmake
trunk/cmake/cmake-2.9.0-modules/RequireOutOfSourceBuild.cmake
trunk/cmake/cmake-2.9.0-modules/autoinclude.cmake
trunk/cmake/export-to-directory.sh
trunk/cmake/ghost-fake-stl/iostream.h
trunk/cmake/ghost-fake-stl/list.h
trunk/cmake/ghost-fake-stl/set.h
trunk/cmake/ghost-fake-stl/vector.h
trunk/cmake/launcher-templates/genericlauncher.cmd.in
trunk/cmake/launcher-templates/genericlauncher.sh.in
trunk/cmake/launcher-templates/launcher.env.cmd.in
trunk/cmake/launcher-templates/launcher.env.sh.in
trunk/cmake/launcher-templates/perconfig.vcproj.user.in
trunk/cmake/launcher-templates/targetlauncher.cmd.in
trunk/cmake/launcher-templates/targetlauncher.sh.in
trunk/cmake/launcher-templates/vcproj.user.in
trunk/cmake/module-docs/AllModuleDependencies.dot
trunk/cmake/module-docs/Example-FindMyPackage-UsingImportedTargets.cmake
trunk/cmake/module-docs/Example-FindMyPackage.cmake
trunk/cmake/module-docs/Example-FindMySimplePackage.cmake
trunk/cmake/module-help.html
trunk/cmake/module-help.txt
trunk/cmake/nested_targets/DCubed/CMakeLists.txt
trunk/cmake/nested_targets/DCubed/d3ew_p/CMakeLists.txt
trunk/cmake/nested_targets/DCubed/d3ew_scene/CMakeLists.txt
trunk/cmake/nested_targets/OpenHaptics/CMakeLists.txt
trunk/cmake/nested_targets/Parasolid/CMakeLists.txt
trunk/cmake/nested_targets/cutil/CMakeLists.txt
trunk/cmake/package/macosx/Resources/en.lproj/MainMenu.nib/classes.nib
trunk/cmake/package/macosx/Resources/en.lproj/MainMenu.nib/info.nib
trunk/cmake/package/macosx/Resources/vrjuggler.plist
trunk/cmake/package/macosx/VRJuggler22BundleInfo.plist.in
trunk/cmake/package/macosx/VRJuggler30BundleInfo.plist.in
trunk/cmake/package/macosx/fixupbundle.cmake.in
trunk/cmake/package-licensing/Boost.cmake
trunk/cmake/package-licensing/Eigen.cmake
trunk/cmake/package-licensing/FLTK.cmake
trunk/cmake/package-licensing/Lua.cmake
trunk/cmake/package-licensing/LuaBind.cmake
trunk/cmake/package-licensing/OpenHapticsAcademicEdition.cmake
trunk/cmake/package-licensing/OpenSceneGraph.cmake
trunk/cmake/package-licensing/PhysicalModelingUtils.cmake
trunk/cmake/package-licensing/Qt-LGPL.cmake
trunk/cmake/package-licensing/VPS.cmake
trunk/cmake/package-licensing/VRJuggLua.cmake
trunk/cmake/package-licensing/VRJuggler.cmake
trunk/cmake/package-licensing/VirtuoseAPI.cmake
trunk/cmake/package-licensing/osgLua.cmake
trunk/cmake/update-help.sh
trunk/cmake/workarounds/mac-alut-framework/AL/alut.h
trunk/cmake/workarounds/mac-gl/GL/gl.h
trunk/cmake/workarounds/mac-gl/GL/glui.h
trunk/cmake/workarounds/mac-gl/GL/glut.h
trunk/cmake/workarounds/mac-openal/AL/al.h
trunk/cmake/workarounds/mac-openal/AL/alc.h
trunk/cmake/workarounds/tchar/tchar.h
Modified: trunk/CMakeLists.txt
===================================================================
--- trunk/CMakeLists.txt 2012-07-04 20:35:57 UTC (rev 693)
+++ trunk/CMakeLists.txt 2012-07-27 22:21:26 UTC (rev 694)
@@ -3,7 +3,7 @@
# http://academic.cleardefinition.com/
# Iowa State University HCI Graduate Program/VRAC
-cmake_minimum_required(VERSION 2.6.2)
+cmake_minimum_required(VERSION 2.8.8)
# Set package properties
project(cppdom)
@@ -64,7 +64,6 @@
# Perform build configuration of dependencies
###
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
-include(UseBackportedModules)
include(CTest)
find_package(Boost)
Deleted: trunk/cmake/BoostTestTargets.cmake
===================================================================
--- trunk/cmake/BoostTestTargets.cmake 2012-07-04 20:35:57 UTC (rev 693)
+++ trunk/cmake/BoostTestTargets.cmake 2012-07-27 22:21:26 UTC (rev 694)
@@ -1,274 +0,0 @@
-# - Add tests using boost::test
-#
-# Add this line to your test files in place of including a basic boost test header:
-# #include <BoostTestTargetConfig.h>
-#
-# If you cannot do that and must use the included form for a given test,
-# include the line
-# // OVERRIDE_BOOST_TEST_INCLUDED_WARNING
-# in the same file with the boost test include.
-#
-# include(BoostTestTargets)
-# add_boost_test(<testdriver_name> SOURCES <source1> [<more sources...>]
-# [FAIL_REGULAR_EXPRESSION <additional fail regex>]
-# [LAUNCHER <generic launcher script>]
-# [LIBRARIES <library> [<library>...]]
-# [RESOURCES <resource> [<resource>...]]
-# [TESTS <testcasename> [<testcasename>...]])
-#
-# If for some reason you need access to the executable target created,
-# it can be found in ${${testdriver_name}_TARGET_NAME} as specified when
-# you called add_boost_test
-#
-# Requires CMake 2.6 or newer (uses the 'function' command)
-#
-# Requires:
-# GetForceIncludeDefinitions
-# CopyResourcesToBuildTree
-#
-# Original Author:
-# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
-# http://academic.cleardefinition.com
-# Iowa State University HCI Graduate Program/VRAC
-#
-# Copyright Iowa State University 2009-2010.
-# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or copy at
-# http://www.boost.org/LICENSE_1_0.txt)
-
-if(__add_boost_test)
- return()
-endif()
-set(__add_boost_test YES)
-
-set(BOOST_TEST_TARGET_PREFIX "boosttest")
-
-if(NOT Boost_FOUND)
- find_package(Boost 1.34.0 QUIET)
-endif()
-if("${Boost_VERSION}0" LESS "1034000")
- set(_shared_msg
- "NOTE: boost::test-based targets and tests cannot "
- "be added: boost >= 1.34.0 required but not found. "
- "(found: '${Boost_VERSION}'; want >=103400) ")
- if(BUILD_TESTING)
- message(FATAL_ERROR
- ${_shared_msg}
- "You may disable BUILD_TESTING to continue without the "
- "tests.")
- else()
- message(STATUS
- ${_shared_msg}
- "BUILD_TESTING disabled, so continuing anyway.")
- endif()
-endif()
-
-include(GetForceIncludeDefinitions)
-include(CopyResourcesToBuildTree)
-
-if(Boost_FOUND AND NOT "${Boost_VERSION}0" LESS "1034000")
- set(_boosttesttargets_libs)
- set(_boostConfig "BoostTestTargetsIncluded.h")
- if(NOT Boost_UNIT_TEST_FRAMEWORK_LIBRARY)
- find_package(Boost 1.34.0 QUIET COMPONENTS unit_test_framework)
- endif()
- if(Boost_UNIT_TEST_FRAMEWORK_LIBRARY)
- set(_boosttesttargets_libs "${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}")
- if(Boost_USE_STATIC_LIBS)
- set(_boostConfig "BoostTestTargetsStatic.h")
- else()
- if(NOT APPLE)
- set(_boostConfig "BoostTestTargetsDynamic.h")
- endif()
- endif()
- endif()
- get_filename_component(_moddir ${CMAKE_CURRENT_LIST_FILE} PATH)
- configure_file("${_moddir}/${_boostConfig}"
- "${CMAKE_CURRENT_BINARY_DIR}/BoostTestTargetConfig.h"
- COPYONLY)
- include_directories("${CMAKE_CURRENT_BINARY_DIR}")
-endif()
-
-function(add_boost_test _name)
- if(NOT BUILD_TESTING)
- return()
- endif()
- if("${CMAKE_VERSION}" VERSION_LESS "2.8.0")
- if(NOT "${_boost_test_cmakever_pestered}x" EQUALS "${CMAKE_VERSION}x")
- message(STATUS
- "Not adding boost::test targets - CMake 2.8.0 or newer required, using ${CMAKE_VERSION}")
- set(_boost_test_cmakever_pestered
- "${CMAKE_VERSION}"
- CACHE
- INTERNAL
- ""
- FORCE)
- endif()
- return()
- endif()
-
- # parse arguments
- set(_nowhere)
- set(_curdest _nowhere)
- set(_val_args
- SOURCES
- FAIL_REGULAR_EXPRESSION
- LAUNCHER
- LIBRARIES
- RESOURCES
- TESTS)
- set(_bool_args
- USE_COMPILED_LIBRARY)
- foreach(_arg ${_val_args} ${_bool_args})
- set(${_arg})
- endforeach()
- foreach(_element ${ARGN})
- list(FIND _val_args "${_element}" _val_arg_find)
- list(FIND _bool_args "${_element}" _bool_arg_find)
- if("${_val_arg_find}" GREATER "-1")
- set(_curdest "${_element}")
- elseif("${_bool_arg_find}" GREATER "-1")
- set("${_element}" ON)
- set(_curdest _nowhere)
- else()
- list(APPEND ${_curdest} "${_element}")
- endif()
- endforeach()
-
- if(_nowhere)
- message(FATAL_ERROR "Syntax error in use of add_boost_test!")
- endif()
-
- if(NOT SOURCES)
- message(FATAL_ERROR
- "Syntax error in use of add_boost_test: at least one source file required!")
- endif()
-
- if(Boost_FOUND AND NOT "${Boost_VERSION}0" LESS "1034000")
-
- include_directories(${Boost_INCLUDE_DIRS})
-
- set(includeType)
- foreach(src ${SOURCES})
- file(READ ${src} thefile)
- if("${thefile}" MATCHES ".*BoostTestTargetConfig.h.*")
- set(includeType CONFIGURED)
- set(includeFileLoc ${src})
- break()
- elseif("${thefile}" MATCHES ".*boost/test/included/unit_test.hpp.*")
- set(includeType INCLUDED)
- set(includeFileLoc ${src})
- set(_boosttesttargets_libs) # clear this out - linking would be a bad idea
- if(NOT
- "${thefile}"
- MATCHES
- ".*OVERRIDE_BOOST_TEST_INCLUDED_WARNING.*")
- message("Please replace the include line in ${src} with this alternate include line instead:")
- message(" \#include <BoostTestTargetConfig.h>")
- message("Once you've saved your changes, re-run CMake. (See BoostTestTargets.cmake for more info)")
- endif()
- break()
- endif()
- endforeach()
-
- if(NOT _boostTestTargetsNagged${_name} STREQUAL "${includeType}")
- if("includeType" STREQUAL "CONFIGURED")
- message(STATUS
- "Test '${_name}' uses the CMake-configurable form of the boost test framework - congrats! (Including File: ${includeFileLoc})")
- elseif("${includeType}" STREQUAL "INCLUDED")
- message("In test '${_name}': ${includeFileLoc} uses the 'included' form of the boost unit test framework.")
- else()
- message("In test '${_name}': Didn't detect the CMake-configurable boost test include.")
- message("Please replace your existing boost test include in that test with the following:")
- message(" \#include <BoostTestTargetConfig.h>")
- message("Once you've saved your changes, re-run CMake. (See BoostTestTargets.cmake for more info)")
- endif()
- endif()
- set(_boostTestTargetsNagged${_name}
- "${includeType}"
- CACHE
- INTERNAL
- ""
- FORCE)
-
-
- if(RESOURCES)
- list(APPEND SOURCES ${RESOURCES})
- endif()
-
- # Generate a unique target name, using the relative binary dir
- # and provided name. (transform all / into _ and remove all other
- # non-alphabet characters)
- file(RELATIVE_PATH
- targetpath
- "${CMAKE_BINARY_DIR}"
- "${CMAKE_CURRENT_BINARY_DIR}")
- string(REGEX REPLACE "[^A-Za-z/_]" "" targetpath "${targetpath}")
- string(REPLACE "/" "_" targetpath "${targetpath}")
-
- set(_target_name ${BOOST_TEST_TARGET_PREFIX}-${targetpath}-${_name})
- set(${_name}_TARGET_NAME "${_target_name}" PARENT_SCOPE)
-
- # Build the test.
- add_executable(${_target_name} ${SOURCES})
-
- list(APPEND LIBRARIES ${_boosttesttargets_libs})
-
- if(LIBRARIES)
- target_link_libraries(${_target_name} ${LIBRARIES})
- endif()
-
- if(RESOURCES)
- set_property(TARGET ${_target_name} PROPERTY RESOURCE ${RESOURCES})
- copy_resources_to_build_tree(${_target_name})
- endif()
-
- if(NOT Boost_TEST_FLAGS)
-# set(Boost_TEST_FLAGS --catch_system_error=yes --output_format=XML)
- set(Boost_TEST_FLAGS --catch_system_error=yes)
- endif()
-
- # TODO: Figure out why only recent boost handles individual test running properly
-
- if(LAUNCHER)
- set(_test_command ${LAUNCHER} "\$<TARGET_FILE:${_target_name}>")
- else()
- set(_test_command ${_target_name})
- endif()
-
- if(TESTS AND ( "${Boost_VERSION}" VERSION_GREATER "103799" ))
- foreach(_test ${TESTS})
- add_test(NAME
- ${_name}-${_test}
- COMMAND
- ${_test_command}
- --run_test=${_test}
- ${Boost_TEST_FLAGS})
- if(FAIL_REGULAR_EXPRESSION)
- set_tests_properties(${_name}-${_test}
- PROPERTIES
- FAIL_REGULAR_EXPRESSION
- "${FAIL_REGULAR_EXPRESSION}")
- endif()
- endforeach()
- else()
- add_test(NAME
- ${_name}-boost_test
- COMMAND
- ${_test_command}
- ${Boost_TEST_FLAGS})
- if(FAIL_REGULAR_EXPRESSION)
- set_tests_properties(${_name}-${_test}
- PROPERTIES
- FAIL_REGULAR_EXPRESSION
- "${FAIL_REGULAR_EXPRESSION}")
- endif()
- endif()
-
- # CppCheck the test if we can.
- if(COMMAND add_cppcheck)
- add_cppcheck(${_target_name} STYLE UNUSED_FUNCTIONS)
- endif()
-
- endif()
-endfunction()
Deleted: trunk/cmake/BoostTestTargetsDynamic.h
===================================================================
--- trunk/cmake/BoostTestTargetsDynamic.h 2012-07-04 20:35:57 UTC (rev 693)
+++ trunk/cmake/BoostTestTargetsDynamic.h 2012-07-27 22:21:26 UTC (rev 694)
@@ -1,9 +0,0 @@
-// Small header computed by CMake to set up boost test.
-// include AFTER #define BOOST_TEST_MODULE whatever
-// but before any other boost test includes.
-
-// Using the Boost UTF dynamic library
-
-#define BOOST_TEST_DYN_LINK
-#include <boost/test/unit_test.hpp>
-
Deleted: trunk/cmake/BoostTestTargetsIncluded.h
===================================================================
--- trunk/cmake/BoostTestTargetsIncluded.h 2012-07-04 20:35:57 UTC (rev 693)
+++ trunk/cmake/BoostTestTargetsIncluded.h 2012-07-27 22:21:26 UTC (rev 694)
@@ -1,7 +0,0 @@
-// Small header computed by CMake to set up boost test.
-// include AFTER #define BOOST_TEST_MODULE whatever
-// but before any other boost test includes.
-
-// Using the Boost UTF included framework
-
-#include <boost/test/included/unit_test.hpp>
Deleted: trunk/cmake/BoostTestTargetsStatic.h
===================================================================
--- trunk/cmake/BoostTestTargetsStatic.h 2012-07-04 20:35:57 UTC (rev 693)
+++ trunk/cmake/BoostTestTargetsStatic.h 2012-07-27 22:21:26 UTC (rev 694)
@@ -1,7 +0,0 @@
-// Small header computed by CMake to set up boost test.
-// include AFTER #define BOOST_TEST_MODULE whatever
-// but before any other boost test includes.
-
-// Using the Boost UTF static library
-
-#include <boost/test/unit_test.hpp>
Deleted: trunk/cmake/BundleOSGPlugins.cmake
===================================================================
--- trunk/cmake/BundleOSGPlugins.cmake 2012-07-04 20:35:57 UTC (rev 693)
+++ trunk/cmake/BundleOSGPlugins.cmake 2012-07-27 22:21:26 UTC (rev 694)
@@ -1,83 +0,0 @@
-# - Provide access to the OpenSceneGraph runtime files for bundling in
-# an installation or package.
-#
-# Sets these variables:
-# - OSGDB_PLUGINS_RELEASE
-# - OSGDB_PLUGINS_DEBUG
-# - OSGWRAPPER_PLUGINS_RELEASE
-# - OSGWRAPPER_PLUGINS_DEBUG
-# - OSG_RUNTIME_LIBRARY_DIR
-# - OSG_PATH_TO_PLUGINS
-#
-# Creates this function:
-# - install_osg_plugins( {varNameForOutputFilenames} )
-#
-# Requires these CMake modules:
-# no additional modules required
-#
-# Original Author:
-# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
-# http://academic.cleardefinition.com
-# Iowa State University HCI Graduate Program/VRAC
-#
-# Copyright Iowa State University 2009-2010.
-# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or copy at
-# http://www.boost.org/LICENSE_1_0.txt)
-
-
-function(_osgbundle_split_debug_versions releasevar debugvar)
- set(release)
- set(debug)
- foreach(fn ${ARGN})
- get_filename_component(name "${fn}" NAME_WE)
- if(${name} MATCHES "d$")
- list(APPEND debug "${fn}")
- else()
- list(APPEND release "${fn}")
- endif()
- endforeach()
- set(${releasevar} ${release} PARENT_SCOPE)
- set(${debugvar} ${debug} PARENT_SCOPE)
-endfunction()
-
-function(_osgbundle_find_plugins varprefix filenameprefix)
- file(GLOB
- all
- "${OSG_RUNTIME_LIBRARY_DIR}/osgPlugins-${OPENSCENEGRAPH_VERSION}/${filenameprefix}*${CMAKE_SHARED_LIBRARY_SUFFIX}")
- _osgbundle_split_debug_versions(${varprefix}_PLUGINS_RELEASE
- ${varprefix}_PLUGINS_DEBUG
- ${all})
- set(${varprefix}_PLUGINS_RELEASE
- "${${varprefix}_PLUGINS_RELEASE}"
- PARENT_SCOPE)
- set(${varprefix}_PLUGINS_DEBUG
- "${${varprefix}_PLUGINS_DEBUG}"
- PARENT_SCOPE)
-endfunction()
-
-if(OPENSCENEGRAPH_FOUND)
- if(WIN32)
- get_filename_component(_osglibdir "${OSG_LIBRARY}" PATH)
- get_filename_component(_osgroot "${_osglibdir}/.." ABSOLUTE)
- set(OSG_RUNTIME_LIBRARY_DIR "${_osgroot}/bin")
- set(OSG_PATH_TO_PLUGINS "bin/osgPlugins-${OPENSCENEGRAPH_VERSION}/")
- else()
- get_filename_component(_osglibdir "${OSG_LIBRARY}" PATH)
- set(OSG_RUNTIME_LIBRARY_DIR "${_osglibdir}")
- set(OSG_PATH_TO_PLUGINS "lib/osgPlugins-${OPENSCENEGRAPH_VERSION}/")
- endif()
- # Find the osgDB plugins
- _osgbundle_find_plugins(OSGDB osgdb)
- _osgbundle_find_plugins(OSGWRAPPER osgwrapper)
-endif()
-
-function(install_osg_plugins var)
- set(INSTALLEDPLUGINS)
- foreach(plugin ${OSGDB_PLUGINS_RELEASE} ${OSGWRAPPER_PLUGINS_RELEASE})
- install(FILES "${plugin}" DESTINATION "${OSG_PATH_TO_PLUGINS}")
- get_filename_component(name "${plugin}" NAME)
- list(APPEND INSTALLEDPLUGINS "${OSG_PATH_TO_PLUGINS}/${name}")
- endforeach()
- set(${var} ${INSTALLEDPLUGINS} PARENT_SCOPE)
-endfunction()
Deleted: trunk/cmake/BundleOSGRuntime.cmake
===================================================================
--- trunk/cmake/BundleOSGRuntime.cmake 2012-07-04 20:35:57 UTC (rev 693)
+++ trunk/cmake/BundleOSGRuntime.cmake 2012-07-27 22:21:26 UTC (rev 694)
@@ -1,118 +0,0 @@
-# - Include the OpenSceneGraph runtime files in an installation or built package.
-#
-# OSGRUNTIME_BUNDLE - Set to "yes" to enable this behavior
-# OSGRUNTIME_zlib1dll - Must be set to the location of zlib1.dll on Windows
-# OSGRUNTIME_zlib1ddll - Can be set to the location of zlib1d.dll (debug) on Windows.
-# If set, will be installed.
-#
-# Requires these CMake modules:
-# no additional modules required
-#
-# Original Author:
-# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
-# http://academic.cleardefinition.com
-# Iowa State University HCI Graduate Program/VRAC
-#
-# Copyright Iowa State University 2009-2010.
-# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or copy at
-# http://www.boost.org/LICENSE_1_0.txt)
-
-function(_osgbundle_split_debug_versions releasevar debugvar)
- set(release)
- set(debug)
- foreach(fn ${ARGN})
- get_filename_component(name "${fn}" NAME_WE)
- if(${name} MATCHES "d$")
- list(APPEND debug "${fn}")
- else()
- list(APPEND release "${fn}")
- endif()
- endforeach()
- set(${releasevar} ${release} PARENT_SCOPE)
- set(${debugvar} ${debug} PARENT_SCOPE)
-endfunction()
-
-function(_osgbundle_find_plugins varprefix filenameprefix)
- file(GLOB
- all
- "${OSG_RUNTIME_LIBRARY_DIR}/osgPlugins-${OPENSCENEGRAPH_VERSION}/${filenameprefix}*${CMAKE_SHARED_LIBRARY_SUFFIX}")
- _osgbundle_split_debug_versions(${varprefix}_PLUGINS_RELEASE
- ${varprefix}_PLUGINS_DEBUG
- ${all})
-endfunction()
-
-if(OPENSCENEGRAPH_FOUND)
- if(WIN32)
- get_filename_component(_osglibdir "${OSG_LIBRARY}" PATH)
- get_filename_component(_osgroot "${_osglibdir}/.." ABSOLUTE)
- set(OSG_RUNTIME_LIBRARY_DIR "${_osgroot}/bin")
- find_file(OSGBUNDLE_zlib1dll
- zlib1.dll
- PATHS
- "${_osgroot}/bin"
- "${_osgroot}/lib")
- find_file(OSGBUNDLE_zlib1ddll
- zlib1d.dll
- PATHS
- "${_osgroot}/bin"
- "${_osgroot}/lib")
- mark_as_advanced(OSGBUNDLE_zlib1dll OSGBUNDLE_zlib1ddll)
- set(_osgbundle_required OSGBUNDLE_zlib1dll)
- set(_osgbundle_platformOK on)
- else()
- get_filename_component(_osglibdir "${OSG_LIBRARY}" PATH)
- set(OSG_RUNTIME_LIBRARY_DIR "${_osglibdir}")
- set(_osgbundle_platformOK on)
- endif()
-
- # Find the osgDB plugins
-
- _osgbundle_find_plugins(OSGDB osgdb)
- _osgbundle_find_plugins(OSGWRAPPER osgwrapper)
-endif()
-
-
-
-if(_osgbundle_platformOK)
- set(_osgbundle_caninstall on)
- foreach(_var ${_osgbundle_required})
- if(NOT ${_var})
- # If we are missing a single required file, cut out now.
- set(_osgbundle_caninstall off)
- option(OSGRUNTIME_BUNDLE
- "Install a local copy of the OpenSceneGraph runtime files with the project."
- off)
- endif()
- endforeach()
- if(_osgbundle_caninstall)
- option(OSGRUNTIME_BUNDLE
- "Install a local copy of the OpenSceneGraph runtime files with the project."
- on)
- endif()
-endif()
-
-mark_as_advanced(OSGRUNTIME_BUNDLE)
-
-if(OSGRUNTIME_BUNDLE AND OPENSCENEGRAPH_FOUND AND _osgbundle_caninstall)
- if(WIN32)
- set(DESTINATION bin)
- install(FILES "${OSGBUNDLE_zlib1dll}"
- DESTINATION ${DESTINATION})
-
- if(OSGBUNDLE_zlib1ddll)
- install(FILES "${OSGBUNDLE_zlib1ddll}"
- DESTINATION ${DESTINATION})
- endif()
-
- else()
- set(DESTINATION lib)
- endif()
-
- install(DIRECTORY "${_osgroot}/bin/" "${_osgroot}/lib/"
- DESTINATION ${DESTINATION}
- FILES_MATCHING
-
- # Runtime files
- PATTERN "*${CMAKE_SHARED_LIBRARY_SUFFIX}")
-endif()
Deleted: trunk/cmake/BundleVRJ22Runtime.cmake
===================================================================
--- trunk/cmake/BundleVRJ22Runtime.cmake 2012-07-04 20:35:57 UTC (rev 693)
+++ trunk/cmake/BundleVRJ22Runtime.cmake 2012-07-27 22:21:26 UTC (rev 694)
@@ -1,99 +0,0 @@
-# - Include the VR Juggler runtime files in an installation or built package.
-#
-# VRJUGGLERRUNTIME_BUNDLE
-# VRJUGGLERRUNTIME_BUNDLE_DEBUG - set to yes to include debug dll's as well
-#
-# Requires these CMake modules:
-# FindVRJuggler22 and its dependencies
-#
-# Original Author:
-# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
-# http://academic.cleardefinition.com
-# Iowa State University HCI Graduate Program/VRAC
-#
-# Copyright Iowa State University 2009-2010.
-# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or copy at
-# http://www.boost.org/LICENSE_1_0.txt)
-
-if(WIN32)
- option(VRJUGGLERRUNTIME_BUNDLE
- "Install a local copy of the VR Juggler runtime files with the project."
- on)
- option(VRJUGGLERRUNTIME_BUNDLE_DEBUG
- "Install the VR Juggler debug runtime files as well."
- off)
- mark_as_advanced(VRJUGGLERRUNTIME_BUNDLE_DEBUG)
-else()
- # TODO - how to handle when not on Windows?
- #option(VRJUGGLERRUNTIME_BUNDLE "Install a local copy of the VR Juggler runtime files with the project." off)
-endif()
-
-mark_as_advanced(VRJUGGLERRUNTIME_BUNDLE VRJUGGLERRUNTIME_BUNDLE_DEBUG)
-
-if(VRJUGGLERRUNTIME_BUNDLE AND VRJUGGLER22_FOUND)
- if(WIN32)
- get_filename_component(_vrjlibdir "${VRJ22_LIBRARY_RELEASE}" PATH)
- get_filename_component(_vrjroot "${_vrjlibdir}/../" ABSOLUTE)
-
- # TODO - make sure gadgeteer and sonix can find their DSO's at runtime...
-
- foreach(_dir bin lib)
- if(VRJUGGLERRUNTIME_BUNDLE_DEBUG)
- install(DIRECTORY "${_vrjroot}/${_dir}/"
- DESTINATION bin
- PATTERN "*.lib" EXCLUDE # exclude static and link libraries
- PATTERN "*.exe" EXCLUDE # exclude unneeded executables
- PATTERN "*.py" EXCLUDE # exclude unneeded python executables
- PATTERN "*.pyc" EXCLUDE # exclude unneeded python executables
- )
- else()
- install(DIRECTORY ${_vrjroot}/${_dir}/
- DESTINATION bin
- PATTERN "*.lib" EXCLUDE # exclude static and link libraries
- PATTERN "*.exe" EXCLUDE # exclude unneeded executables
- PATTERN "*.py" EXCLUDE # exclude unneeded python executables
- PATTERN "*.pyc" EXCLUDE # exclude unneeded python executables
-
- PATTERN "*d.dll" EXCLUDE # exclude debug dll's
- PATTERN "*-gd-*.dll" EXCLUDE # exclude Boost debug dll's
- )
- endif()
-
- endforeach()
-
- install(DIRECTORY ${_vrjroot}/share/
- DESTINATION share
- FILES_MATCHING
-
- # Runtime files
- PATTERN "*.dll"
- PATTERN "*.jar"
-
- # Data files
- PATTERN "*.wav"
- PATTERN "*.xml"
- PATTERN "*.xsl"
- PATTERN "*.xsd"
- PATTERN "*.flt"
- PATTERN "*.dat"
- PATTERN "*.table"
-
-
- # Config files
- PATTERN "*.jdef"
- PATTERN "*.jconf"
- PATTERN "*.cfg"
- PATTERN "hosts.allow"
-
- # Other Files
- PATTERN "*.txt"
- PATTERN "COPYING*"
- PATTERN "ChangeLog"
- )
-
- endif()
-
-
-
-endif()
Deleted: trunk/cmake/BundleVRJ30Runtime.cmake
===================================================================
--- trunk/cmake/BundleVRJ30Runtime.cmake 2012-07-04 20:35:57 UTC (rev 693)
+++ trunk/cmake/BundleVRJ30Runtime.cmake 2012-07-27 22:21:26 UTC (rev 694)
@@ -1,96 +0,0 @@
-# - Include the VR Juggler runtime files in an installation or built package.
-#
-# VRJUGGLERRUNTIME_BUNDLE
-# VRJUGGLERRUNTIME_BUNDLE_DEBUG - set to yes to include debug dll's as well
-#
-# Requires these CMake modules:
-# FindVRJuggler22 and its dependencies
-#
-# Original Author:
-# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
-# http://academic.cleardefinition.com
-# Iowa State University HCI Graduate Program/VRAC
-# Updated for VR Juggler 3.0 by:
-# Brandon Newendorp <br...@ne...>
-
-if(WIN32)
- option(VRJUGGLERRUNTIME_BUNDLE
- "Install a local copy of the VR Juggler runtime files with the project."
- on)
- option(VRJUGGLERRUNTIME_BUNDLE_DEBUG
- "Install the VR Juggler debug runtime files as well."
- off)
- mark_as_advanced(VRJUGGLERRUNTIME_BUNDLE_DEBUG)
-else()
- # TODO - how to handle when not on Windows?
- #option(VRJUGGLERRUNTIME_BUNDLE "Install a local copy of the VR Juggler runtime files with the project." off)
-endif()
-
-mark_as_advanced(VRJUGGLERRUNTIME_BUNDLE VRJUGGLERRUNTIME_BUNDLE_DEBUG)
-
-if(VRJUGGLERRUNTIME_BUNDLE AND VRJUGGLER22_FOUND)
- if(WIN32)
- get_filename_component(_vrjlibdir "${VRJ22_LIBRARY_RELEASE}" PATH)
- get_filename_component(_vrjroot "${_vrjlibdir}/../" ABSOLUTE)
-
- # TODO - make sure gadgeteer and sonix can find their DSO's at runtime...
-
- foreach(_dir bin lib)
- if(VRJUGGLERRUNTIME_BUNDLE_DEBUG)
- install(DIRECTORY "${_vrjroot}/${_dir}/"
- DESTINATION bin
- PATTERN "*.lib" EXCLUDE # exclude static and link libraries
- PATTERN "*.exe" EXCLUDE # exclude unneeded executables
- PATTERN "*.py" EXCLUDE # exclude unneeded python executables
- PATTERN "*.pyc" EXCLUDE # exclude unneeded python executables
- )
- else()
- install(DIRECTORY ${_vrjroot}/${_dir}/
- DESTINATION bin
- PATTERN "*.lib" EXCLUDE # exclude static and link libraries
- PATTERN "*.exe" EXCLUDE # exclude unneeded executables
- PATTERN "*.py" EXCLUDE # exclude unneeded python executables
- PATTERN "*.pyc" EXCLUDE # exclude unneeded python executables
-
- PATTERN "*d.dll" EXCLUDE # exclude debug dll's
- PATTERN "*-gd-*.dll" EXCLUDE # exclude Boost debug dll's
- )
- endif()
-
- endforeach()
-
- install(DIRECTORY ${_vrjroot}/share/
- DESTINATION share
- FILES_MATCHING
-
- # Runtime files
- PATTERN "*.dll"
- PATTERN "*.jar"
-
- # Data files
- PATTERN "*.wav"
- PATTERN "*.xml"
- PATTERN "*.xsl"
- PATTERN "*.xsd"
- PATTERN "*.flt"
- PATTERN "*.dat"
- PATTERN "*.table"
-
-
- # Config files
- PATTERN "*.jdef"
- PATTERN "*.jconf"
- PATTERN "*.cfg"
- PATTERN "hosts.allow"
-
- # Other Files
- PATTERN "*.txt"
- PATTERN "COPYING*"
- PATTERN "ChangeLog"
- )
-
- endif()
-
-
-
-endif()
Deleted: trunk/cmake/CheckMacHIDAPI.cmake
===================================================================
--- trunk/cmake/CheckMacHIDAPI.cmake 2012-07-04 20:35:57 UTC (rev 693)
+++ trunk/cmake/CheckMacHIDAPI.cmake 2012-07-27 22:21:26 UTC (rev 694)
@@ -1,73 +0,0 @@
-# - Script to check if the signature for a mac HID callback uses UInt32 or uint32_t
-# Requires that the associated CPP file be present: CheckMacHIDAPI.cpp.
-#
-# MACOSX_HID_UINT32T, set according to the results of our test.
-#
-# Use add_definitions(-DMACOSX_HID_UINT32T=${MACOSX_HID_UINT32T}) in your
-# listfile and the following prototype for the function you'd like to
-# register using setInterruptReportHandlerCallback:
-# void ReaderReportCallback(
-# void *target,
-# IOReturn result,
-# void *refcon,
-# void *sender,
-# MACOSX_HID_UINT32T size
-# )
-#
-# Original Author:
-# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
-# http://academic.cleardefinition.com
-# Iowa State University HCI Graduate Program/VRAC
-#
-# Copyright Iowa State University 2009-2010.
-# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or copy at
-# http://www.boost.org/LICENSE_1_0.txt)
-
-
-if(APPLE)
- if(NOT MACOSX_HID_UINT32T)
- get_filename_component(_moddir ${CMAKE_CURRENT_LIST_FILE} PATH)
-
- try_compile(_HID_uint32t
- ${CMAKE_BINARY_DIR}
- ${_moddir}/CheckMacHIDAPI.cpp
- OUTPUT_VARIABLE
- _HID_uint32t_OUTPUT
- COMPILE_DEFINITIONS
- -DMACOSX_HID_UINT32T=uint32_t)
- message(STATUS
- "Checking uint32_t in HID callback signature... ${_HID_uint32t}")
-
- try_compile(_HID_UInt32
- ${CMAKE_BINARY_DIR}
- ${_moddir}/CheckMacHIDAPI.cpp
- OUTPUT_VARIABLE
- _HID_UInt32_OUTPUT
- COMPILE_DEFINITIONS
- -DMACOSX_HID_UINT32T=UInt32)
- message(STATUS
- "Checking UInt32 in HID callback signature... ${_HID_UInt32}")
-
-
- if(_HID_uint32t)
- set(MACOSX_HID_UINT32T
- "uint32_t"
- CACHE
- STRING
- "The 32-bit uint type desired in the callback set by setInterruptReportHandlerCallback")
- mark_as_advanced(MACOSX_HID_UINT32T)
- elseif(_HID_UInt32)
- set(MACOSX_HID_UINT32T
- "UInt32"
- CACHE
- STRING
- "The 32-bit uint type desired in the callback set by setInterruptReportHandlerCallback")
- mark_as_advanced(MACOSX_HID_UINT32T)
- else()
- message(SEND_ERROR
- "ERROR: Could not detect appropriate Mac HID uint32 type!")
- endif()
-
- endif()
-endif()
Deleted: trunk/cmake/CheckMacHIDAPI.cpp
===================================================================
--- trunk/cmake/CheckMacHIDAPI.cpp 2012-07-04 20:35:57 UTC (rev 693)
+++ trunk/cmake/CheckMacHIDAPI.cpp 2012-07-27 22:21:26 UTC (rev 694)
@@ -1,47 +0,0 @@
-/**
- * \file CheckMacHIDAPI.cpp
- * \brief C++ source file used by CMake module CheckMacHIDAPI.cmake
- *
- * \author
- * Ryan Pavlik, 2009-2010
- * <rp...@ia...>
- * http://academic.cleardefinition.com/
- *
- * \author
- * Based on code extracted from VRPN 07.22 for use as a minimal test case
- *
- * Attempts to compile a difficult bit of code against the Mac
- * HID API, as two different types have been required in the callback
- * function (UInt32 and uint32_t) and testing is the best way to know
- * which one is correct for a given system.
- *
- */
-
-
-#if defined(__APPLE__)
-
-#include <stdio.h>
-#include <IOKit/IOCFPlugIn.h>
-#include <IOKit/hid/IOHIDLib.h>
-#include <IOKit/hid/IOHIDKeys.h>
-#include <CoreFoundation/CoreFoundation.h>
-void ReaderReportCallback(
- void *target, IOReturn result, void *refcon, void *sender, MACOSX_HID_UINT32T size
- )
- {}
-#endif
-
-int main(int argc, char* argv[]) {
-#if defined(__APPLE__)
- io_object_t _ioObject;
- IOHIDDeviceInterface122 **_interface;
- bool _gotdata;
- int _gotsize;
- unsigned char _buffer[512];
- IOReturn result = (*_interface)->setInterruptReportHandlerCallback(_interface,
- _buffer, 512,
- ReaderReportCallback,
- NULL, 0);
-#endif
- return 0;
-}
Deleted: trunk/cmake/CheckVersion.cmake
===================================================================
--- trunk/cmake/CheckVersion.cmake 2012-07-04 20:35:57 UTC (rev 693)
+++ trunk/cmake/CheckVersion.cmake 2012-07-27 22:21:26 UTC (rev 694)
@@ -1,47 +0,0 @@
-# - Utility function for Find modules considering multiple possible versions
-#
-# Requires these CMake modules:
-# no additional modules required
-#
-# Original Author:
-# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
-# http://academic.cleardefinition.com
-# Iowa State University HCI Graduate Program/VRAC
-#
-# Copyright Iowa State University 2009-2010.
-# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or copy at
-# http://www.boost.org/LICENSE_1_0.txt)
-
-if(__check_version)
- return()
-endif()
-set(__check_version YES)
-
-function(check_version var packagename version)
- # By default, we say that the version is good enough
- set(_result TRUE)
-
- # Was a version requested? If so, what is our test condition?
- if(${packagename}_FIND_VERSION)
- if(${packagename}_FIND_VERSION_EXACT)
- # Yes, an exact == version was requested - check it.
-
- if(NOT "${version}" VERSION_EQUAL "${${packagename}_FIND_VERSION}")
- # version is not an exact match
- set(_result FALSE)
- endif()
- else()
- # Yes, a minimum >= version was requested - check it.
-
- if("${version}" VERSION_LESS "${${packagename}_FIND_VERSION}")
- # version is lower than requested
- set(_result FALSE)
- endif()
-
- endif()
- endif()
-
- # Return _result
- set(${var} ${_result} PARENT_SCOPE)
-endfunction()
Deleted: trunk/cmake/CleanDirectoryList.cmake
===================================================================
--- trunk/cmake/CleanDirectoryList.cmake 2012-07-04 20:35:57 UTC (rev 693)
+++ trunk/cmake/CleanDirectoryList.cmake 2012-07-27 22:21:26 UTC (rev 694)
@@ -1,48 +0,0 @@
-# - Removes duplicate entries and non-directories from a provided list
-#
-# clean_directory_list(<listvar> [<additional list items>...])
-#
-# Requires CMake 2.6 or newer (uses the 'function' command)
-#
-# Original Author:
-# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
-# http://academic.cleardefinition.com
-# Iowa State University HCI Graduate Program/VRAC
-#
-# Copyright Iowa State University 2009-2010.
-# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or copy at
-# http://www.boost.org/LICENSE_1_0.txt)
-
-if(__clean_directory_list)
- return()
-endif()
-set(__clean_directory_list YES)
-
-function(clean_directory_list _var)
- # combine variable's current value with additional list items
- set(_in ${${_var}} ${ARGN})
-
- if(_in)
- # Initial list cleaning
- list(REMOVE_DUPLICATES _in)
-
- # Grab the absolute path of each actual directory
- set(_out)
- foreach(_dir ${_in})
- if(IS_DIRECTORY "${_dir}")
- get_filename_component(_dir "${_dir}" ABSOLUTE)
- file(TO_CMAKE_PATH "${_dir}" _dir)
- list(APPEND _out "${_dir}")
- endif()
- endforeach()
-
- if(_out)
- # Clean up the output list now
- list(REMOVE_DUPLICATES _out)
- endif()
-
- # return _out
- set(${_var} "${_out}" PARENT_SCOPE)
- endif()
-endfunction()
Deleted: trunk/cmake/CleanLibraryList.cmake
===================================================================
--- trunk/cmake/CleanLibraryList.cmake 2012-07-04 20:35:57 UTC (rev 693)
+++ trunk/cmake/CleanLibraryList.cmake 2012-07-27 22:21:26 UTC (rev 694)
@@ -1,72 +0,0 @@
-# - A smarter replacement for list(REMOVE_DUPLICATES) for library lists
-#
-# Note that, in the case of cyclic link dependencies, you _do_ actually need
-# a library in a list multiple times. So, only use this function when you know
-# that the dependency graph is acyclic.
-#
-# clean_library_list(<listvar> [<additional list items>...]) - where
-# listvar is the name of a destination variable, and also possibly a source, and
-# it is followed by any number (including 0) of additional libraries to append
-# to the list before processing.
-#
-# Removes duplicates from the list, leaving only the last instance, while
-# preserving the meaning of the "optimized", "debug", and "general" labeling.
-# (Libraries listed as general are listed in the result instead as optimized and
-# debug)
-#
-# Requires CMake 2.6 or newer (uses the 'function' command)
-#
-# Original Author:
-# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
-# http://academic.cleardefinition.com
-# Iowa State University HCI Graduate Program/VRAC
-#
-# Copyright Iowa State University 2009-2010.
-# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or copy at
-# http://www.boost.org/LICENSE_1_0.txt)
-
-if(__clean_library_list)
- return()
-endif()
-set(__clean_library_list YES)
-
-function(clean_library_list _var)
- # combine variable's current value with additional list items
- set(_work ${${_var}} ${ARGN})
- if(_work)
- # Turn each of optimized, debug, and general into flags
- # prefixed on their respective library (combining list items)
- string(REGEX REPLACE "optimized;" "1CLL%O%" _work "${_work}")
- string(REGEX REPLACE "debug;" "1CLL%D%" _work "${_work}")
- string(REGEX REPLACE "general;" "1CLL%G%" _work "${_work}")
-
- # Any library that doesn't have a prefix is general, and a general
- # library is both debug and optimized so stdize it
- set(_std)
- foreach(_lib ${_work})
- if(NOT "${_lib}" MATCHES "^1CLL%.%")
- list(APPEND _std "1CLL%D%${_lib}" "1CLL%O%${_lib}")
- elseif("${_lib}" MATCHES "^1CLL%G%")
- string(REPLACE "1CLL%G%" "" _justlib "${_lib}")
- list(APPEND _std "1CLL%D%${_justlib}" "1CLL%O%${_justlib}")
- else()
- list(APPEND _std "${_lib}")
- endif()
- endforeach()
-
- # REMOVE_DUPLICATES leaves the first - so we reverse before and after
- # to keep the last, instead
- list(REVERSE _std)
- list(REMOVE_DUPLICATES _std)
- list(REVERSE _std)
-
- # Split list items back out again: turn prefixes into the
- # library type flags.
- string(REGEX REPLACE "1CLL%D%" "debug;" _std "${_std}")
- string(REGEX REPLACE "1CLL%O%" "optimized;" _std "${_std}")
-
- # Return _std
- set(${_var} ${_std} PARENT_SCOPE)
- endif()
-endfunction()
Deleted: trunk/cmake/CppcheckTargets.cmake
===================================================================
--- trunk/cmake/CppcheckTargets.cmake 2012-07-04 20:35:57 UTC (rev 693)
+++ trunk/cmake/CppcheckTargets.cmake 2012-07-27 22:21:26 UTC (rev 694)
@@ -1,213 +0,0 @@
-# - Run cppcheck on c++ source files as a custom target and a test
-#
-# include(CppcheckTargets)
-# add_cppcheck(<target-name> [UNUSED_FUNCTIONS] [STYLE] [POSSIBLE_ERROR] [FAIL_ON_WARNINGS]) -
-# Create a target to check a target's sources with cppcheck and the indicated options
-# add_cppcheck_sources(<target-name> [UNUSED_FUNCTIONS] [STYLE] [POSSIBLE_ERROR] [FAIL_ON_WARNINGS]) -
-# Create a target to check standalone sources with cppcheck and the indicated options
-#
-# Requires these CMake modules:
-# Findcppcheck
-#
-# Requires CMake 2.6 or newer (uses the 'function' command)
-#
-# Original Author:
-# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
-# http://academic.cleardefinition.com
-# Iowa State University HCI Graduate Program/VRAC
-#
-# Copyright Iowa State University 2009-2010.
-# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or copy at
-# http://www.boost.org/LICENSE_1_0.txt)
-
-if(__add_cppcheck)
- return()
-endif()
-set(__add_cppcheck YES)
-
-if(NOT CPPCHECK_FOUND)
- find_package(cppcheck QUIET)
-endif()
-
-if(CPPCHECK_FOUND)
- if(NOT TARGET all_cppcheck)
- add_custom_target(all_cppcheck)
- set_target_properties(all_cppcheck PROPERTIES EXCLUDE_FROM_ALL TRUE)
- endif()
-endif()
-
-function(add_cppcheck_sources _targetname)
- if(CPPCHECK_FOUND)
- set(_cppcheck_args)
- set(_input ${ARGN})
- list(FIND _input UNUSED_FUNCTIONS _unused_func)
- if("${_unused_func}" GREATER "-1")
- list(APPEND _cppcheck_args ${CPPCHECK_UNUSEDFUNC_ARG})
- list(REMOVE_AT _input ${_unused_func})
- endif()
-
- list(FIND _input STYLE _style)
- if("${_style}" GREATER "-1")
- list(APPEND _cppcheck_args ${CPPCHECK_STYLE_ARG})
- list(REMOVE_AT _input ${_style})
- endif()
-
- list(FIND _input POSSIBLE_ERROR _poss_err)
- if("${_poss_err}" GREATER "-1")
- list(APPEND _cppcheck_args ${CPPCHECK_POSSIBLEERROR_ARG})
- list(REMOVE_AT _input ${_poss_err})
- endif()
-
- list(FIND _input FAIL_ON_WARNINGS _fail_on_warn)
- if("${_fail_on_warn}" GREATER "-1")
- list(APPEND
- CPPCHECK_FAIL_REGULAR_EXPRESSION
- ${CPPCHECK_WARN_REGULAR_EXPRESSION})
- list(REMOVE_AT _input ${_fail_on_warn})
- endif()
-
- set(_files)
- foreach(_source ${_input})
- get_source_file_property(_cppcheck_loc "${_source}" LOCATION)
- if(_cppcheck_loc)
- # This file has a source file property, carry on.
- get_source_file_property(_cppcheck_lang "${_source}" LANGUAGE)
- if("${_cppcheck_lang}" MATCHES "CXX")
- list(APPEND _files "${_cppcheck_loc}")
- endif()
- else()
- # This file doesn't have source file properties - figure it out.
- get_filename_component(_cppcheck_loc "${_source}" ABSOLUTE)
- if(EXISTS "${_cppcheck_loc}")
- list(APPEND _files "${_cppcheck_loc}")
- else()
- message(FATAL_ERROR
- "Adding CPPCHECK for file target ${_targetname}: "
- "File ${_source} does not exist or needs a corrected path location "
- "since we think its absolute path is ${_cppcheck_loc}")
- endif()
- endif()
- endforeach()
-
- if("1.${CMAKE_VERSION}" VERSION_LESS "1.2.8.0")
- # Older than CMake 2.8.0
- add_test(${_targetname}_cppcheck_test
- "${CPPCHECK_EXECUTABLE}"
- ${CPPCHECK_TEMPLATE_ARG}
- ${_cppcheck_args}
- ${_files})
- else()
- # CMake 2.8.0 and newer
- add_test(NAME
- ${_targetname}_cppcheck_test
- COMMAND
- "${CPPCHECK_EXECUTABLE}"
- ${CPPCHECK_TEMPLATE_ARG}
- ${_cppcheck_args}
- ${_files})
- endif()
-
- set_tests_properties(${_targetname}_cppcheck_test
- PROPERTIES
- FAIL_REGULAR_EXPRESSION
- "${CPPCHECK_FAIL_REGULAR_EXPRESSION}")
-
- add_custom_command(TARGET
- all_cppcheck
- PRE_BUILD
- COMMAND
- ${CPPCHECK_EXECUTABLE}
- ${CPPCHECK_QUIET_ARG}
- ${CPPCHECK_TEMPLATE_ARG}
- ${_cppcheck_args}
- ${_files}
- WORKING_DIRECTORY
- "${CMAKE_CURRENT_SOURCE_DIR}"
- COMMENT
- "${_targetname}_cppcheck: Running cppcheck on target ${_targetname}..."
- VERBATIM)
- endif()
-endfunction()
-
-function(add_cppcheck _name)
- if(NOT TARGET ${_name})
- message(FATAL_ERROR
- "add_cppcheck given a target name that does not exist: '${_name}' !")
- endif()
- if(CPPCHECK_FOUND)
- set(_cppcheck_args)
-
- list(FIND ARGN UNUSED_FUNCTIONS _unused_func)
- if("${_unused_func}" GREATER "-1")
- list(APPEND _cppcheck_args ${CPPCHECK_UNUSEDFUNC_ARG})
- endif()
-
- list(FIND ARGN STYLE _style)
- if("${_style}" GREATER "-1")
- list(APPEND _cppcheck_args ${CPPCHECK_STYLE_ARG})
- endif()
-
- list(FIND ARGN POSSIBLE_ERROR _poss_err)
- if("${_poss_err}" GREATER "-1")
- list(APPEND _cppcheck_args ${CPPCHECK_POSSIBLEERROR_ARG})
- endif()
-
- list(FIND _input FAIL_ON_WARNINGS _fail_on_warn)
- if("${_fail_on_warn}" GREATER "-1")
- list(APPEND
- CPPCHECK_FAIL_REGULAR_EXPRESSION
- ${CPPCHECK_WARN_REGULAR_EXPRESSION})
- list(REMOVE_AT _input ${_unused_func})
- endif()
-
- get_target_property(_cppcheck_sources "${_name}" SOURCES)
- set(_files)
- foreach(_source ${_cppcheck_sources})
- get_source_file_property(_cppcheck_lang "${_source}" LANGUAGE)
- get_source_file_property(_cppcheck_loc "${_source}" LOCATION)
- if("${_cppcheck_lang}" MATCHES "CXX")
- list(APPEND _files "${_cppcheck_loc}")
- endif()
- endforeach()
-
- if("1.${CMAKE_VERSION}" VERSION_LESS "1.2.8.0")
- # Older than CMake 2.8.0
- add_test(${_name}_cppcheck_test
- "${CPPCHECK_EXECUTABLE}"
- ${CPPCHECK_TEMPLATE_ARG}
- ${_cppcheck_args}
- ${_files})
- else()
- # CMake 2.8.0 and newer
- add_test(NAME
- ${_name}_cppcheck_test
- COMMAND
- "${CPPCHECK_EXECUTABLE}"
- ${CPPCHECK_TEMPLATE_ARG}
- ${_cppcheck_args}
- ${_files})
- endif()
-
- set_tests_properties(${_name}_cppcheck_test
- PROPERTIES
- FAIL_REGULAR_EXPRESSION
- "${CPPCHECK_FAIL_REGULAR_EXPRESSION}")
-
- add_custom_command(TARGET
- all_cppcheck
- PRE_BUILD
- COMMAND
- ${CPPCHECK_EXECUTABLE}
- ${CPPCHECK_QUIET_ARG}
- ${CPPCHECK_TEMPLATE_ARG}
- ${_cppcheck_args}
- ${_files}
- WORKING_DIRECTORY
- "${CMAKE_CURRENT_SOURCE_DIR}"
- COMMENT
- "${_name}_cppcheck: Running cppcheck on target ${_name}..."
- VERBATIM)
- endif()
-
-endfunction()
Deleted: trunk/cmake/CreateDashboardScripts.cmake
===================================================================
--- trunk/cmake/CreateDashboardScripts.cmake 2012-07-04 20:35:57 UTC (rev 693)
+++ trunk/cmake/CreateDashboardScripts.cmake 2012-07-27 22:21:26 UTC (rev 694)
@@ -1,196 +0,0 @@
-# - Create ctest -S scripts to use to run dashboard builds
-#
-# include(CreateDashboardScripts)
-# create_dashboard_scripts([<initialcachetemplatefilename>])
-#
-# If you need additional settings to persist from the "parent" CMake instance
-# to the initial cache created by the dashboard script,
-# you may pass a filename which will be configured into the initial cache.
-#
-# In the resulting DASHBOARDSCRIPT_BASE_DIRECTORY, an end-user
-# may optionally create a file named
-# CustomInitialCache.${DASHBOARDSCRIPT_SCRIPT_NAME}
-# (by default, CustomInitialCache.go.cmake) containing set commands that use
-# the CACHE option, to set up additional site-local cache variable values.
-#
-# Requires these CMake modules:
-# GetCompilerInfoString
-#
-# Requires CMake 2.6 or newer (uses the 'function' command)
-#
-# Original Author:
-# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
-# http://academic.cleardefinition.com
-# Iowa State University HCI Graduate Program/VRAC
-#
-# Copyright Iowa State University 2009-2010.
-# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or copy at
-# http://www.boost.org/LICENSE_1_0.txt)
-
-# Only do any of the prep work if not already in a dashboard script
-if(NOT IN_DASHBOARD_SCRIPT)
-
- # Hide a CTest variable
- mark_as_advanced(DART_TESTING_TIMEOUT)
-
- include(GetCompilerInfoString)
-
- get_compiler_info_string(_COMPILERID)
-
- # We must run the following at "include" time, not at function call time,
- # to find the path to this module rather than the path to a calling list file
- get_filename_component(_dashboardmoddir
- ${CMAKE_CURRENT_LIST_FILE}
- PATH)
-
- if(NOT "$ENV{USER}" MATCHES "^$")
- set(_user "$ENV{USER}")
- elseif(NOT "$ENV{USERNAME}" MATCHES "^$")
- set(_user "$ENV{USERNAME}")
- endif()
-
- if(NOT _dashboardscript_machine)
- if(NOT SITE)
- site_name(SITE)
- endif()
- set(_dashboardscript_machine "${SITE}" CACHE INTERNAL "")
- set(SITE
- "${_user}@${_dashboardscript_machine}"
- CACHE
- STRING
- "Human-readable site name"
- FORCE)
- endif()
-
- set(DASHBOARDSCRIPT_BASE_DIRECTORY
- "${CMAKE_BINARY_DIR}/Dashboards-${_dashboardscript_machine}-${_user}"
- CACHE
- PATH
- "Directory to use as the root of all dashboard work")
- mark_as_advanced(DASHBOARDSCRIPT_BASE_DIRECTORY)
-
- set(DASHBOARDSCRIPT_SOURCE_DIRECTORY "${CMAKE_SOURCE_DIR}")
-
- set(BUILDNAME
- "${CMAKE_SYSTEM}-${CMAKE_SYSTEM_PROCESSOR}-${_COMPILERID}"
- CACHE
- STRING
- "Human-readable build ID info")
-
- set(DASHBOARDSCRIPT_CMAKE_COMMAND
- "${CMAKE_COMMAND}"
- CACHE
- FILEPATH
- "The cmake binary to use when configuring a dashboard build")
- mark_as_advanced(DASHBOARDSCRIPT_CMAKE_COMMAND)
-
- # Try to find CTest, preferably right next to the chosen CMake
- if(DASHBOARDSCRIPT_CMAKE_COMMAND)
- get_filename_component(_cmake_dir
- ${DASHBOARDSCRIPT_CMAKE_COMMAND}
- PATH)
- else()
- get_filename_component(_cmake_dir ${CMAKE_COMMAND} PATH)
- endif()
- find_program(DASHBOARDSCRIPT_CTEST_EXECUTABLE
- NAMES
- ctest
- HINTS
- "${_cmake_dir}"
- NO_DEFAULT_PATH)
- find_program(DASHBOARDSCRIPT_CTEST_EXECUTABLE
- NAMES
- ctest
- HINTS
- "${_cmake_dir}")
-
-
- set(DASHBOARDSCRIPT_CTEST_EXECUTABLE
- "${DASHBOARDSCRIPT_CTEST_EXECUTABLE}"
- CACHE
- FILEPATH
- "Path to the CTest executable to use for dashboard builds.")
- mark_as_advanced(DASHBOARDSCRIPT_CTEST_EXECUTABLE)
-
-
- # Optionals
-
- if(NOT "1.${CMAKE_VERSION}" VERSION_LESS "1.2.8.0")
- if(IS_DIRECTORY "${CMAKE_SOURCE_DIRECTORY}/.git")
- find_program(DASHBOARDSCRIPT_GIT_EXECUTABLE NAMES git git.cmd)
- if(DASHBOARDSCRIPT_GIT_EXECUTABLE)
-
- set(UPDATE_TYPE "git")
- set(UPDATE_COMMAND "${DASHBOARDSCRIPT_GIT_EXECUTABLE}")
- set(UPDATE_OPTIONS "")
- mark_as_advanced(DASHBOARDSCRIPT_GIT_EXECUTABLE)
- endif()
- endif()
- endif()
-
-else()
- # IN_DASHBOARD_SCRIPT is YES
- message(STATUS
- "CreateDashboardScripts detected that we're in a dashboard script already.")
-endif()
-
-function(create_dashboard_scripts)
- # Only create the script if we have all the required variables
- # and are not already in it, and are at least 2.8.0.
- if(DASHBOARDSCRIPT_BASE_DIRECTORY AND
- DASHBOARDSCRIPT_SOURCE_DIRECTORY AND
- DASHBOARDSCRIPT_BASE_DIRECTORY AND
- BUILDNAME AND
- DASHBOARDSCRIPT_CMAKE_COMMAND AND
- DASHBOARDSCRIPT_CTEST_EXECUTABLE AND
- NOT IN_DASHBOARD_SCRIPT AND
- NOT "${CMAKE_VERSION}" VERSION_LESS "2.8.0")
-
- set(_Continuous_cron "15 * * * * ")
- set(_Nightly_cron "15 0 * * * ")
- set(_Experimental_cron
- "\nor run this command for an one-off experimental test build:\n")
- set(_Experimental_flags "-VV")
-
- message(STATUS
- "Dashboard scripts have been generated for automatic nightly and continuous builds.")
- if(WIN32)
- set(_Continuous_cron)
- set(_Nightly_cron)
- message(STATUS
- "You can set up scheduled tasks to run these command lines:")
- else()
- message(STATUS "You can add these sample lines to your crontab:")
- endif()
-
- set(_msg)
-
- if(NOT DASHBOARDSCRIPT_BUILD_CONFIGURATION)
- set(DASHBOARDSCRIPT_BUILD_CONFIGURATION "RelWithDebInfo")
- endif()
- set(DASHBOARDSCRIPT_BUILD_CONFIGURATION "${DASHBOARDSCRIPT_BUILD_CONFIGURATION}" CACHE STRING "Build configuration to use for dashboard builds by default")
- mark_as_advanced(DASHBOARDSCRIPT_BUILD_CONFIGURATION)
-
- foreach(DASHBOARDSCRIPT_DASH_TYPE Nightly Continuous Experimental)
- # If given a cache template, configure it
- if(ARGN)
- configure_file(${ARGN}
- "${DASHBOARDSCRIPT_BASE_DIRECTORY}/GeneratedInitialCache.run${DASHBOARDSCRIPT_DASH_TYPE}.cmake"
- @ONLY)
- endif()
-
- # Actually create the script file
- configure_file(${_dashboardmoddir}/DashboardScript.cmake.in
- "${DASHBOARDSCRIPT_BASE_DIRECTORY}/run${DASHBOARDSCRIPT_DASH_TYPE}.cmake"
- @ONLY)
-
- set(_msg
- "${_msg}\n${_${DASHBOARDSCRIPT_DASH_TYPE}_cron}\"${DASHBOARDSCRIPT_CTEST_EXECUTABLE}\" -S \"${DASHBOARDSCRIPT_BASE_DIRECTORY}/run${DASHBOARDSCRIPT_DASH_TYPE}.cmake\" ${_${DASHBOARDSCRIPT_DASH_TYPE}_flags}")
-
- endforeach()
- message(STATUS "\n${_msg}\n")
- message(STATUS "")
-
- endif()
-endfunction()
Deleted: trunk/cmake/CreateImportedTarget.cmake
===================================================================
--- trunk/cmake/CreateImportedTarget.cmake 2012-07-04 20:35:57 UTC (rev 693)
+++ trunk/cmake/CreateImportedTarget.cmake 2012-07-27 22:21:26 UTC (rev 694)
@@ -1,64 +0,0 @@
-# - A smarter replacement for list(REMOVE_DUPLICATES) for library lists
-#
-# create_imported_target(<libname> [SHARED|STATIC|MODULE] [<library dependency>...]) - where
-# ${libname}_LIBRARIES is set to this library's paths.
-#
-# Removes duplicates from the list then sorts while preserving "optimized",
-# "debug", and "general" labeling
-#
-# Requires CMake 2.6 or newer (uses the 'function' command)
-#
-# Original Author:
-# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
-# http://academic.cleardefinition.com
-# Iowa State University HCI Graduate Program/VRAC
-#
-# Copyright Iowa State University 2009-2010.
-# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or copy at
-# http://www.boost.org/LICENSE_1_0.txt)
-
-if(__create_imported_target)
- return()
-endif()
-set(__create_imported_target YES)
-
-function(create_imported_target _libname)
- if(ARGN)
- list(FIND ARGN SHARED _target_shared)
- list(FIND ARGN STATIC _target_static)
- list(FIND ARGN MODULE _target_module)
-
- if(${_target_shared} GREATER -1)
- set(_target_type SHARED)
- elseif(${_target_static} GREATER -1)
- set(_target_type STATIC)
- elseif(${_target_module} GREATER -1)
- set(_target_type MODULE)
- else()
- set(_target_type UNKNOWN)
- endif()
-
- set(_deps ${ARGN})
- list(REMOVE_ITEM _deps SHARED STATIC MODULE UNKNOWN)
- else()
- set(_target_type UNKNOWN)
- set(_deps)
- endif()
-
- if(${_libname}_LIBRARIES AND NOT TARGET ${_libname}_imported)
- add_library(${_libname}_imported ${_target_type} IMPORTED)
- #message(STATUS "Library ${_libname}: lib ${${_libname}_LIBRARIES}")
- #message(STATUS "Deps: ${_deps}")
- set_target_properties(${_libname}_imported
- PROPERTIES
- IMPORTED_LOCATION
- "${${_libname}_LIBRARIES}"
- IMPORTED_LINK_INTERFACE_LIBRARIES
- "${_deps}")
- endif()
-
- if(TARGET ${_libname}_imported)
- set(${_libname}_LIBRARIES ${_libname}_imported PARENT_SCOPE)
- endif()
-endfunction()
Deleted: trunk/cmake/CreateLaunchers.cmake
===================================================================
--- trunk/cmake/CreateLaunchers.cmake 2012-07-04 20:35:57 UTC (rev 693)
+++ trunk/cmake/CreateLaunchers.cmake 2012-07-27 22:21:26 UTC (rev 694)
@@ -1,313 +0,0 @@
-# - Create launchers to set working directory, env. vars, etc.
-#
-# include(CreateLaunchers) - to make these available
-# guess_runtime_library_dirs(<outputvarname> [<extralibrary> ...])
-# create_default_target_launcher(<targetname>
-# [ARGS <args...>]
-# [FORWARD_ARGS]
-# [RUNTIME_LIBRARY_DIRS <dir...>]
-# [WORKING_DIRECTORY <dir>]
-# [ENVIRONMENT <VAR=value> [<VAR=value>...]])
-#
-# create_target_launcher(<targetname>
-# [ARGS <args...>]
-# [FORWARD_ARGS]
-# [RUNTIME_LIBRARY_DIRS <dir...>]
-# [WORKING_DIRECTORY <dir>]
-# [ENVIRONMENT <VAR=value> [<VAR=value>...]])
-#
-# create_generic_launcher(<launchername>
-# [RUNTIME_LIBRARY_DIRS <dir...>]
-# [WORKING_DIRECTORY <dir>]
-# [ENVIRONMENT <VAR=value> [<VAR=value>...]])
-# - sets GENERIC_LAUNCHER_COMMAND amd GENERIC_LAUNCHER_FAIL_REGULAR_EXPRESSION
-#
-# Requires these CMake modules:
-# ListFilter
-# ProgramFilesGlob
-# CleanDirectoryList
-#
-# Requires CMake 2.6 or newer (uses the 'function' command)
-#
-# Original Author:
-# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
-# http://academic.cleardefinition.com
-# Iowa State University HCI Graduate Program/VRAC
-#
-# Copyright Iowa State University 2009-2010.
-# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or copy at
-# http://www.boost.org/LICENSE_1_0.txt)
-
-if(__create_launchers)
- return()
-endif()
-set(__create_launchers YES)
-
-include(CleanDirectoryList)
-
-# We must run the following at "include" time, not at function call time,
-# t...
[truncated message content] |
|
From: <pat...@us...> - 2012-07-04 20:36:09
|
Revision: 693
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=693&view=rev
Author: patrickh
Date: 2012-07-04 20:35:57 +0000 (Wed, 04 Jul 2012)
Log Message:
-----------
MFT [r690]: Add the CMake build developed by Ryan Pavlik.
Revision Links:
--------------
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=690&view=rev
Modified Paths:
--------------
branches/1.2/ChangeLog
Added Paths:
-----------
branches/1.2/CMakeLists.txt
branches/1.2/cmake/
branches/1.2/cmake/AboutTheseModules.cmake
branches/1.2/cmake/BoostTestTargets.cmake
branches/1.2/cmake/BoostTestTargetsDynamic.h
branches/1.2/cmake/BoostTestTargetsIncluded.h
branches/1.2/cmake/BoostTestTargetsStatic.h
branches/1.2/cmake/BundleOSGPlugins.cmake
branches/1.2/cmake/BundleOSGRuntime.cmake
branches/1.2/cmake/BundleVRJ22Runtime.cmake
branches/1.2/cmake/BundleVRJ30Runtime.cmake
branches/1.2/cmake/CheckMacHIDAPI.cmake
branches/1.2/cmake/CheckMacHIDAPI.cpp
branches/1.2/cmake/CheckVersion.cmake
branches/1.2/cmake/CleanDirectoryList.cmake
branches/1.2/cmake/CleanLibraryList.cmake
branches/1.2/cmake/CopyResourcesToBuildTree.cmake
branches/1.2/cmake/CppcheckTargets.cmake
branches/1.2/cmake/CreateDashboardScripts.cmake
branches/1.2/cmake/CreateImportedTarget.cmake
branches/1.2/cmake/CreateLaunchers.cmake
branches/1.2/cmake/DashboardScript.cmake.in
branches/1.2/cmake/DoxygenTargets.cmake
branches/1.2/cmake/DoxygenTargets.doxyfile.in
branches/1.2/cmake/EnableExtraCompilerWarnings.cmake
branches/1.2/cmake/EnableProfiling.cmake
branches/1.2/cmake/FileCopyTargets.cmake
branches/1.2/cmake/FindALUT.cmake
branches/1.2/cmake/FindBluez.cmake
branches/1.2/cmake/FindCPPDOM.cmake
branches/1.2/cmake/FindDCubed.cmake
branches/1.2/cmake/FindFlagpoll.cmake
branches/1.2/cmake/FindGDB.cmake
branches/1.2/cmake/FindGHOST.cmake
branches/1.2/cmake/FindGLUI.cmake
branches/1.2/cmake/FindGLUT.cmake
branches/1.2/cmake/FindGMTL.cmake
branches/1.2/cmake/FindGPM.cmake
branches/1.2/cmake/FindGadgeteer12.cmake
branches/1.2/cmake/FindGadgeteer20.cmake
branches/1.2/cmake/FindGlove5DT.cmake
branches/1.2/cmake/FindHIDAPI.cmake
branches/1.2/cmake/FindJCCL12.cmake
branches/1.2/cmake/FindJCCL14.cmake
branches/1.2/cmake/FindJtTk.cmake
branches/1.2/cmake/FindJtTk.stampkey.cmake.in
branches/1.2/cmake/FindLAPACKLibs.cmake
branches/1.2/cmake/FindLibusb1.cmake
branches/1.2/cmake/FindLuabind.cmake
branches/1.2/cmake/FindLyX.cmake
branches/1.2/cmake/FindMacHID.cmake
branches/1.2/cmake/FindOpenCV.cmake
branches/1.2/cmake/FindOpenHaptics.cmake
branches/1.2/cmake/FindOpenHaptics.cpp
branches/1.2/cmake/FindParasolid.cmake
branches/1.2/cmake/FindSonix12.cmake
branches/1.2/cmake/FindSonix14.cmake
branches/1.2/cmake/FindTR1.cmake
branches/1.2/cmake/FindTooN.cmake
branches/1.2/cmake/FindTooNtag.cmake
branches/1.2/cmake/FindTweek12.cmake
branches/1.2/cmake/FindTweek14.cmake
branches/1.2/cmake/FindVPR20.cmake
branches/1.2/cmake/FindVPR22.cmake
branches/1.2/cmake/FindVPS.cmake
branches/1.2/cmake/FindVRJ22.cmake
branches/1.2/cmake/FindVRJ30.cmake
branches/1.2/cmake/FindVRJOGL22.cmake
branches/1.2/cmake/FindVRJOGL30.cmake
branches/1.2/cmake/FindVRJuggler.cmake
branches/1.2/cmake/FindVRJuggler22.cmake
branches/1.2/cmake/FindVRJuggler30.cmake
branches/1.2/cmake/FindVRPN.cmake
branches/1.2/cmake/FindVirtuoseAPI.cmake
branches/1.2/cmake/FindVirtuoseVPP.cmake
branches/1.2/cmake/FindWiiSCAAT.cmake
branches/1.2/cmake/FindWiiUse.cmake
branches/1.2/cmake/FindWinHID.cmake
branches/1.2/cmake/Findargp.cmake
branches/1.2/cmake/Findcppcheck.cmake
branches/1.2/cmake/Findcppcheck.cpp
branches/1.2/cmake/Findcppunit.cmake
branches/1.2/cmake/Findcutil.cmake
branches/1.2/cmake/Finddb2pdf.cmake
branches/1.2/cmake/FindosgLua.cmake
branches/1.2/cmake/Findquatlib.cmake
branches/1.2/cmake/GetCPUDetails.cmake
branches/1.2/cmake/GetCompilerInfoString.cmake
branches/1.2/cmake/GetDirectoryList.cmake
branches/1.2/cmake/GetFileList.cmake
branches/1.2/cmake/GetForceIncludeDefinitions.cmake
branches/1.2/cmake/GetGitRevisionDescription.cmake
branches/1.2/cmake/GetGitRevisionDescription.cmake.in
branches/1.2/cmake/GetSubprojectStatus.cmake
branches/1.2/cmake/LICENSE_1_0.txt
branches/1.2/cmake/Licensing.cmake
branches/1.2/cmake/ListCombinations.cmake
branches/1.2/cmake/ListFilter.cmake
branches/1.2/cmake/LuaTargets.cmake
branches/1.2/cmake/MSVCMultipleProcessCompile.cmake
branches/1.2/cmake/MSVCStaticRuntime.cmake
branches/1.2/cmake/MSVCVerboseLinking.cmake
branches/1.2/cmake/MakeVRJugglerAppBundle.cmake
branches/1.2/cmake/MakeVRJugglerAppBundle30.cmake
branches/1.2/cmake/OptionRequires.cmake
branches/1.2/cmake/PrefixListGlob.cmake
branches/1.2/cmake/ProgramFilesGlob.cmake
branches/1.2/cmake/README.markdown
branches/1.2/cmake/ResetConfigurations.cmake
branches/1.2/cmake/SearchProgramFilesForOpenSceneGraph.cmake
branches/1.2/cmake/SetDefaultBuildType.cmake
branches/1.2/cmake/SplitLibraryList.cmake
branches/1.2/cmake/StampSourcesWithVersion.cmake
branches/1.2/cmake/StampSourcesWithVersion.sed.in
branches/1.2/cmake/TCHARWorkaround.cmake
branches/1.2/cmake/UseBackportedModules.cmake
branches/1.2/cmake/UseTR1.cmake
branches/1.2/cmake/WarningDev.cmake
branches/1.2/cmake/cmake-2.8.0-modules/
branches/1.2/cmake/cmake-2.8.0-modules/features/
branches/1.2/cmake/cmake-2.8.0-modules/features/SelectLibraryConfigurations.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindOpenSceneGraph.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindOpenThreads.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/Findosg.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgAnimation.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgDB.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgFX.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgGA.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgIntrospection.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgManipulator.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgParticle.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgProducer.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgShadow.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgSim.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgTerrain.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgText.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgUtil.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgViewer.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgVolume.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgWidget.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/Findosg_functions.cmake
branches/1.2/cmake/cmake-2.8.1-modules/
branches/1.2/cmake/cmake-2.8.1-modules/patchctestbug10149/
branches/1.2/cmake/cmake-2.8.1-modules/patchctestbug10149/CTest.cmake
branches/1.2/cmake/cmake-2.8.1-modules/patchctestbug10149/CTestScriptMode.cmake
branches/1.2/cmake/cmake-2.8.1-modules/patchctestbug10149/CTestTargets.cmake
branches/1.2/cmake/cmake-2.8.3-modules/
branches/1.2/cmake/cmake-2.8.3-modules/FixWinInstallPrefix.cmake
branches/1.2/cmake/cmake-2.8.3-modules/autoinclude.cmake
branches/1.2/cmake/cmake-2.8.4-modules/
branches/1.2/cmake/cmake-2.8.4-modules/ImproveEclipseGCCErrors.cmake
branches/1.2/cmake/cmake-2.8.4-modules/autoinclude.cmake
branches/1.2/cmake/cmake-2.8.4-modules/boost/
branches/1.2/cmake/cmake-2.8.4-modules/boost/FindBoost.cmake
branches/1.2/cmake/cmake-2.9.0-modules/
branches/1.2/cmake/cmake-2.9.0-modules/RequireOutOfSourceBuild.cmake
branches/1.2/cmake/cmake-2.9.0-modules/autoinclude.cmake
branches/1.2/cmake/export-to-directory.sh
branches/1.2/cmake/ghost-fake-stl/
branches/1.2/cmake/ghost-fake-stl/iostream.h
branches/1.2/cmake/ghost-fake-stl/list.h
branches/1.2/cmake/ghost-fake-stl/set.h
branches/1.2/cmake/ghost-fake-stl/vector.h
branches/1.2/cmake/launcher-templates/
branches/1.2/cmake/launcher-templates/genericlauncher.cmd.in
branches/1.2/cmake/launcher-templates/genericlauncher.sh.in
branches/1.2/cmake/launcher-templates/launcher.env.cmd.in
branches/1.2/cmake/launcher-templates/launcher.env.sh.in
branches/1.2/cmake/launcher-templates/perconfig.vcproj.user.in
branches/1.2/cmake/launcher-templates/targetlauncher.cmd.in
branches/1.2/cmake/launcher-templates/targetlauncher.sh.in
branches/1.2/cmake/launcher-templates/vcproj.user.in
branches/1.2/cmake/module-docs/
branches/1.2/cmake/module-docs/AllModuleDependencies.dot
branches/1.2/cmake/module-docs/Example-FindMyPackage-UsingImportedTargets.cmake
branches/1.2/cmake/module-docs/Example-FindMyPackage.cmake
branches/1.2/cmake/module-docs/Example-FindMySimplePackage.cmake
branches/1.2/cmake/module-help.html
branches/1.2/cmake/module-help.txt
branches/1.2/cmake/nested_targets/
branches/1.2/cmake/nested_targets/DCubed/
branches/1.2/cmake/nested_targets/DCubed/CMakeLists.txt
branches/1.2/cmake/nested_targets/DCubed/d3ew_p/
branches/1.2/cmake/nested_targets/DCubed/d3ew_p/CMakeLists.txt
branches/1.2/cmake/nested_targets/DCubed/d3ew_scene/
branches/1.2/cmake/nested_targets/DCubed/d3ew_scene/CMakeLists.txt
branches/1.2/cmake/nested_targets/OpenHaptics/
branches/1.2/cmake/nested_targets/OpenHaptics/CMakeLists.txt
branches/1.2/cmake/nested_targets/Parasolid/
branches/1.2/cmake/nested_targets/Parasolid/CMakeLists.txt
branches/1.2/cmake/nested_targets/cutil/
branches/1.2/cmake/nested_targets/cutil/CMakeLists.txt
branches/1.2/cmake/package/
branches/1.2/cmake/package/macosx/
branches/1.2/cmake/package/macosx/Resources/
branches/1.2/cmake/package/macosx/Resources/en.lproj/
branches/1.2/cmake/package/macosx/Resources/en.lproj/MainMenu.nib/
branches/1.2/cmake/package/macosx/Resources/en.lproj/MainMenu.nib/classes.nib
branches/1.2/cmake/package/macosx/Resources/en.lproj/MainMenu.nib/info.nib
branches/1.2/cmake/package/macosx/Resources/vrjuggler.plist
branches/1.2/cmake/package/macosx/VRJuggler22BundleInfo.plist.in
branches/1.2/cmake/package/macosx/VRJuggler30BundleInfo.plist.in
branches/1.2/cmake/package/macosx/fixupbundle.cmake.in
branches/1.2/cmake/package-licensing/
branches/1.2/cmake/package-licensing/Boost.cmake
branches/1.2/cmake/package-licensing/Eigen.cmake
branches/1.2/cmake/package-licensing/FLTK.cmake
branches/1.2/cmake/package-licensing/Lua.cmake
branches/1.2/cmake/package-licensing/LuaBind.cmake
branches/1.2/cmake/package-licensing/OpenHapticsAcademicEdition.cmake
branches/1.2/cmake/package-licensing/OpenSceneGraph.cmake
branches/1.2/cmake/package-licensing/PhysicalModelingUtils.cmake
branches/1.2/cmake/package-licensing/Qt-LGPL.cmake
branches/1.2/cmake/package-licensing/VPS.cmake
branches/1.2/cmake/package-licensing/VRJuggLua.cmake
branches/1.2/cmake/package-licensing/VRJuggler.cmake
branches/1.2/cmake/package-licensing/VirtuoseAPI.cmake
branches/1.2/cmake/package-licensing/osgLua.cmake
branches/1.2/cmake/update-help.sh
branches/1.2/cmake/workarounds/
branches/1.2/cmake/workarounds/mac-alut-framework/
branches/1.2/cmake/workarounds/mac-alut-framework/AL/
branches/1.2/cmake/workarounds/mac-alut-framework/AL/alut.h
branches/1.2/cmake/workarounds/mac-gl/
branches/1.2/cmake/workarounds/mac-gl/GL/
branches/1.2/cmake/workarounds/mac-gl/GL/gl.h
branches/1.2/cmake/workarounds/mac-gl/GL/glui.h
branches/1.2/cmake/workarounds/mac-gl/GL/glut.h
branches/1.2/cmake/workarounds/mac-openal/
branches/1.2/cmake/workarounds/mac-openal/AL/
branches/1.2/cmake/workarounds/mac-openal/AL/al.h
branches/1.2/cmake/workarounds/mac-openal/AL/alc.h
branches/1.2/cmake/workarounds/tchar/
branches/1.2/cmake/workarounds/tchar/tchar.h
branches/1.2/cppdom/CMakeLists.txt
branches/1.2/test/CMakeLists.txt
branches/1.2/test/suite/CMakeLists.txt
Removed Paths:
-------------
branches/1.2/cmake/AboutTheseModules.cmake
branches/1.2/cmake/BoostTestTargets.cmake
branches/1.2/cmake/BoostTestTargetsDynamic.h
branches/1.2/cmake/BoostTestTargetsIncluded.h
branches/1.2/cmake/BoostTestTargetsStatic.h
branches/1.2/cmake/BundleOSGPlugins.cmake
branches/1.2/cmake/BundleOSGRuntime.cmake
branches/1.2/cmake/BundleVRJ22Runtime.cmake
branches/1.2/cmake/BundleVRJ30Runtime.cmake
branches/1.2/cmake/CheckMacHIDAPI.cmake
branches/1.2/cmake/CheckMacHIDAPI.cpp
branches/1.2/cmake/CheckVersion.cmake
branches/1.2/cmake/CleanDirectoryList.cmake
branches/1.2/cmake/CleanLibraryList.cmake
branches/1.2/cmake/CopyResourcesToBuildTree.cmake
branches/1.2/cmake/CppcheckTargets.cmake
branches/1.2/cmake/CreateDashboardScripts.cmake
branches/1.2/cmake/CreateImportedTarget.cmake
branches/1.2/cmake/CreateLaunchers.cmake
branches/1.2/cmake/DashboardScript.cmake.in
branches/1.2/cmake/DoxygenTargets.cmake
branches/1.2/cmake/DoxygenTargets.doxyfile.in
branches/1.2/cmake/EnableExtraCompilerWarnings.cmake
branches/1.2/cmake/EnableProfiling.cmake
branches/1.2/cmake/FileCopyTargets.cmake
branches/1.2/cmake/FindALUT.cmake
branches/1.2/cmake/FindBluez.cmake
branches/1.2/cmake/FindCPPDOM.cmake
branches/1.2/cmake/FindDCubed.cmake
branches/1.2/cmake/FindFlagpoll.cmake
branches/1.2/cmake/FindGDB.cmake
branches/1.2/cmake/FindGHOST.cmake
branches/1.2/cmake/FindGLUI.cmake
branches/1.2/cmake/FindGLUT.cmake
branches/1.2/cmake/FindGMTL.cmake
branches/1.2/cmake/FindGPM.cmake
branches/1.2/cmake/FindGadgeteer12.cmake
branches/1.2/cmake/FindGadgeteer20.cmake
branches/1.2/cmake/FindGlove5DT.cmake
branches/1.2/cmake/FindHIDAPI.cmake
branches/1.2/cmake/FindJCCL12.cmake
branches/1.2/cmake/FindJCCL14.cmake
branches/1.2/cmake/FindJtTk.cmake
branches/1.2/cmake/FindJtTk.stampkey.cmake.in
branches/1.2/cmake/FindLAPACKLibs.cmake
branches/1.2/cmake/FindLibusb1.cmake
branches/1.2/cmake/FindLuabind.cmake
branches/1.2/cmake/FindLyX.cmake
branches/1.2/cmake/FindMacHID.cmake
branches/1.2/cmake/FindOpenCV.cmake
branches/1.2/cmake/FindOpenHaptics.cmake
branches/1.2/cmake/FindOpenHaptics.cpp
branches/1.2/cmake/FindParasolid.cmake
branches/1.2/cmake/FindSonix12.cmake
branches/1.2/cmake/FindSonix14.cmake
branches/1.2/cmake/FindTR1.cmake
branches/1.2/cmake/FindTooN.cmake
branches/1.2/cmake/FindTooNtag.cmake
branches/1.2/cmake/FindTweek12.cmake
branches/1.2/cmake/FindTweek14.cmake
branches/1.2/cmake/FindVPR20.cmake
branches/1.2/cmake/FindVPR22.cmake
branches/1.2/cmake/FindVPS.cmake
branches/1.2/cmake/FindVRJ22.cmake
branches/1.2/cmake/FindVRJ30.cmake
branches/1.2/cmake/FindVRJOGL22.cmake
branches/1.2/cmake/FindVRJOGL30.cmake
branches/1.2/cmake/FindVRJuggler.cmake
branches/1.2/cmake/FindVRJuggler22.cmake
branches/1.2/cmake/FindVRJuggler30.cmake
branches/1.2/cmake/FindVRPN.cmake
branches/1.2/cmake/FindVirtuoseAPI.cmake
branches/1.2/cmake/FindVirtuoseVPP.cmake
branches/1.2/cmake/FindWiiSCAAT.cmake
branches/1.2/cmake/FindWiiUse.cmake
branches/1.2/cmake/FindWinHID.cmake
branches/1.2/cmake/Findargp.cmake
branches/1.2/cmake/Findcppcheck.cmake
branches/1.2/cmake/Findcppcheck.cpp
branches/1.2/cmake/Findcppunit.cmake
branches/1.2/cmake/Findcutil.cmake
branches/1.2/cmake/Finddb2pdf.cmake
branches/1.2/cmake/FindosgLua.cmake
branches/1.2/cmake/Findquatlib.cmake
branches/1.2/cmake/GetCPUDetails.cmake
branches/1.2/cmake/GetCompilerInfoString.cmake
branches/1.2/cmake/GetDirectoryList.cmake
branches/1.2/cmake/GetFileList.cmake
branches/1.2/cmake/GetForceIncludeDefinitions.cmake
branches/1.2/cmake/GetGitRevisionDescription.cmake
branches/1.2/cmake/GetGitRevisionDescription.cmake.in
branches/1.2/cmake/GetSubprojectStatus.cmake
branches/1.2/cmake/LICENSE_1_0.txt
branches/1.2/cmake/Licensing.cmake
branches/1.2/cmake/ListCombinations.cmake
branches/1.2/cmake/ListFilter.cmake
branches/1.2/cmake/LuaTargets.cmake
branches/1.2/cmake/MSVCMultipleProcessCompile.cmake
branches/1.2/cmake/MSVCStaticRuntime.cmake
branches/1.2/cmake/MSVCVerboseLinking.cmake
branches/1.2/cmake/MakeVRJugglerAppBundle.cmake
branches/1.2/cmake/MakeVRJugglerAppBundle30.cmake
branches/1.2/cmake/OptionRequires.cmake
branches/1.2/cmake/PrefixListGlob.cmake
branches/1.2/cmake/ProgramFilesGlob.cmake
branches/1.2/cmake/README.markdown
branches/1.2/cmake/ResetConfigurations.cmake
branches/1.2/cmake/SearchProgramFilesForOpenSceneGraph.cmake
branches/1.2/cmake/SetDefaultBuildType.cmake
branches/1.2/cmake/SplitLibraryList.cmake
branches/1.2/cmake/StampSourcesWithVersion.cmake
branches/1.2/cmake/StampSourcesWithVersion.sed.in
branches/1.2/cmake/TCHARWorkaround.cmake
branches/1.2/cmake/UseBackportedModules.cmake
branches/1.2/cmake/UseTR1.cmake
branches/1.2/cmake/WarningDev.cmake
branches/1.2/cmake/cmake-2.8.0-modules/
branches/1.2/cmake/cmake-2.8.0-modules/features/
branches/1.2/cmake/cmake-2.8.0-modules/features/SelectLibraryConfigurations.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindOpenSceneGraph.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindOpenThreads.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/Findosg.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgAnimation.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgDB.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgFX.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgGA.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgIntrospection.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgManipulator.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgParticle.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgProducer.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgShadow.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgSim.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgTerrain.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgText.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgUtil.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgViewer.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgVolume.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/FindosgWidget.cmake
branches/1.2/cmake/cmake-2.8.0-modules/osg/Findosg_functions.cmake
branches/1.2/cmake/cmake-2.8.1-modules/
branches/1.2/cmake/cmake-2.8.1-modules/patchctestbug10149/
branches/1.2/cmake/cmake-2.8.1-modules/patchctestbug10149/CTest.cmake
branches/1.2/cmake/cmake-2.8.1-modules/patchctestbug10149/CTestScriptMode.cmake
branches/1.2/cmake/cmake-2.8.1-modules/patchctestbug10149/CTestTargets.cmake
branches/1.2/cmake/cmake-2.8.3-modules/
branches/1.2/cmake/cmake-2.8.3-modules/FixWinInstallPrefix.cmake
branches/1.2/cmake/cmake-2.8.3-modules/autoinclude.cmake
branches/1.2/cmake/cmake-2.8.4-modules/
branches/1.2/cmake/cmake-2.8.4-modules/ImproveEclipseGCCErrors.cmake
branches/1.2/cmake/cmake-2.8.4-modules/autoinclude.cmake
branches/1.2/cmake/cmake-2.8.4-modules/boost/
branches/1.2/cmake/cmake-2.8.4-modules/boost/FindBoost.cmake
branches/1.2/cmake/cmake-2.9.0-modules/
branches/1.2/cmake/cmake-2.9.0-modules/RequireOutOfSourceBuild.cmake
branches/1.2/cmake/cmake-2.9.0-modules/autoinclude.cmake
branches/1.2/cmake/export-to-directory.sh
branches/1.2/cmake/ghost-fake-stl/
branches/1.2/cmake/ghost-fake-stl/iostream.h
branches/1.2/cmake/ghost-fake-stl/list.h
branches/1.2/cmake/ghost-fake-stl/set.h
branches/1.2/cmake/ghost-fake-stl/vector.h
branches/1.2/cmake/launcher-templates/
branches/1.2/cmake/launcher-templates/genericlauncher.cmd.in
branches/1.2/cmake/launcher-templates/genericlauncher.sh.in
branches/1.2/cmake/launcher-templates/launcher.env.cmd.in
branches/1.2/cmake/launcher-templates/launcher.env.sh.in
branches/1.2/cmake/launcher-templates/perconfig.vcproj.user.in
branches/1.2/cmake/launcher-templates/targetlauncher.cmd.in
branches/1.2/cmake/launcher-templates/targetlauncher.sh.in
branches/1.2/cmake/launcher-templates/vcproj.user.in
branches/1.2/cmake/module-docs/
branches/1.2/cmake/module-docs/AllModuleDependencies.dot
branches/1.2/cmake/module-docs/Example-FindMyPackage-UsingImportedTargets.cmake
branches/1.2/cmake/module-docs/Example-FindMyPackage.cmake
branches/1.2/cmake/module-docs/Example-FindMySimplePackage.cmake
branches/1.2/cmake/module-help.html
branches/1.2/cmake/module-help.txt
branches/1.2/cmake/nested_targets/
branches/1.2/cmake/nested_targets/DCubed/
branches/1.2/cmake/nested_targets/DCubed/CMakeLists.txt
branches/1.2/cmake/nested_targets/DCubed/d3ew_p/
branches/1.2/cmake/nested_targets/DCubed/d3ew_p/CMakeLists.txt
branches/1.2/cmake/nested_targets/DCubed/d3ew_scene/
branches/1.2/cmake/nested_targets/DCubed/d3ew_scene/CMakeLists.txt
branches/1.2/cmake/nested_targets/OpenHaptics/
branches/1.2/cmake/nested_targets/OpenHaptics/CMakeLists.txt
branches/1.2/cmake/nested_targets/Parasolid/
branches/1.2/cmake/nested_targets/Parasolid/CMakeLists.txt
branches/1.2/cmake/nested_targets/cutil/
branches/1.2/cmake/nested_targets/cutil/CMakeLists.txt
branches/1.2/cmake/package/
branches/1.2/cmake/package/macosx/
branches/1.2/cmake/package/macosx/Resources/
branches/1.2/cmake/package/macosx/Resources/en.lproj/
branches/1.2/cmake/package/macosx/Resources/en.lproj/MainMenu.nib/
branches/1.2/cmake/package/macosx/Resources/en.lproj/MainMenu.nib/classes.nib
branches/1.2/cmake/package/macosx/Resources/en.lproj/MainMenu.nib/info.nib
branches/1.2/cmake/package/macosx/Resources/vrjuggler.plist
branches/1.2/cmake/package/macosx/VRJuggler22BundleInfo.plist.in
branches/1.2/cmake/package/macosx/VRJuggler30BundleInfo.plist.in
branches/1.2/cmake/package/macosx/fixupbundle.cmake.in
branches/1.2/cmake/package-licensing/
branches/1.2/cmake/package-licensing/Boost.cmake
branches/1.2/cmake/package-licensing/Eigen.cmake
branches/1.2/cmake/package-licensing/FLTK.cmake
branches/1.2/cmake/package-licensing/Lua.cmake
branches/1.2/cmake/package-licensing/LuaBind.cmake
branches/1.2/cmake/package-licensing/OpenHapticsAcademicEdition.cmake
branches/1.2/cmake/package-licensing/OpenSceneGraph.cmake
branches/1.2/cmake/package-licensing/PhysicalModelingUtils.cmake
branches/1.2/cmake/package-licensing/Qt-LGPL.cmake
branches/1.2/cmake/package-licensing/VPS.cmake
branches/1.2/cmake/package-licensing/VRJuggLua.cmake
branches/1.2/cmake/package-licensing/VRJuggler.cmake
branches/1.2/cmake/package-licensing/VirtuoseAPI.cmake
branches/1.2/cmake/package-licensing/osgLua.cmake
branches/1.2/cmake/update-help.sh
branches/1.2/cmake/workarounds/
branches/1.2/cmake/workarounds/mac-alut-framework/
branches/1.2/cmake/workarounds/mac-alut-framework/AL/
branches/1.2/cmake/workarounds/mac-alut-framework/AL/alut.h
branches/1.2/cmake/workarounds/mac-gl/
branches/1.2/cmake/workarounds/mac-gl/GL/
branches/1.2/cmake/workarounds/mac-gl/GL/gl.h
branches/1.2/cmake/workarounds/mac-gl/GL/glui.h
branches/1.2/cmake/workarounds/mac-gl/GL/glut.h
branches/1.2/cmake/workarounds/mac-openal/
branches/1.2/cmake/workarounds/mac-openal/AL/
branches/1.2/cmake/workarounds/mac-openal/AL/al.h
branches/1.2/cmake/workarounds/mac-openal/AL/alc.h
branches/1.2/cmake/workarounds/tchar/
branches/1.2/cmake/workarounds/tchar/tchar.h
Copied: branches/1.2/CMakeLists.txt (from rev 690, trunk/CMakeLists.txt)
===================================================================
--- branches/1.2/CMakeLists.txt (rev 0)
+++ branches/1.2/CMakeLists.txt 2012-07-04 20:35:57 UTC (rev 693)
@@ -0,0 +1,100 @@
+# CMake-based build system for cppdom
+# 2009-2011 Ryan Pavlik <rp...@ia...>
+# http://academic.cleardefinition.com/
+# Iowa State University HCI Graduate Program/VRAC
+
+cmake_minimum_required(VERSION 2.6.2)
+
+# Set package properties
+project(cppdom)
+
+set(CPACK_PACKAGE_VERSION_MAJOR "1")
+set(CPACK_PACKAGE_VERSION_MINOR "0")
+set(CPACK_PACKAGE_VERSION_PATCH "3")
+set(CPACK_PACKAGE_VERSION
+ "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
+set(VERSION_UNDERSCORES "${CPACK_PACKAGE_VERSION_MAJOR}_${CPACK_PACKAGE_VERSION_MINOR}_${CPACK_PACKAGE_VERSION_PATCH}")
+###
+# Set up options
+###
+
+# Define directories
+set(BIN_DIR bin)
+set(ARCH_DIR lib)
+set(FLAGPOLL_INFO_DIR share/flagpoll)
+if(WIN32)
+ set(LIB_DIR bin)
+ set(INCLUDE_DIR include)
+else()
+ set(LIB_DIR lib)
+ set(INCLUDE_DIR include/cppdom-${CPACK_PACKAGE_VERSION})
+endif()
+
+# Create flagpoll file
+set(provides "cppdom")
+set(version "${CPACK_PACKAGE_VERSION}")
+set(prefix "\${fp_file_cwd}/../..")
+set(exec_prefix "\${prefix}")
+set(includedir "\${fp_file_cwd}/../../${INCLUDE_DIR}")
+set(libdir "\${fp_file_cwd}/../../${LIB_DIR}")
+# TODO this is not ideal/complete
+if(CMAKE_SIZEOF_VOID_P EQUAL 8)
+ set(arch "x86_64")
+else()
+ set(arch "x86")
+endif()
+if(CMAKE_COMPILER_IS_GNUCXX)
+ set(cppdom_cxxflags "-Wno-deprecated")
+ set(include_path_flag "-I")
+ set(cppdom_libs "-lcppdom-${VERSION_UNDERSCORES}")
+ set(lib_path_flag "-L")
+elseif(MSVC)
+ set(include_path_flag "/I")
+ set(lib_path_flag "/L")
+else()
+ message(FATAL_ERROR "Compiler not recognized - can't generate values for Flagpoll file")
+endif()
+
+configure_file(cppdom.fpc.in "${CMAKE_CURRENT_BINARY_DIR}/cppdom.fpc" @ONLY)
+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/cppdom.fpc"
+ DESTINATION ${FLAGPOLL_INFO_DIR}
+ COMPONENT Development)
+
+###
+# Perform build configuration of dependencies
+###
+list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
+include(UseBackportedModules)
+include(CTest)
+
+find_package(Boost)
+
+###
+# Build the project
+###
+
+include_directories(.)
+add_subdirectory(cppdom)
+
+add_subdirectory(test)
+
+###
+# Set packaging options (for CPack)
+###
+
+# Choose desired package generators
+if(APPLE)
+ set(CPACK_GENERATOR DragNDrop)
+ set(CPACK_SOURCE_GENERATOR ZIP)
+elseif(WIN32)
+ set(CPACK_SOURCE_GENERATOR ZIP)
+else()
+ set(CPACK_SOURCE_GENERATOR TARGZ)
+endif()
+
+# Include the packaging system now that we have it all set up
+include(CPack)
+
+###
+# End Packaging
+###
Modified: branches/1.2/ChangeLog
===================================================================
--- branches/1.2/ChangeLog 2012-07-04 20:32:43 UTC (rev 692)
+++ branches/1.2/ChangeLog 2012-07-04 20:35:57 UTC (rev 693)
@@ -1,5 +1,8 @@
DATE AUTHOR CHANGE
---------- ----------- -------------------------------------------------------
+2012-07-04 patrickh Add CMake build.
+ Developed by Ryan Pavlik.
+
[Version 1.2.0 released - 5.1.2011]============================================
2011-04-23 patrickh SCons 2.0 is now the minimum required version.
Deleted: branches/1.2/cmake/AboutTheseModules.cmake
===================================================================
--- trunk/cmake/AboutTheseModules.cmake 2012-07-04 20:30:43 UTC (rev 690)
+++ branches/1.2/cmake/AboutTheseModules.cmake 2012-07-04 20:35:57 UTC (rev 693)
@@ -1,34 +0,0 @@
-# - Dummy module containing information about these modules for the HELP file
-# This file documents a snapshot of the cmake-modules available from
-# http://github.com/rpavlik/cmake-modules/
-# The latest version of these modules can always be found there.
-# Additionally, you can find instructions on how to integrate these modules
-# into your own project either in the README.markdown file in this directory,
-# or on the GitHub page listed above (scroll to the bottom to see the README
-# rendered attractively).
-#
-# In short: Modules of the form "FindSomeName.cmake" are considered to be
-# "find modules", and are intended to be used indirectly by calling find_package,
-# not by calling include. Thus, you'll want to do something like:
-# find_package(SomeName)
-# They define a number of variables allowing you to use whatever software
-# they search for, such as include directories and libraries. A few also
-# define some functions for your use.
-#
-# All other modules provide functionality, either immediately upon including
-# them, or by defining functions that perform some task of varying utility
-# that you can use any time after including them. Note that if a module
-# has the filename, for example, cmake/BoostTestTargets.cmake, you only
-# need to call:
-# include(BoostTestTargets)
-#
-# For more information, see the documentation for individual modules, the
-# cmake-modules github page, and/or the upstream CMake documentation at
-# http://www.cmake.org/cmake/help/cmake-2-8-docs.html
-#
-#
-# Copyright Iowa State University 2009-2010.
-# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or copy at
-# http://www.boost.org/LICENSE_1_0.txt)
-
Copied: branches/1.2/cmake/AboutTheseModules.cmake (from rev 690, trunk/cmake/AboutTheseModules.cmake)
===================================================================
--- branches/1.2/cmake/AboutTheseModules.cmake (rev 0)
+++ branches/1.2/cmake/AboutTheseModules.cmake 2012-07-04 20:35:57 UTC (rev 693)
@@ -0,0 +1,34 @@
+# - Dummy module containing information about these modules for the HELP file
+# This file documents a snapshot of the cmake-modules available from
+# http://github.com/rpavlik/cmake-modules/
+# The latest version of these modules can always be found there.
+# Additionally, you can find instructions on how to integrate these modules
+# into your own project either in the README.markdown file in this directory,
+# or on the GitHub page listed above (scroll to the bottom to see the README
+# rendered attractively).
+#
+# In short: Modules of the form "FindSomeName.cmake" are considered to be
+# "find modules", and are intended to be used indirectly by calling find_package,
+# not by calling include. Thus, you'll want to do something like:
+# find_package(SomeName)
+# They define a number of variables allowing you to use whatever software
+# they search for, such as include directories and libraries. A few also
+# define some functions for your use.
+#
+# All other modules provide functionality, either immediately upon including
+# them, or by defining functions that perform some task of varying utility
+# that you can use any time after including them. Note that if a module
+# has the filename, for example, cmake/BoostTestTargets.cmake, you only
+# need to call:
+# include(BoostTestTargets)
+#
+# For more information, see the documentation for individual modules, the
+# cmake-modules github page, and/or the upstream CMake documentation at
+# http://www.cmake.org/cmake/help/cmake-2-8-docs.html
+#
+#
+# Copyright Iowa State University 2009-2010.
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
Deleted: branches/1.2/cmake/BoostTestTargets.cmake
===================================================================
--- trunk/cmake/BoostTestTargets.cmake 2012-07-04 20:30:43 UTC (rev 690)
+++ branches/1.2/cmake/BoostTestTargets.cmake 2012-07-04 20:35:57 UTC (rev 693)
@@ -1,274 +0,0 @@
-# - Add tests using boost::test
-#
-# Add this line to your test files in place of including a basic boost test header:
-# #include <BoostTestTargetConfig.h>
-#
-# If you cannot do that and must use the included form for a given test,
-# include the line
-# // OVERRIDE_BOOST_TEST_INCLUDED_WARNING
-# in the same file with the boost test include.
-#
-# include(BoostTestTargets)
-# add_boost_test(<testdriver_name> SOURCES <source1> [<more sources...>]
-# [FAIL_REGULAR_EXPRESSION <additional fail regex>]
-# [LAUNCHER <generic launcher script>]
-# [LIBRARIES <library> [<library>...]]
-# [RESOURCES <resource> [<resource>...]]
-# [TESTS <testcasename> [<testcasename>...]])
-#
-# If for some reason you need access to the executable target created,
-# it can be found in ${${testdriver_name}_TARGET_NAME} as specified when
-# you called add_boost_test
-#
-# Requires CMake 2.6 or newer (uses the 'function' command)
-#
-# Requires:
-# GetForceIncludeDefinitions
-# CopyResourcesToBuildTree
-#
-# Original Author:
-# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
-# http://academic.cleardefinition.com
-# Iowa State University HCI Graduate Program/VRAC
-#
-# Copyright Iowa State University 2009-2010.
-# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or copy at
-# http://www.boost.org/LICENSE_1_0.txt)
-
-if(__add_boost_test)
- return()
-endif()
-set(__add_boost_test YES)
-
-set(BOOST_TEST_TARGET_PREFIX "boosttest")
-
-if(NOT Boost_FOUND)
- find_package(Boost 1.34.0 QUIET)
-endif()
-if("${Boost_VERSION}0" LESS "1034000")
- set(_shared_msg
- "NOTE: boost::test-based targets and tests cannot "
- "be added: boost >= 1.34.0 required but not found. "
- "(found: '${Boost_VERSION}'; want >=103400) ")
- if(BUILD_TESTING)
- message(FATAL_ERROR
- ${_shared_msg}
- "You may disable BUILD_TESTING to continue without the "
- "tests.")
- else()
- message(STATUS
- ${_shared_msg}
- "BUILD_TESTING disabled, so continuing anyway.")
- endif()
-endif()
-
-include(GetForceIncludeDefinitions)
-include(CopyResourcesToBuildTree)
-
-if(Boost_FOUND AND NOT "${Boost_VERSION}0" LESS "1034000")
- set(_boosttesttargets_libs)
- set(_boostConfig "BoostTestTargetsIncluded.h")
- if(NOT Boost_UNIT_TEST_FRAMEWORK_LIBRARY)
- find_package(Boost 1.34.0 QUIET COMPONENTS unit_test_framework)
- endif()
- if(Boost_UNIT_TEST_FRAMEWORK_LIBRARY)
- set(_boosttesttargets_libs "${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}")
- if(Boost_USE_STATIC_LIBS)
- set(_boostConfig "BoostTestTargetsStatic.h")
- else()
- if(NOT APPLE)
- set(_boostConfig "BoostTestTargetsDynamic.h")
- endif()
- endif()
- endif()
- get_filename_component(_moddir ${CMAKE_CURRENT_LIST_FILE} PATH)
- configure_file("${_moddir}/${_boostConfig}"
- "${CMAKE_CURRENT_BINARY_DIR}/BoostTestTargetConfig.h"
- COPYONLY)
- include_directories("${CMAKE_CURRENT_BINARY_DIR}")
-endif()
-
-function(add_boost_test _name)
- if(NOT BUILD_TESTING)
- return()
- endif()
- if("${CMAKE_VERSION}" VERSION_LESS "2.8.0")
- if(NOT "${_boost_test_cmakever_pestered}x" EQUALS "${CMAKE_VERSION}x")
- message(STATUS
- "Not adding boost::test targets - CMake 2.8.0 or newer required, using ${CMAKE_VERSION}")
- set(_boost_test_cmakever_pestered
- "${CMAKE_VERSION}"
- CACHE
- INTERNAL
- ""
- FORCE)
- endif()
- return()
- endif()
-
- # parse arguments
- set(_nowhere)
- set(_curdest _nowhere)
- set(_val_args
- SOURCES
- FAIL_REGULAR_EXPRESSION
- LAUNCHER
- LIBRARIES
- RESOURCES
- TESTS)
- set(_bool_args
- USE_COMPILED_LIBRARY)
- foreach(_arg ${_val_args} ${_bool_args})
- set(${_arg})
- endforeach()
- foreach(_element ${ARGN})
- list(FIND _val_args "${_element}" _val_arg_find)
- list(FIND _bool_args "${_element}" _bool_arg_find)
- if("${_val_arg_find}" GREATER "-1")
- set(_curdest "${_element}")
- elseif("${_bool_arg_find}" GREATER "-1")
- set("${_element}" ON)
- set(_curdest _nowhere)
- else()
- list(APPEND ${_curdest} "${_element}")
- endif()
- endforeach()
-
- if(_nowhere)
- message(FATAL_ERROR "Syntax error in use of add_boost_test!")
- endif()
-
- if(NOT SOURCES)
- message(FATAL_ERROR
- "Syntax error in use of add_boost_test: at least one source file required!")
- endif()
-
- if(Boost_FOUND AND NOT "${Boost_VERSION}0" LESS "1034000")
-
- include_directories(${Boost_INCLUDE_DIRS})
-
- set(includeType)
- foreach(src ${SOURCES})
- file(READ ${src} thefile)
- if("${thefile}" MATCHES ".*BoostTestTargetConfig.h.*")
- set(includeType CONFIGURED)
- set(includeFileLoc ${src})
- break()
- elseif("${thefile}" MATCHES ".*boost/test/included/unit_test.hpp.*")
- set(includeType INCLUDED)
- set(includeFileLoc ${src})
- set(_boosttesttargets_libs) # clear this out - linking would be a bad idea
- if(NOT
- "${thefile}"
- MATCHES
- ".*OVERRIDE_BOOST_TEST_INCLUDED_WARNING.*")
- message("Please replace the include line in ${src} with this alternate include line instead:")
- message(" \#include <BoostTestTargetConfig.h>")
- message("Once you've saved your changes, re-run CMake. (See BoostTestTargets.cmake for more info)")
- endif()
- break()
- endif()
- endforeach()
-
- if(NOT _boostTestTargetsNagged${_name} STREQUAL "${includeType}")
- if("includeType" STREQUAL "CONFIGURED")
- message(STATUS
- "Test '${_name}' uses the CMake-configurable form of the boost test framework - congrats! (Including File: ${includeFileLoc})")
- elseif("${includeType}" STREQUAL "INCLUDED")
- message("In test '${_name}': ${includeFileLoc} uses the 'included' form of the boost unit test framework.")
- else()
- message("In test '${_name}': Didn't detect the CMake-configurable boost test include.")
- message("Please replace your existing boost test include in that test with the following:")
- message(" \#include <BoostTestTargetConfig.h>")
- message("Once you've saved your changes, re-run CMake. (See BoostTestTargets.cmake for more info)")
- endif()
- endif()
- set(_boostTestTargetsNagged${_name}
- "${includeType}"
- CACHE
- INTERNAL
- ""
- FORCE)
-
-
- if(RESOURCES)
- list(APPEND SOURCES ${RESOURCES})
- endif()
-
- # Generate a unique target name, using the relative binary dir
- # and provided name. (transform all / into _ and remove all other
- # non-alphabet characters)
- file(RELATIVE_PATH
- targetpath
- "${CMAKE_BINARY_DIR}"
- "${CMAKE_CURRENT_BINARY_DIR}")
- string(REGEX REPLACE "[^A-Za-z/_]" "" targetpath "${targetpath}")
- string(REPLACE "/" "_" targetpath "${targetpath}")
-
- set(_target_name ${BOOST_TEST_TARGET_PREFIX}-${targetpath}-${_name})
- set(${_name}_TARGET_NAME "${_target_name}" PARENT_SCOPE)
-
- # Build the test.
- add_executable(${_target_name} ${SOURCES})
-
- list(APPEND LIBRARIES ${_boosttesttargets_libs})
-
- if(LIBRARIES)
- target_link_libraries(${_target_name} ${LIBRARIES})
- endif()
-
- if(RESOURCES)
- set_property(TARGET ${_target_name} PROPERTY RESOURCE ${RESOURCES})
- copy_resources_to_build_tree(${_target_name})
- endif()
-
- if(NOT Boost_TEST_FLAGS)
-# set(Boost_TEST_FLAGS --catch_system_error=yes --output_format=XML)
- set(Boost_TEST_FLAGS --catch_system_error=yes)
- endif()
-
- # TODO: Figure out why only recent boost handles individual test running properly
-
- if(LAUNCHER)
- set(_test_command ${LAUNCHER} "\$<TARGET_FILE:${_target_name}>")
- else()
- set(_test_command ${_target_name})
- endif()
-
- if(TESTS AND ( "${Boost_VERSION}" VERSION_GREATER "103799" ))
- foreach(_test ${TESTS})
- add_test(NAME
- ${_name}-${_test}
- COMMAND
- ${_test_command}
- --run_test=${_test}
- ${Boost_TEST_FLAGS})
- if(FAIL_REGULAR_EXPRESSION)
- set_tests_properties(${_name}-${_test}
- PROPERTIES
- FAIL_REGULAR_EXPRESSION
- "${FAIL_REGULAR_EXPRESSION}")
- endif()
- endforeach()
- else()
- add_test(NAME
- ${_name}-boost_test
- COMMAND
- ${_test_command}
- ${Boost_TEST_FLAGS})
- if(FAIL_REGULAR_EXPRESSION)
- set_tests_properties(${_name}-${_test}
- PROPERTIES
- FAIL_REGULAR_EXPRESSION
- "${FAIL_REGULAR_EXPRESSION}")
- endif()
- endif()
-
- # CppCheck the test if we can.
- if(COMMAND add_cppcheck)
- add_cppcheck(${_target_name} STYLE UNUSED_FUNCTIONS)
- endif()
-
- endif()
-endfunction()
Copied: branches/1.2/cmake/BoostTestTargets.cmake (from rev 690, trunk/cmake/BoostTestTargets.cmake)
===================================================================
--- branches/1.2/cmake/BoostTestTargets.cmake (rev 0)
+++ branches/1.2/cmake/BoostTestTargets.cmake 2012-07-04 20:35:57 UTC (rev 693)
@@ -0,0 +1,274 @@
+# - Add tests using boost::test
+#
+# Add this line to your test files in place of including a basic boost test header:
+# #include <BoostTestTargetConfig.h>
+#
+# If you cannot do that and must use the included form for a given test,
+# include the line
+# // OVERRIDE_BOOST_TEST_INCLUDED_WARNING
+# in the same file with the boost test include.
+#
+# include(BoostTestTargets)
+# add_boost_test(<testdriver_name> SOURCES <source1> [<more sources...>]
+# [FAIL_REGULAR_EXPRESSION <additional fail regex>]
+# [LAUNCHER <generic launcher script>]
+# [LIBRARIES <library> [<library>...]]
+# [RESOURCES <resource> [<resource>...]]
+# [TESTS <testcasename> [<testcasename>...]])
+#
+# If for some reason you need access to the executable target created,
+# it can be found in ${${testdriver_name}_TARGET_NAME} as specified when
+# you called add_boost_test
+#
+# Requires CMake 2.6 or newer (uses the 'function' command)
+#
+# Requires:
+# GetForceIncludeDefinitions
+# CopyResourcesToBuildTree
+#
+# Original Author:
+# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
+# http://academic.cleardefinition.com
+# Iowa State University HCI Graduate Program/VRAC
+#
+# Copyright Iowa State University 2009-2010.
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
+if(__add_boost_test)
+ return()
+endif()
+set(__add_boost_test YES)
+
+set(BOOST_TEST_TARGET_PREFIX "boosttest")
+
+if(NOT Boost_FOUND)
+ find_package(Boost 1.34.0 QUIET)
+endif()
+if("${Boost_VERSION}0" LESS "1034000")
+ set(_shared_msg
+ "NOTE: boost::test-based targets and tests cannot "
+ "be added: boost >= 1.34.0 required but not found. "
+ "(found: '${Boost_VERSION}'; want >=103400) ")
+ if(BUILD_TESTING)
+ message(FATAL_ERROR
+ ${_shared_msg}
+ "You may disable BUILD_TESTING to continue without the "
+ "tests.")
+ else()
+ message(STATUS
+ ${_shared_msg}
+ "BUILD_TESTING disabled, so continuing anyway.")
+ endif()
+endif()
+
+include(GetForceIncludeDefinitions)
+include(CopyResourcesToBuildTree)
+
+if(Boost_FOUND AND NOT "${Boost_VERSION}0" LESS "1034000")
+ set(_boosttesttargets_libs)
+ set(_boostConfig "BoostTestTargetsIncluded.h")
+ if(NOT Boost_UNIT_TEST_FRAMEWORK_LIBRARY)
+ find_package(Boost 1.34.0 QUIET COMPONENTS unit_test_framework)
+ endif()
+ if(Boost_UNIT_TEST_FRAMEWORK_LIBRARY)
+ set(_boosttesttargets_libs "${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}")
+ if(Boost_USE_STATIC_LIBS)
+ set(_boostConfig "BoostTestTargetsStatic.h")
+ else()
+ if(NOT APPLE)
+ set(_boostConfig "BoostTestTargetsDynamic.h")
+ endif()
+ endif()
+ endif()
+ get_filename_component(_moddir ${CMAKE_CURRENT_LIST_FILE} PATH)
+ configure_file("${_moddir}/${_boostConfig}"
+ "${CMAKE_CURRENT_BINARY_DIR}/BoostTestTargetConfig.h"
+ COPYONLY)
+ include_directories("${CMAKE_CURRENT_BINARY_DIR}")
+endif()
+
+function(add_boost_test _name)
+ if(NOT BUILD_TESTING)
+ return()
+ endif()
+ if("${CMAKE_VERSION}" VERSION_LESS "2.8.0")
+ if(NOT "${_boost_test_cmakever_pestered}x" EQUALS "${CMAKE_VERSION}x")
+ message(STATUS
+ "Not adding boost::test targets - CMake 2.8.0 or newer required, using ${CMAKE_VERSION}")
+ set(_boost_test_cmakever_pestered
+ "${CMAKE_VERSION}"
+ CACHE
+ INTERNAL
+ ""
+ FORCE)
+ endif()
+ return()
+ endif()
+
+ # parse arguments
+ set(_nowhere)
+ set(_curdest _nowhere)
+ set(_val_args
+ SOURCES
+ FAIL_REGULAR_EXPRESSION
+ LAUNCHER
+ LIBRARIES
+ RESOURCES
+ TESTS)
+ set(_bool_args
+ USE_COMPILED_LIBRARY)
+ foreach(_arg ${_val_args} ${_bool_args})
+ set(${_arg})
+ endforeach()
+ foreach(_element ${ARGN})
+ list(FIND _val_args "${_element}" _val_arg_find)
+ list(FIND _bool_args "${_element}" _bool_arg_find)
+ if("${_val_arg_find}" GREATER "-1")
+ set(_curdest "${_element}")
+ elseif("${_bool_arg_find}" GREATER "-1")
+ set("${_element}" ON)
+ set(_curdest _nowhere)
+ else()
+ list(APPEND ${_curdest} "${_element}")
+ endif()
+ endforeach()
+
+ if(_nowhere)
+ message(FATAL_ERROR "Syntax error in use of add_boost_test!")
+ endif()
+
+ if(NOT SOURCES)
+ message(FATAL_ERROR
+ "Syntax error in use of add_boost_test: at least one source file required!")
+ endif()
+
+ if(Boost_FOUND AND NOT "${Boost_VERSION}0" LESS "1034000")
+
+ include_directories(${Boost_INCLUDE_DIRS})
+
+ set(includeType)
+ foreach(src ${SOURCES})
+ file(READ ${src} thefile)
+ if("${thefile}" MATCHES ".*BoostTestTargetConfig.h.*")
+ set(includeType CONFIGURED)
+ set(includeFileLoc ${src})
+ break()
+ elseif("${thefile}" MATCHES ".*boost/test/included/unit_test.hpp.*")
+ set(includeType INCLUDED)
+ set(includeFileLoc ${src})
+ set(_boosttesttargets_libs) # clear this out - linking would be a bad idea
+ if(NOT
+ "${thefile}"
+ MATCHES
+ ".*OVERRIDE_BOOST_TEST_INCLUDED_WARNING.*")
+ message("Please replace the include line in ${src} with this alternate include line instead:")
+ message(" \#include <BoostTestTargetConfig.h>")
+ message("Once you've saved your changes, re-run CMake. (See BoostTestTargets.cmake for more info)")
+ endif()
+ break()
+ endif()
+ endforeach()
+
+ if(NOT _boostTestTargetsNagged${_name} STREQUAL "${includeType}")
+ if("includeType" STREQUAL "CONFIGURED")
+ message(STATUS
+ "Test '${_name}' uses the CMake-configurable form of the boost test framework - congrats! (Including File: ${includeFileLoc})")
+ elseif("${includeType}" STREQUAL "INCLUDED")
+ message("In test '${_name}': ${includeFileLoc} uses the 'included' form of the boost unit test framework.")
+ else()
+ message("In test '${_name}': Didn't detect the CMake-configurable boost test include.")
+ message("Please replace your existing boost test include in that test with the following:")
+ message(" \#include <BoostTestTargetConfig.h>")
+ message("Once you've saved your changes, re-run CMake. (See BoostTestTargets.cmake for more info)")
+ endif()
+ endif()
+ set(_boostTestTargetsNagged${_name}
+ "${includeType}"
+ CACHE
+ INTERNAL
+ ""
+ FORCE)
+
+
+ if(RESOURCES)
+ list(APPEND SOURCES ${RESOURCES})
+ endif()
+
+ # Generate a unique target name, using the relative binary dir
+ # and provided name. (transform all / into _ and remove all other
+ # non-alphabet characters)
+ file(RELATIVE_PATH
+ targetpath
+ "${CMAKE_BINARY_DIR}"
+ "${CMAKE_CURRENT_BINARY_DIR}")
+ string(REGEX REPLACE "[^A-Za-z/_]" "" targetpath "${targetpath}")
+ string(REPLACE "/" "_" targetpath "${targetpath}")
+
+ set(_target_name ${BOOST_TEST_TARGET_PREFIX}-${targetpath}-${_name})
+ set(${_name}_TARGET_NAME "${_target_name}" PARENT_SCOPE)
+
+ # Build the test.
+ add_executable(${_target_name} ${SOURCES})
+
+ list(APPEND LIBRARIES ${_boosttesttargets_libs})
+
+ if(LIBRARIES)
+ target_link_libraries(${_target_name} ${LIBRARIES})
+ endif()
+
+ if(RESOURCES)
+ set_property(TARGET ${_target_name} PROPERTY RESOURCE ${RESOURCES})
+ copy_resources_to_build_tree(${_target_name})
+ endif()
+
+ if(NOT Boost_TEST_FLAGS)
+# set(Boost_TEST_FLAGS --catch_system_error=yes --output_format=XML)
+ set(Boost_TEST_FLAGS --catch_system_error=yes)
+ endif()
+
+ # TODO: Figure out why only recent boost handles individual test running properly
+
+ if(LAUNCHER)
+ set(_test_command ${LAUNCHER} "\$<TARGET_FILE:${_target_name}>")
+ else()
+ set(_test_command ${_target_name})
+ endif()
+
+ if(TESTS AND ( "${Boost_VERSION}" VERSION_GREATER "103799" ))
+ foreach(_test ${TESTS})
+ add_test(NAME
+ ${_name}-${_test}
+ COMMAND
+ ${_test_command}
+ --run_test=${_test}
+ ${Boost_TEST_FLAGS})
+ if(FAIL_REGULAR_EXPRESSION)
+ set_tests_properties(${_name}-${_test}
+ PROPERTIES
+ FAIL_REGULAR_EXPRESSION
+ "${FAIL_REGULAR_EXPRESSION}")
+ endif()
+ endforeach()
+ else()
+ add_test(NAME
+ ${_name}-boost_test
+ COMMAND
+ ${_test_command}
+ ${Boost_TEST_FLAGS})
+ if(FAIL_REGULAR_EXPRESSION)
+ set_tests_properties(${_name}-${_test}
+ PROPERTIES
+ FAIL_REGULAR_EXPRESSION
+ "${FAIL_REGULAR_EXPRESSION}")
+ endif()
+ endif()
+
+ # CppCheck the test if we can.
+ if(COMMAND add_cppcheck)
+ add_cppcheck(${_target_name} STYLE UNUSED_FUNCTIONS)
+ endif()
+
+ endif()
+endfunction()
Deleted: branches/1.2/cmake/BoostTestTargetsDynamic.h
===================================================================
--- trunk/cmake/BoostTestTargetsDynamic.h 2012-07-04 20:30:43 UTC (rev 690)
+++ branches/1.2/cmake/BoostTestTargetsDynamic.h 2012-07-04 20:35:57 UTC (rev 693)
@@ -1,9 +0,0 @@
-// Small header computed by CMake to set up boost test.
-// include AFTER #define BOOST_TEST_MODULE whatever
-// but before any other boost test includes.
-
-// Using the Boost UTF dynamic library
-
-#define BOOST_TEST_DYN_LINK
-#include <boost/test/unit_test.hpp>
-
Copied: branches/1.2/cmake/BoostTestTargetsDynamic.h (from rev 690, trunk/cmake/BoostTestTargetsDynamic.h)
===================================================================
--- branches/1.2/cmake/BoostTestTargetsDynamic.h (rev 0)
+++ branches/1.2/cmake/BoostTestTargetsDynamic.h 2012-07-04 20:35:57 UTC (rev 693)
@@ -0,0 +1,9 @@
+// Small header computed by CMake to set up boost test.
+// include AFTER #define BOOST_TEST_MODULE whatever
+// but before any other boost test includes.
+
+// Using the Boost UTF dynamic library
+
+#define BOOST_TEST_DYN_LINK
+#include <boost/test/unit_test.hpp>
+
Deleted: branches/1.2/cmake/BoostTestTargetsIncluded.h
===================================================================
--- trunk/cmake/BoostTestTargetsIncluded.h 2012-07-04 20:30:43 UTC (rev 690)
+++ branches/1.2/cmake/BoostTestTargetsIncluded.h 2012-07-04 20:35:57 UTC (rev 693)
@@ -1,7 +0,0 @@
-// Small header computed by CMake to set up boost test.
-// include AFTER #define BOOST_TEST_MODULE whatever
-// but before any other boost test includes.
-
-// Using the Boost UTF included framework
-
-#include <boost/test/included/unit_test.hpp>
Copied: branches/1.2/cmake/BoostTestTargetsIncluded.h (from rev 690, trunk/cmake/BoostTestTargetsIncluded.h)
===================================================================
--- branches/1.2/cmake/BoostTestTargetsIncluded.h (rev 0)
+++ branches/1.2/cmake/BoostTestTargetsIncluded.h 2012-07-04 20:35:57 UTC (rev 693)
@@ -0,0 +1,7 @@
+// Small header computed by CMake to set up boost test.
+// include AFTER #define BOOST_TEST_MODULE whatever
+// but before any other boost test includes.
+
+// Using the Boost UTF included framework
+
+#include <boost/test/included/unit_test.hpp>
Deleted: branches/1.2/cmake/BoostTestTargetsStatic.h
===================================================================
--- trunk/cmake/BoostTestTargetsStatic.h 2012-07-04 20:30:43 UTC (rev 690)
+++ branches/1.2/cmake/BoostTestTargetsStatic.h 2012-07-04 20:35:57 UTC (rev 693)
@@ -1,7 +0,0 @@
-// Small header computed by CMake to set up boost test.
-// include AFTER #define BOOST_TEST_MODULE whatever
-// but before any other boost test includes.
-
-// Using the Boost UTF static library
-
-#include <boost/test/unit_test.hpp>
Copied: branches/1.2/cmake/BoostTestTargetsStatic.h (from rev 690, trunk/cmake/BoostTestTargetsStatic.h)
===================================================================
--- branches/1.2/cmake/BoostTestTargetsStatic.h (rev 0)
+++ branches/1.2/cmake/BoostTestTargetsStatic.h 2012-07-04 20:35:57 UTC (rev 693)
@@ -0,0 +1,7 @@
+// Small header computed by CMake to set up boost test.
+// include AFTER #define BOOST_TEST_MODULE whatever
+// but before any other boost test includes.
+
+// Using the Boost UTF static library
+
+#include <boost/test/unit_test.hpp>
Deleted: branches/1.2/cmake/BundleOSGPlugins.cmake
===================================================================
--- trunk/cmake/BundleOSGPlugins.cmake 2012-07-04 20:30:43 UTC (rev 690)
+++ branches/1.2/cmake/BundleOSGPlugins.cmake 2012-07-04 20:35:57 UTC (rev 693)
@@ -1,83 +0,0 @@
-# - Provide access to the OpenSceneGraph runtime files for bundling in
-# an installation or package.
-#
-# Sets these variables:
-# - OSGDB_PLUGINS_RELEASE
-# - OSGDB_PLUGINS_DEBUG
-# - OSGWRAPPER_PLUGINS_RELEASE
-# - OSGWRAPPER_PLUGINS_DEBUG
-# - OSG_RUNTIME_LIBRARY_DIR
-# - OSG_PATH_TO_PLUGINS
-#
-# Creates this function:
-# - install_osg_plugins( {varNameForOutputFilenames} )
-#
-# Requires these CMake modules:
-# no additional modules required
-#
-# Original Author:
-# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
-# http://academic.cleardefinition.com
-# Iowa State University HCI Graduate Program/VRAC
-#
-# Copyright Iowa State University 2009-2010.
-# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or copy at
-# http://www.boost.org/LICENSE_1_0.txt)
-
-
-function(_osgbundle_split_debug_versions releasevar debugvar)
- set(release)
- set(debug)
- foreach(fn ${ARGN})
- get_filename_component(name "${fn}" NAME_WE)
- if(${name} MATCHES "d$")
- list(APPEND debug "${fn}")
- else()
- list(APPEND release "${fn}")
- endif()
- endforeach()
- set(${releasevar} ${release} PARENT_SCOPE)
- set(${debugvar} ${debug} PARENT_SCOPE)
-endfunction()
-
-function(_osgbundle_find_plugins varprefix filenameprefix)
- file(GLOB
- all
- "${OSG_RUNTIME_LIBRARY_DIR}/osgPlugins-${OPENSCENEGRAPH_VERSION}/${filenameprefix}*${CMAKE_SHARED_LIBRARY_SUFFIX}")
- _osgbundle_split_debug_versions(${varprefix}_PLUGINS_RELEASE
- ${varprefix}_PLUGINS_DEBUG
- ${all})
- set(${varprefix}_PLUGINS_RELEASE
- "${${varprefix}_PLUGINS_RELEASE}"
- PARENT_SCOPE)
- set(${varprefix}_PLUGINS_DEBUG
- "${${varprefix}_PLUGINS_DEBUG}"
- PARENT_SCOPE)
-endfunction()
-
-if(OPENSCENEGRAPH_FOUND)
- if(WIN32)
- get_filename_component(_osglibdir "${OSG_LIBRARY}" PATH)
- get_filename_component(_osgroot "${_osglibdir}/.." ABSOLUTE)
- set(OSG_RUNTIME_LIBRARY_DIR "${_osgroot}/bin")
- set(OSG_PATH_TO_PLUGINS "bin/osgPlugins-${OPENSCENEGRAPH_VERSION}/")
- else()
- get_filename_component(_osglibdir "${OSG_LIBRARY}" PATH)
- set(OSG_RUNTIME_LIBRARY_DIR "${_osglibdir}")
- set(OSG_PATH_TO_PLUGINS "lib/osgPlugins-${OPENSCENEGRAPH_VERSION}/")
- endif()
- # Find the osgDB plugins
- _osgbundle_find_plugins(OSGDB osgdb)
- _osgbundle_find_plugins(OSGWRAPPER osgwrapper)
-endif()
-
-function(install_osg_plugins var)
- set(INSTALLEDPLUGINS)
- foreach(plugin ${OSGDB_PLUGINS_RELEASE} ${OSGWRAPPER_PLUGINS_RELEASE})
- install(FILES "${plugin}" DESTINATION "${OSG_PATH_TO_PLUGINS}")
- get_filename_component(name "${plugin}" NAME)
- list(APPEND INSTALLEDPLUGINS "${OSG_PATH_TO_PLUGINS}/${name}")
- endforeach()
- set(${var} ${INSTALLEDPLUGINS} PARENT_SCOPE)
-endfunction()
Copied: branches/1.2/cmake/BundleOSGPlugins.cmake (from rev 690, trunk/cmake/BundleOSGPlugins.cmake)
===================================================================
--- branches/1.2/cmake/BundleOSGPlugins.cmake (rev 0)
+++ branches/1.2/cmake/BundleOSGPlugins.cmake 2012-07-04 20:35:57 UTC (rev 693)
@@ -0,0 +1,83 @@
+# - Provide access to the OpenSceneGraph runtime files for bundling in
+# an installation or package.
+#
+# Sets these variables:
+# - OSGDB_PLUGINS_RELEASE
+# - OSGDB_PLUGINS_DEBUG
+# - OSGWRAPPER_PLUGINS_RELEASE
+# - OSGWRAPPER_PLUGINS_DEBUG
+# - OSG_RUNTIME_LIBRARY_DIR
+# - OSG_PATH_TO_PLUGINS
+#
+# Creates this function:
+# - install_osg_plugins( {varNameForOutputFilenames} )
+#
+# Requires these CMake modules:
+# no additional modules required
+#
+# Original Author:
+# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
+# http://academic.cleardefinition.com
+# Iowa State University HCI Graduate Program/VRAC
+#
+# Copyright Iowa State University 2009-2010.
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
+
+function(_osgbundle_split_debug_versions releasevar debugvar)
+ set(release)
+ set(debug)
+ foreach(fn ${ARGN})
+ get_filename_component(name "${fn}" NAME_WE)
+ if(${name} MATCHES "d$")
+ list(APPEND debug "${fn}")
+ else()
+ list(APPEND release "${fn}")
+ endif()
+ endforeach()
+ set(${releasevar} ${release} PARENT_SCOPE)
+ set(${debugvar} ${debug} PARENT_SCOPE)
+endfunction()
+
+function(_osgbundle_find_plugins varprefix filenameprefix)
+ file(GLOB
+ all
+ "${OSG_RUNTIME_LIBRARY_DIR}/osgPlugins-${OPENSCENEGRAPH_VERSION}/${filenameprefix}*${CMAKE_SHARED_LIBRARY_SUFFIX}")
+ _osgbundle_split_debug_versions(${varprefix}_PLUGINS_RELEASE
+ ${varprefix}_PLUGINS_DEBUG
+ ${all})
+ set(${varprefix}_PLUGINS_RELEASE
+ "${${varprefix}_PLUGINS_RELEASE}"
+ PARENT_SCOPE)
+ set(${varprefix}_PLUGINS_DEBUG
+ "${${varprefix}_PLUGINS_DEBUG}"
+ PARENT_SCOPE)
+endfunction()
+
+if(OPENSCENEGRAPH_FOUND)
+ if(WIN32)
+ get_filename_component(_osglibdir "${OSG_LIBRARY}" PATH)
+ get_filename_component(_osgroot "${_osglibdir}/.." ABSOLUTE)
+ set(OSG_RUNTIME_LIBRARY_DIR "${_osgroot}/bin")
+ set(OSG_PATH_TO_PLUGINS "bin/osgPlugins-${OPENSCENEGRAPH_VERSION}/")
+ else()
+ get_filename_component(_osglibdir "${OSG_LIBRARY}" PATH)
+ set(OSG_RUNTIME_LIBRARY_DIR "${_osglibdir}")
+ set(OSG_PATH_TO_PLUGINS "lib/osgPlugins-${OPENSCENEGRAPH_VERSION}/")
+ endif()
+ # Find the osgDB plugins
+ _osgbundle_find_plugins(OSGDB osgdb)
+ _osgbundle_find_plugins(OSGWRAPPER osgwrapper)
+endif()
+
+function(install_osg_plugins var)
+ set(INSTALLEDPLUGINS)
+ foreach(plugin ${OSGDB_PLUGINS_RELEASE} ${OSGWRAPPER_PLUGINS_RELEASE})
+ install(FILES "${plugin}" DESTINATION "${OSG_PATH_TO_PLUGINS}")
+ get_filename_component(name "${plugin}" NAME)
+ list(APPEND INSTALLEDPLUGINS "${OSG_PATH_TO_PLUGINS}/${name}")
+ endforeach()
+ set(${var} ${INSTALLEDPLUGINS} PARENT_SCOPE)
+endfunction()
Deleted: branches/1.2/cmake/BundleOSGRuntime.cmake
===================================================================
--- trunk/cmake/BundleOSGRuntime.cmake 2012-07-04 20:30:43 UTC (rev 690)
+++ branches/1.2/cmake/BundleOSGRuntime.cmake 2012-07-04 20:35:57 UTC (rev 693)
@@ -1,118 +0,0 @@
-# - Include the OpenSceneGraph runtime files in an installation or built package.
-#
-# OSGRUNTIME_BUNDLE - Set to "yes" to enable this behavior
-# OSGRUNTIME_zlib1dll - Must be set to the location of zlib1.dll on Windows
-# OSGRUNTIME_zlib1ddll - Can be set to the location of zlib1d.dll (debug) on Windows.
-# If set, will be installed.
-#
-# Requires these CMake modules:
-# no additional modules required
-#
-# Original Author:
-# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
-# http://academic.cleardefinition.com
-# Iowa State University HCI Graduate Program/VRAC
-#
-# Copyright Iowa State University 2009-2010.
-# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or copy at
-# http://www.boost.org/LICENSE_1_0.txt)
-
-function(_osgbundle_split_debug_versions releasevar debugvar)
- set(release)
- set(debug)
- foreach(fn ${ARGN})
- get_filename_component(name "${fn}" NAME_WE)
- if(${name} MATCHES "d$")
- list(APPEND debug "${fn}")
- else()
- list(APPEND release "${fn}")
- endif()
- endforeach()
- set(${releasevar} ${release} PARENT_SCOPE)
- set(${debugvar} ${debug} PARENT_SCOPE)
-endfunction()
-
-function(_osgbundle_find_plugins varprefix filenameprefix)
- file(GLOB
- all
- "${OSG_RUNTIME_LIBRARY_DIR}/osgPlugins-${OPENSCENEGRAPH_VERSION}/${filenameprefix}*${CMAKE_SHARED_LIBRARY_SUFFIX}")
- _osgbundle_split_debug_versions(${varprefix}_PLUGINS_RELEASE
- ${va...
[truncated message content] |
|
From: <pat...@us...> - 2012-07-04 20:32:49
|
Revision: 692
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=692&view=rev
Author: patrickh
Date: 2012-07-04 20:32:43 +0000 (Wed, 04 Jul 2012)
Log Message:
-----------
MFT [r689]: Fix this test.
Change made by Ryan Pavlik
https://github.com/rpavlik/cppdom/commit/fd8143bb4b6581965aba3f66c211b25b80794637
Revision Links:
--------------
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=689&view=rev
Modified Paths:
--------------
branches/1.2/test/suite/TestCases/ErrorTest.cpp
Modified: branches/1.2/test/suite/TestCases/ErrorTest.cpp
===================================================================
--- branches/1.2/test/suite/TestCases/ErrorTest.cpp 2012-07-04 20:32:04 UTC (rev 691)
+++ branches/1.2/test/suite/TestCases/ErrorTest.cpp 2012-07-04 20:32:43 UTC (rev 692)
@@ -49,10 +49,11 @@
void
ErrorTest::testCreation()
{
- const cppdom::Error error(cppdom::xml_instream_error, "Blah", __FILE__, __LINE__);
+ std::string errFile = __FILE__;
+ const cppdom::Error error(cppdom::xml_instream_error, "Blah", errFile, __LINE__);
CPPUNIT_ASSERT(error.getError() == cppdom::xml_instream_error);
- CPPUNIT_ASSERT(error.getStrError() == "error in the infile stream");
- CPPUNIT_ASSERT(error.getString() == "error in the infile stream: Blah");
- CPPUNIT_ASSERT(error.getInfo() == "test/suite/TestCases/ErrorTest.cpp:52");
+ CPPUNIT_ASSERT_EQUAL(std::string("error in the infile stream"), error.getStrError());
+ CPPUNIT_ASSERT_EQUAL(std::string("error in the infile stream: Blah"), error.getString());
+ CPPUNIT_ASSERT_EQUAL(errFile + std::string(":53"), error.getInfo());
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pat...@us...> - 2012-07-04 20:32:10
|
Revision: 691
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=691&view=rev
Author: patrickh
Date: 2012-07-04 20:32:04 +0000 (Wed, 04 Jul 2012)
Log Message:
-----------
MFT [r688]: Fix the test suite build on Linux.
Revision Links:
--------------
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=688&view=rev
Modified Paths:
--------------
branches/1.2/test/suite/runner.cpp
Modified: branches/1.2/test/suite/runner.cpp
===================================================================
--- branches/1.2/test/suite/runner.cpp 2012-07-04 20:30:43 UTC (rev 690)
+++ branches/1.2/test/suite/runner.cpp 2012-07-04 20:32:04 UTC (rev 691)
@@ -53,6 +53,8 @@
#include <cstring>
+#include <string.h>
+
std::string getHostname(void);
int main(int argc, char** argv)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pat...@us...> - 2012-07-04 20:30:54
|
Revision: 690
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=690&view=rev
Author: patrickh
Date: 2012-07-04 20:30:43 +0000 (Wed, 04 Jul 2012)
Log Message:
-----------
Add the CMake build developed by Ryan Pavlik.
Modified Paths:
--------------
trunk/ChangeLog
Added Paths:
-----------
trunk/CMakeLists.txt
trunk/cmake/
trunk/cmake/AboutTheseModules.cmake
trunk/cmake/BoostTestTargets.cmake
trunk/cmake/BoostTestTargetsDynamic.h
trunk/cmake/BoostTestTargetsIncluded.h
trunk/cmake/BoostTestTargetsStatic.h
trunk/cmake/BundleOSGPlugins.cmake
trunk/cmake/BundleOSGRuntime.cmake
trunk/cmake/BundleVRJ22Runtime.cmake
trunk/cmake/BundleVRJ30Runtime.cmake
trunk/cmake/CheckMacHIDAPI.cmake
trunk/cmake/CheckMacHIDAPI.cpp
trunk/cmake/CheckVersion.cmake
trunk/cmake/CleanDirectoryList.cmake
trunk/cmake/CleanLibraryList.cmake
trunk/cmake/CopyResourcesToBuildTree.cmake
trunk/cmake/CppcheckTargets.cmake
trunk/cmake/CreateDashboardScripts.cmake
trunk/cmake/CreateImportedTarget.cmake
trunk/cmake/CreateLaunchers.cmake
trunk/cmake/DashboardScript.cmake.in
trunk/cmake/DoxygenTargets.cmake
trunk/cmake/DoxygenTargets.doxyfile.in
trunk/cmake/EnableExtraCompilerWarnings.cmake
trunk/cmake/EnableProfiling.cmake
trunk/cmake/FileCopyTargets.cmake
trunk/cmake/FindALUT.cmake
trunk/cmake/FindBluez.cmake
trunk/cmake/FindCPPDOM.cmake
trunk/cmake/FindDCubed.cmake
trunk/cmake/FindFlagpoll.cmake
trunk/cmake/FindGDB.cmake
trunk/cmake/FindGHOST.cmake
trunk/cmake/FindGLUI.cmake
trunk/cmake/FindGLUT.cmake
trunk/cmake/FindGMTL.cmake
trunk/cmake/FindGPM.cmake
trunk/cmake/FindGadgeteer12.cmake
trunk/cmake/FindGadgeteer20.cmake
trunk/cmake/FindGlove5DT.cmake
trunk/cmake/FindHIDAPI.cmake
trunk/cmake/FindJCCL12.cmake
trunk/cmake/FindJCCL14.cmake
trunk/cmake/FindJtTk.cmake
trunk/cmake/FindJtTk.stampkey.cmake.in
trunk/cmake/FindLAPACKLibs.cmake
trunk/cmake/FindLibusb1.cmake
trunk/cmake/FindLuabind.cmake
trunk/cmake/FindLyX.cmake
trunk/cmake/FindMacHID.cmake
trunk/cmake/FindOpenCV.cmake
trunk/cmake/FindOpenHaptics.cmake
trunk/cmake/FindOpenHaptics.cpp
trunk/cmake/FindParasolid.cmake
trunk/cmake/FindSonix12.cmake
trunk/cmake/FindSonix14.cmake
trunk/cmake/FindTR1.cmake
trunk/cmake/FindTooN.cmake
trunk/cmake/FindTooNtag.cmake
trunk/cmake/FindTweek12.cmake
trunk/cmake/FindTweek14.cmake
trunk/cmake/FindVPR20.cmake
trunk/cmake/FindVPR22.cmake
trunk/cmake/FindVPS.cmake
trunk/cmake/FindVRJ22.cmake
trunk/cmake/FindVRJ30.cmake
trunk/cmake/FindVRJOGL22.cmake
trunk/cmake/FindVRJOGL30.cmake
trunk/cmake/FindVRJuggler.cmake
trunk/cmake/FindVRJuggler22.cmake
trunk/cmake/FindVRJuggler30.cmake
trunk/cmake/FindVRPN.cmake
trunk/cmake/FindVirtuoseAPI.cmake
trunk/cmake/FindVirtuoseVPP.cmake
trunk/cmake/FindWiiSCAAT.cmake
trunk/cmake/FindWiiUse.cmake
trunk/cmake/FindWinHID.cmake
trunk/cmake/Findargp.cmake
trunk/cmake/Findcppcheck.cmake
trunk/cmake/Findcppcheck.cpp
trunk/cmake/Findcppunit.cmake
trunk/cmake/Findcutil.cmake
trunk/cmake/Finddb2pdf.cmake
trunk/cmake/FindosgLua.cmake
trunk/cmake/Findquatlib.cmake
trunk/cmake/GetCPUDetails.cmake
trunk/cmake/GetCompilerInfoString.cmake
trunk/cmake/GetDirectoryList.cmake
trunk/cmake/GetFileList.cmake
trunk/cmake/GetForceIncludeDefinitions.cmake
trunk/cmake/GetGitRevisionDescription.cmake
trunk/cmake/GetGitRevisionDescription.cmake.in
trunk/cmake/GetSubprojectStatus.cmake
trunk/cmake/LICENSE_1_0.txt
trunk/cmake/Licensing.cmake
trunk/cmake/ListCombinations.cmake
trunk/cmake/ListFilter.cmake
trunk/cmake/LuaTargets.cmake
trunk/cmake/MSVCMultipleProcessCompile.cmake
trunk/cmake/MSVCStaticRuntime.cmake
trunk/cmake/MSVCVerboseLinking.cmake
trunk/cmake/MakeVRJugglerAppBundle.cmake
trunk/cmake/MakeVRJugglerAppBundle30.cmake
trunk/cmake/OptionRequires.cmake
trunk/cmake/PrefixListGlob.cmake
trunk/cmake/ProgramFilesGlob.cmake
trunk/cmake/README.markdown
trunk/cmake/ResetConfigurations.cmake
trunk/cmake/SearchProgramFilesForOpenSceneGraph.cmake
trunk/cmake/SetDefaultBuildType.cmake
trunk/cmake/SplitLibraryList.cmake
trunk/cmake/StampSourcesWithVersion.cmake
trunk/cmake/StampSourcesWithVersion.sed.in
trunk/cmake/TCHARWorkaround.cmake
trunk/cmake/UseBackportedModules.cmake
trunk/cmake/UseTR1.cmake
trunk/cmake/WarningDev.cmake
trunk/cmake/cmake-2.8.0-modules/
trunk/cmake/cmake-2.8.0-modules/features/
trunk/cmake/cmake-2.8.0-modules/features/SelectLibraryConfigurations.cmake
trunk/cmake/cmake-2.8.0-modules/osg/
trunk/cmake/cmake-2.8.0-modules/osg/FindOpenSceneGraph.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindOpenThreads.cmake
trunk/cmake/cmake-2.8.0-modules/osg/Findosg.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindosgAnimation.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindosgDB.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindosgFX.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindosgGA.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindosgIntrospection.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindosgManipulator.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindosgParticle.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindosgProducer.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindosgShadow.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindosgSim.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindosgTerrain.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindosgText.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindosgUtil.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindosgViewer.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindosgVolume.cmake
trunk/cmake/cmake-2.8.0-modules/osg/FindosgWidget.cmake
trunk/cmake/cmake-2.8.0-modules/osg/Findosg_functions.cmake
trunk/cmake/cmake-2.8.1-modules/
trunk/cmake/cmake-2.8.1-modules/patchctestbug10149/
trunk/cmake/cmake-2.8.1-modules/patchctestbug10149/CTest.cmake
trunk/cmake/cmake-2.8.1-modules/patchctestbug10149/CTestScriptMode.cmake
trunk/cmake/cmake-2.8.1-modules/patchctestbug10149/CTestTargets.cmake
trunk/cmake/cmake-2.8.3-modules/
trunk/cmake/cmake-2.8.3-modules/FixWinInstallPrefix.cmake
trunk/cmake/cmake-2.8.3-modules/autoinclude.cmake
trunk/cmake/cmake-2.8.4-modules/
trunk/cmake/cmake-2.8.4-modules/ImproveEclipseGCCErrors.cmake
trunk/cmake/cmake-2.8.4-modules/autoinclude.cmake
trunk/cmake/cmake-2.8.4-modules/boost/
trunk/cmake/cmake-2.8.4-modules/boost/FindBoost.cmake
trunk/cmake/cmake-2.9.0-modules/
trunk/cmake/cmake-2.9.0-modules/RequireOutOfSourceBuild.cmake
trunk/cmake/cmake-2.9.0-modules/autoinclude.cmake
trunk/cmake/export-to-directory.sh
trunk/cmake/ghost-fake-stl/
trunk/cmake/ghost-fake-stl/iostream.h
trunk/cmake/ghost-fake-stl/list.h
trunk/cmake/ghost-fake-stl/set.h
trunk/cmake/ghost-fake-stl/vector.h
trunk/cmake/launcher-templates/
trunk/cmake/launcher-templates/genericlauncher.cmd.in
trunk/cmake/launcher-templates/genericlauncher.sh.in
trunk/cmake/launcher-templates/launcher.env.cmd.in
trunk/cmake/launcher-templates/launcher.env.sh.in
trunk/cmake/launcher-templates/perconfig.vcproj.user.in
trunk/cmake/launcher-templates/targetlauncher.cmd.in
trunk/cmake/launcher-templates/targetlauncher.sh.in
trunk/cmake/launcher-templates/vcproj.user.in
trunk/cmake/module-docs/
trunk/cmake/module-docs/AllModuleDependencies.dot
trunk/cmake/module-docs/Example-FindMyPackage-UsingImportedTargets.cmake
trunk/cmake/module-docs/Example-FindMyPackage.cmake
trunk/cmake/module-docs/Example-FindMySimplePackage.cmake
trunk/cmake/module-help.html
trunk/cmake/module-help.txt
trunk/cmake/nested_targets/
trunk/cmake/nested_targets/DCubed/
trunk/cmake/nested_targets/DCubed/CMakeLists.txt
trunk/cmake/nested_targets/DCubed/d3ew_p/
trunk/cmake/nested_targets/DCubed/d3ew_p/CMakeLists.txt
trunk/cmake/nested_targets/DCubed/d3ew_scene/
trunk/cmake/nested_targets/DCubed/d3ew_scene/CMakeLists.txt
trunk/cmake/nested_targets/OpenHaptics/
trunk/cmake/nested_targets/OpenHaptics/CMakeLists.txt
trunk/cmake/nested_targets/Parasolid/
trunk/cmake/nested_targets/Parasolid/CMakeLists.txt
trunk/cmake/nested_targets/cutil/
trunk/cmake/nested_targets/cutil/CMakeLists.txt
trunk/cmake/package/
trunk/cmake/package/macosx/
trunk/cmake/package/macosx/Resources/
trunk/cmake/package/macosx/Resources/en.lproj/
trunk/cmake/package/macosx/Resources/en.lproj/MainMenu.nib/
trunk/cmake/package/macosx/Resources/en.lproj/MainMenu.nib/classes.nib
trunk/cmake/package/macosx/Resources/en.lproj/MainMenu.nib/info.nib
trunk/cmake/package/macosx/Resources/vrjuggler.plist
trunk/cmake/package/macosx/VRJuggler22BundleInfo.plist.in
trunk/cmake/package/macosx/VRJuggler30BundleInfo.plist.in
trunk/cmake/package/macosx/fixupbundle.cmake.in
trunk/cmake/package-licensing/
trunk/cmake/package-licensing/Boost.cmake
trunk/cmake/package-licensing/Eigen.cmake
trunk/cmake/package-licensing/FLTK.cmake
trunk/cmake/package-licensing/Lua.cmake
trunk/cmake/package-licensing/LuaBind.cmake
trunk/cmake/package-licensing/OpenHapticsAcademicEdition.cmake
trunk/cmake/package-licensing/OpenSceneGraph.cmake
trunk/cmake/package-licensing/PhysicalModelingUtils.cmake
trunk/cmake/package-licensing/Qt-LGPL.cmake
trunk/cmake/package-licensing/VPS.cmake
trunk/cmake/package-licensing/VRJuggLua.cmake
trunk/cmake/package-licensing/VRJuggler.cmake
trunk/cmake/package-licensing/VirtuoseAPI.cmake
trunk/cmake/package-licensing/osgLua.cmake
trunk/cmake/update-help.sh
trunk/cmake/workarounds/
trunk/cmake/workarounds/mac-alut-framework/
trunk/cmake/workarounds/mac-alut-framework/AL/
trunk/cmake/workarounds/mac-alut-framework/AL/alut.h
trunk/cmake/workarounds/mac-gl/
trunk/cmake/workarounds/mac-gl/GL/
trunk/cmake/workarounds/mac-gl/GL/gl.h
trunk/cmake/workarounds/mac-gl/GL/glui.h
trunk/cmake/workarounds/mac-gl/GL/glut.h
trunk/cmake/workarounds/mac-openal/
trunk/cmake/workarounds/mac-openal/AL/
trunk/cmake/workarounds/mac-openal/AL/al.h
trunk/cmake/workarounds/mac-openal/AL/alc.h
trunk/cmake/workarounds/tchar/
trunk/cmake/workarounds/tchar/tchar.h
trunk/cppdom/CMakeLists.txt
trunk/test/CMakeLists.txt
trunk/test/suite/CMakeLists.txt
Added: trunk/CMakeLists.txt
===================================================================
--- trunk/CMakeLists.txt (rev 0)
+++ trunk/CMakeLists.txt 2012-07-04 20:30:43 UTC (rev 690)
@@ -0,0 +1,100 @@
+# CMake-based build system for cppdom
+# 2009-2011 Ryan Pavlik <rp...@ia...>
+# http://academic.cleardefinition.com/
+# Iowa State University HCI Graduate Program/VRAC
+
+cmake_minimum_required(VERSION 2.6.2)
+
+# Set package properties
+project(cppdom)
+
+set(CPACK_PACKAGE_VERSION_MAJOR "1")
+set(CPACK_PACKAGE_VERSION_MINOR "0")
+set(CPACK_PACKAGE_VERSION_PATCH "3")
+set(CPACK_PACKAGE_VERSION
+ "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
+set(VERSION_UNDERSCORES "${CPACK_PACKAGE_VERSION_MAJOR}_${CPACK_PACKAGE_VERSION_MINOR}_${CPACK_PACKAGE_VERSION_PATCH}")
+###
+# Set up options
+###
+
+# Define directories
+set(BIN_DIR bin)
+set(ARCH_DIR lib)
+set(FLAGPOLL_INFO_DIR share/flagpoll)
+if(WIN32)
+ set(LIB_DIR bin)
+ set(INCLUDE_DIR include)
+else()
+ set(LIB_DIR lib)
+ set(INCLUDE_DIR include/cppdom-${CPACK_PACKAGE_VERSION})
+endif()
+
+# Create flagpoll file
+set(provides "cppdom")
+set(version "${CPACK_PACKAGE_VERSION}")
+set(prefix "\${fp_file_cwd}/../..")
+set(exec_prefix "\${prefix}")
+set(includedir "\${fp_file_cwd}/../../${INCLUDE_DIR}")
+set(libdir "\${fp_file_cwd}/../../${LIB_DIR}")
+# TODO this is not ideal/complete
+if(CMAKE_SIZEOF_VOID_P EQUAL 8)
+ set(arch "x86_64")
+else()
+ set(arch "x86")
+endif()
+if(CMAKE_COMPILER_IS_GNUCXX)
+ set(cppdom_cxxflags "-Wno-deprecated")
+ set(include_path_flag "-I")
+ set(cppdom_libs "-lcppdom-${VERSION_UNDERSCORES}")
+ set(lib_path_flag "-L")
+elseif(MSVC)
+ set(include_path_flag "/I")
+ set(lib_path_flag "/L")
+else()
+ message(FATAL_ERROR "Compiler not recognized - can't generate values for Flagpoll file")
+endif()
+
+configure_file(cppdom.fpc.in "${CMAKE_CURRENT_BINARY_DIR}/cppdom.fpc" @ONLY)
+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/cppdom.fpc"
+ DESTINATION ${FLAGPOLL_INFO_DIR}
+ COMPONENT Development)
+
+###
+# Perform build configuration of dependencies
+###
+list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
+include(UseBackportedModules)
+include(CTest)
+
+find_package(Boost)
+
+###
+# Build the project
+###
+
+include_directories(.)
+add_subdirectory(cppdom)
+
+add_subdirectory(test)
+
+###
+# Set packaging options (for CPack)
+###
+
+# Choose desired package generators
+if(APPLE)
+ set(CPACK_GENERATOR DragNDrop)
+ set(CPACK_SOURCE_GENERATOR ZIP)
+elseif(WIN32)
+ set(CPACK_SOURCE_GENERATOR ZIP)
+else()
+ set(CPACK_SOURCE_GENERATOR TARGZ)
+endif()
+
+# Include the packaging system now that we have it all set up
+include(CPack)
+
+###
+# End Packaging
+###
Property changes on: trunk/CMakeLists.txt
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2012-07-04 20:24:18 UTC (rev 689)
+++ trunk/ChangeLog 2012-07-04 20:30:43 UTC (rev 690)
@@ -1,5 +1,8 @@
DATE AUTHOR CHANGE
---------- ----------- -------------------------------------------------------
+2012-07-04 patrickh Add CMake build.
+ Developed by Ryan Pavlik.
+
[Version 1.2.0 released - 5.1.2011]============================================
2011-04-23 patrickh SCons 2.0 is now the minimum required version.
Added: trunk/cmake/AboutTheseModules.cmake
===================================================================
--- trunk/cmake/AboutTheseModules.cmake (rev 0)
+++ trunk/cmake/AboutTheseModules.cmake 2012-07-04 20:30:43 UTC (rev 690)
@@ -0,0 +1,34 @@
+# - Dummy module containing information about these modules for the HELP file
+# This file documents a snapshot of the cmake-modules available from
+# http://github.com/rpavlik/cmake-modules/
+# The latest version of these modules can always be found there.
+# Additionally, you can find instructions on how to integrate these modules
+# into your own project either in the README.markdown file in this directory,
+# or on the GitHub page listed above (scroll to the bottom to see the README
+# rendered attractively).
+#
+# In short: Modules of the form "FindSomeName.cmake" are considered to be
+# "find modules", and are intended to be used indirectly by calling find_package,
+# not by calling include. Thus, you'll want to do something like:
+# find_package(SomeName)
+# They define a number of variables allowing you to use whatever software
+# they search for, such as include directories and libraries. A few also
+# define some functions for your use.
+#
+# All other modules provide functionality, either immediately upon including
+# them, or by defining functions that perform some task of varying utility
+# that you can use any time after including them. Note that if a module
+# has the filename, for example, cmake/BoostTestTargets.cmake, you only
+# need to call:
+# include(BoostTestTargets)
+#
+# For more information, see the documentation for individual modules, the
+# cmake-modules github page, and/or the upstream CMake documentation at
+# http://www.cmake.org/cmake/help/cmake-2-8-docs.html
+#
+#
+# Copyright Iowa State University 2009-2010.
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
Property changes on: trunk/cmake/AboutTheseModules.cmake
___________________________________________________________________
Added: svn:eol-style
+ native
Added: trunk/cmake/BoostTestTargets.cmake
===================================================================
--- trunk/cmake/BoostTestTargets.cmake (rev 0)
+++ trunk/cmake/BoostTestTargets.cmake 2012-07-04 20:30:43 UTC (rev 690)
@@ -0,0 +1,274 @@
+# - Add tests using boost::test
+#
+# Add this line to your test files in place of including a basic boost test header:
+# #include <BoostTestTargetConfig.h>
+#
+# If you cannot do that and must use the included form for a given test,
+# include the line
+# // OVERRIDE_BOOST_TEST_INCLUDED_WARNING
+# in the same file with the boost test include.
+#
+# include(BoostTestTargets)
+# add_boost_test(<testdriver_name> SOURCES <source1> [<more sources...>]
+# [FAIL_REGULAR_EXPRESSION <additional fail regex>]
+# [LAUNCHER <generic launcher script>]
+# [LIBRARIES <library> [<library>...]]
+# [RESOURCES <resource> [<resource>...]]
+# [TESTS <testcasename> [<testcasename>...]])
+#
+# If for some reason you need access to the executable target created,
+# it can be found in ${${testdriver_name}_TARGET_NAME} as specified when
+# you called add_boost_test
+#
+# Requires CMake 2.6 or newer (uses the 'function' command)
+#
+# Requires:
+# GetForceIncludeDefinitions
+# CopyResourcesToBuildTree
+#
+# Original Author:
+# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
+# http://academic.cleardefinition.com
+# Iowa State University HCI Graduate Program/VRAC
+#
+# Copyright Iowa State University 2009-2010.
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
+if(__add_boost_test)
+ return()
+endif()
+set(__add_boost_test YES)
+
+set(BOOST_TEST_TARGET_PREFIX "boosttest")
+
+if(NOT Boost_FOUND)
+ find_package(Boost 1.34.0 QUIET)
+endif()
+if("${Boost_VERSION}0" LESS "1034000")
+ set(_shared_msg
+ "NOTE: boost::test-based targets and tests cannot "
+ "be added: boost >= 1.34.0 required but not found. "
+ "(found: '${Boost_VERSION}'; want >=103400) ")
+ if(BUILD_TESTING)
+ message(FATAL_ERROR
+ ${_shared_msg}
+ "You may disable BUILD_TESTING to continue without the "
+ "tests.")
+ else()
+ message(STATUS
+ ${_shared_msg}
+ "BUILD_TESTING disabled, so continuing anyway.")
+ endif()
+endif()
+
+include(GetForceIncludeDefinitions)
+include(CopyResourcesToBuildTree)
+
+if(Boost_FOUND AND NOT "${Boost_VERSION}0" LESS "1034000")
+ set(_boosttesttargets_libs)
+ set(_boostConfig "BoostTestTargetsIncluded.h")
+ if(NOT Boost_UNIT_TEST_FRAMEWORK_LIBRARY)
+ find_package(Boost 1.34.0 QUIET COMPONENTS unit_test_framework)
+ endif()
+ if(Boost_UNIT_TEST_FRAMEWORK_LIBRARY)
+ set(_boosttesttargets_libs "${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}")
+ if(Boost_USE_STATIC_LIBS)
+ set(_boostConfig "BoostTestTargetsStatic.h")
+ else()
+ if(NOT APPLE)
+ set(_boostConfig "BoostTestTargetsDynamic.h")
+ endif()
+ endif()
+ endif()
+ get_filename_component(_moddir ${CMAKE_CURRENT_LIST_FILE} PATH)
+ configure_file("${_moddir}/${_boostConfig}"
+ "${CMAKE_CURRENT_BINARY_DIR}/BoostTestTargetConfig.h"
+ COPYONLY)
+ include_directories("${CMAKE_CURRENT_BINARY_DIR}")
+endif()
+
+function(add_boost_test _name)
+ if(NOT BUILD_TESTING)
+ return()
+ endif()
+ if("${CMAKE_VERSION}" VERSION_LESS "2.8.0")
+ if(NOT "${_boost_test_cmakever_pestered}x" EQUALS "${CMAKE_VERSION}x")
+ message(STATUS
+ "Not adding boost::test targets - CMake 2.8.0 or newer required, using ${CMAKE_VERSION}")
+ set(_boost_test_cmakever_pestered
+ "${CMAKE_VERSION}"
+ CACHE
+ INTERNAL
+ ""
+ FORCE)
+ endif()
+ return()
+ endif()
+
+ # parse arguments
+ set(_nowhere)
+ set(_curdest _nowhere)
+ set(_val_args
+ SOURCES
+ FAIL_REGULAR_EXPRESSION
+ LAUNCHER
+ LIBRARIES
+ RESOURCES
+ TESTS)
+ set(_bool_args
+ USE_COMPILED_LIBRARY)
+ foreach(_arg ${_val_args} ${_bool_args})
+ set(${_arg})
+ endforeach()
+ foreach(_element ${ARGN})
+ list(FIND _val_args "${_element}" _val_arg_find)
+ list(FIND _bool_args "${_element}" _bool_arg_find)
+ if("${_val_arg_find}" GREATER "-1")
+ set(_curdest "${_element}")
+ elseif("${_bool_arg_find}" GREATER "-1")
+ set("${_element}" ON)
+ set(_curdest _nowhere)
+ else()
+ list(APPEND ${_curdest} "${_element}")
+ endif()
+ endforeach()
+
+ if(_nowhere)
+ message(FATAL_ERROR "Syntax error in use of add_boost_test!")
+ endif()
+
+ if(NOT SOURCES)
+ message(FATAL_ERROR
+ "Syntax error in use of add_boost_test: at least one source file required!")
+ endif()
+
+ if(Boost_FOUND AND NOT "${Boost_VERSION}0" LESS "1034000")
+
+ include_directories(${Boost_INCLUDE_DIRS})
+
+ set(includeType)
+ foreach(src ${SOURCES})
+ file(READ ${src} thefile)
+ if("${thefile}" MATCHES ".*BoostTestTargetConfig.h.*")
+ set(includeType CONFIGURED)
+ set(includeFileLoc ${src})
+ break()
+ elseif("${thefile}" MATCHES ".*boost/test/included/unit_test.hpp.*")
+ set(includeType INCLUDED)
+ set(includeFileLoc ${src})
+ set(_boosttesttargets_libs) # clear this out - linking would be a bad idea
+ if(NOT
+ "${thefile}"
+ MATCHES
+ ".*OVERRIDE_BOOST_TEST_INCLUDED_WARNING.*")
+ message("Please replace the include line in ${src} with this alternate include line instead:")
+ message(" \#include <BoostTestTargetConfig.h>")
+ message("Once you've saved your changes, re-run CMake. (See BoostTestTargets.cmake for more info)")
+ endif()
+ break()
+ endif()
+ endforeach()
+
+ if(NOT _boostTestTargetsNagged${_name} STREQUAL "${includeType}")
+ if("includeType" STREQUAL "CONFIGURED")
+ message(STATUS
+ "Test '${_name}' uses the CMake-configurable form of the boost test framework - congrats! (Including File: ${includeFileLoc})")
+ elseif("${includeType}" STREQUAL "INCLUDED")
+ message("In test '${_name}': ${includeFileLoc} uses the 'included' form of the boost unit test framework.")
+ else()
+ message("In test '${_name}': Didn't detect the CMake-configurable boost test include.")
+ message("Please replace your existing boost test include in that test with the following:")
+ message(" \#include <BoostTestTargetConfig.h>")
+ message("Once you've saved your changes, re-run CMake. (See BoostTestTargets.cmake for more info)")
+ endif()
+ endif()
+ set(_boostTestTargetsNagged${_name}
+ "${includeType}"
+ CACHE
+ INTERNAL
+ ""
+ FORCE)
+
+
+ if(RESOURCES)
+ list(APPEND SOURCES ${RESOURCES})
+ endif()
+
+ # Generate a unique target name, using the relative binary dir
+ # and provided name. (transform all / into _ and remove all other
+ # non-alphabet characters)
+ file(RELATIVE_PATH
+ targetpath
+ "${CMAKE_BINARY_DIR}"
+ "${CMAKE_CURRENT_BINARY_DIR}")
+ string(REGEX REPLACE "[^A-Za-z/_]" "" targetpath "${targetpath}")
+ string(REPLACE "/" "_" targetpath "${targetpath}")
+
+ set(_target_name ${BOOST_TEST_TARGET_PREFIX}-${targetpath}-${_name})
+ set(${_name}_TARGET_NAME "${_target_name}" PARENT_SCOPE)
+
+ # Build the test.
+ add_executable(${_target_name} ${SOURCES})
+
+ list(APPEND LIBRARIES ${_boosttesttargets_libs})
+
+ if(LIBRARIES)
+ target_link_libraries(${_target_name} ${LIBRARIES})
+ endif()
+
+ if(RESOURCES)
+ set_property(TARGET ${_target_name} PROPERTY RESOURCE ${RESOURCES})
+ copy_resources_to_build_tree(${_target_name})
+ endif()
+
+ if(NOT Boost_TEST_FLAGS)
+# set(Boost_TEST_FLAGS --catch_system_error=yes --output_format=XML)
+ set(Boost_TEST_FLAGS --catch_system_error=yes)
+ endif()
+
+ # TODO: Figure out why only recent boost handles individual test running properly
+
+ if(LAUNCHER)
+ set(_test_command ${LAUNCHER} "\$<TARGET_FILE:${_target_name}>")
+ else()
+ set(_test_command ${_target_name})
+ endif()
+
+ if(TESTS AND ( "${Boost_VERSION}" VERSION_GREATER "103799" ))
+ foreach(_test ${TESTS})
+ add_test(NAME
+ ${_name}-${_test}
+ COMMAND
+ ${_test_command}
+ --run_test=${_test}
+ ${Boost_TEST_FLAGS})
+ if(FAIL_REGULAR_EXPRESSION)
+ set_tests_properties(${_name}-${_test}
+ PROPERTIES
+ FAIL_REGULAR_EXPRESSION
+ "${FAIL_REGULAR_EXPRESSION}")
+ endif()
+ endforeach()
+ else()
+ add_test(NAME
+ ${_name}-boost_test
+ COMMAND
+ ${_test_command}
+ ${Boost_TEST_FLAGS})
+ if(FAIL_REGULAR_EXPRESSION)
+ set_tests_properties(${_name}-${_test}
+ PROPERTIES
+ FAIL_REGULAR_EXPRESSION
+ "${FAIL_REGULAR_EXPRESSION}")
+ endif()
+ endif()
+
+ # CppCheck the test if we can.
+ if(COMMAND add_cppcheck)
+ add_cppcheck(${_target_name} STYLE UNUSED_FUNCTIONS)
+ endif()
+
+ endif()
+endfunction()
Property changes on: trunk/cmake/BoostTestTargets.cmake
___________________________________________________________________
Added: svn:eol-style
+ native
Added: trunk/cmake/BoostTestTargetsDynamic.h
===================================================================
--- trunk/cmake/BoostTestTargetsDynamic.h (rev 0)
+++ trunk/cmake/BoostTestTargetsDynamic.h 2012-07-04 20:30:43 UTC (rev 690)
@@ -0,0 +1,9 @@
+// Small header computed by CMake to set up boost test.
+// include AFTER #define BOOST_TEST_MODULE whatever
+// but before any other boost test includes.
+
+// Using the Boost UTF dynamic library
+
+#define BOOST_TEST_DYN_LINK
+#include <boost/test/unit_test.hpp>
+
Property changes on: trunk/cmake/BoostTestTargetsDynamic.h
___________________________________________________________________
Added: svn:eol-style
+ native
Added: trunk/cmake/BoostTestTargetsIncluded.h
===================================================================
--- trunk/cmake/BoostTestTargetsIncluded.h (rev 0)
+++ trunk/cmake/BoostTestTargetsIncluded.h 2012-07-04 20:30:43 UTC (rev 690)
@@ -0,0 +1,7 @@
+// Small header computed by CMake to set up boost test.
+// include AFTER #define BOOST_TEST_MODULE whatever
+// but before any other boost test includes.
+
+// Using the Boost UTF included framework
+
+#include <boost/test/included/unit_test.hpp>
Property changes on: trunk/cmake/BoostTestTargetsIncluded.h
___________________________________________________________________
Added: svn:eol-style
+ native
Added: trunk/cmake/BoostTestTargetsStatic.h
===================================================================
--- trunk/cmake/BoostTestTargetsStatic.h (rev 0)
+++ trunk/cmake/BoostTestTargetsStatic.h 2012-07-04 20:30:43 UTC (rev 690)
@@ -0,0 +1,7 @@
+// Small header computed by CMake to set up boost test.
+// include AFTER #define BOOST_TEST_MODULE whatever
+// but before any other boost test includes.
+
+// Using the Boost UTF static library
+
+#include <boost/test/unit_test.hpp>
Property changes on: trunk/cmake/BoostTestTargetsStatic.h
___________________________________________________________________
Added: svn:eol-style
+ native
Added: trunk/cmake/BundleOSGPlugins.cmake
===================================================================
--- trunk/cmake/BundleOSGPlugins.cmake (rev 0)
+++ trunk/cmake/BundleOSGPlugins.cmake 2012-07-04 20:30:43 UTC (rev 690)
@@ -0,0 +1,83 @@
+# - Provide access to the OpenSceneGraph runtime files for bundling in
+# an installation or package.
+#
+# Sets these variables:
+# - OSGDB_PLUGINS_RELEASE
+# - OSGDB_PLUGINS_DEBUG
+# - OSGWRAPPER_PLUGINS_RELEASE
+# - OSGWRAPPER_PLUGINS_DEBUG
+# - OSG_RUNTIME_LIBRARY_DIR
+# - OSG_PATH_TO_PLUGINS
+#
+# Creates this function:
+# - install_osg_plugins( {varNameForOutputFilenames} )
+#
+# Requires these CMake modules:
+# no additional modules required
+#
+# Original Author:
+# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
+# http://academic.cleardefinition.com
+# Iowa State University HCI Graduate Program/VRAC
+#
+# Copyright Iowa State University 2009-2010.
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
+
+function(_osgbundle_split_debug_versions releasevar debugvar)
+ set(release)
+ set(debug)
+ foreach(fn ${ARGN})
+ get_filename_component(name "${fn}" NAME_WE)
+ if(${name} MATCHES "d$")
+ list(APPEND debug "${fn}")
+ else()
+ list(APPEND release "${fn}")
+ endif()
+ endforeach()
+ set(${releasevar} ${release} PARENT_SCOPE)
+ set(${debugvar} ${debug} PARENT_SCOPE)
+endfunction()
+
+function(_osgbundle_find_plugins varprefix filenameprefix)
+ file(GLOB
+ all
+ "${OSG_RUNTIME_LIBRARY_DIR}/osgPlugins-${OPENSCENEGRAPH_VERSION}/${filenameprefix}*${CMAKE_SHARED_LIBRARY_SUFFIX}")
+ _osgbundle_split_debug_versions(${varprefix}_PLUGINS_RELEASE
+ ${varprefix}_PLUGINS_DEBUG
+ ${all})
+ set(${varprefix}_PLUGINS_RELEASE
+ "${${varprefix}_PLUGINS_RELEASE}"
+ PARENT_SCOPE)
+ set(${varprefix}_PLUGINS_DEBUG
+ "${${varprefix}_PLUGINS_DEBUG}"
+ PARENT_SCOPE)
+endfunction()
+
+if(OPENSCENEGRAPH_FOUND)
+ if(WIN32)
+ get_filename_component(_osglibdir "${OSG_LIBRARY}" PATH)
+ get_filename_component(_osgroot "${_osglibdir}/.." ABSOLUTE)
+ set(OSG_RUNTIME_LIBRARY_DIR "${_osgroot}/bin")
+ set(OSG_PATH_TO_PLUGINS "bin/osgPlugins-${OPENSCENEGRAPH_VERSION}/")
+ else()
+ get_filename_component(_osglibdir "${OSG_LIBRARY}" PATH)
+ set(OSG_RUNTIME_LIBRARY_DIR "${_osglibdir}")
+ set(OSG_PATH_TO_PLUGINS "lib/osgPlugins-${OPENSCENEGRAPH_VERSION}/")
+ endif()
+ # Find the osgDB plugins
+ _osgbundle_find_plugins(OSGDB osgdb)
+ _osgbundle_find_plugins(OSGWRAPPER osgwrapper)
+endif()
+
+function(install_osg_plugins var)
+ set(INSTALLEDPLUGINS)
+ foreach(plugin ${OSGDB_PLUGINS_RELEASE} ${OSGWRAPPER_PLUGINS_RELEASE})
+ install(FILES "${plugin}" DESTINATION "${OSG_PATH_TO_PLUGINS}")
+ get_filename_component(name "${plugin}" NAME)
+ list(APPEND INSTALLEDPLUGINS "${OSG_PATH_TO_PLUGINS}/${name}")
+ endforeach()
+ set(${var} ${INSTALLEDPLUGINS} PARENT_SCOPE)
+endfunction()
Property changes on: trunk/cmake/BundleOSGPlugins.cmake
___________________________________________________________________
Added: svn:eol-style
+ native
Added: trunk/cmake/BundleOSGRuntime.cmake
===================================================================
--- trunk/cmake/BundleOSGRuntime.cmake (rev 0)
+++ trunk/cmake/BundleOSGRuntime.cmake 2012-07-04 20:30:43 UTC (rev 690)
@@ -0,0 +1,118 @@
+# - Include the OpenSceneGraph runtime files in an installation or built package.
+#
+# OSGRUNTIME_BUNDLE - Set to "yes" to enable this behavior
+# OSGRUNTIME_zlib1dll - Must be set to the location of zlib1.dll on Windows
+# OSGRUNTIME_zlib1ddll - Can be set to the location of zlib1d.dll (debug) on Windows.
+# If set, will be installed.
+#
+# Requires these CMake modules:
+# no additional modules required
+#
+# Original Author:
+# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
+# http://academic.cleardefinition.com
+# Iowa State University HCI Graduate Program/VRAC
+#
+# Copyright Iowa State University 2009-2010.
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
+function(_osgbundle_split_debug_versions releasevar debugvar)
+ set(release)
+ set(debug)
+ foreach(fn ${ARGN})
+ get_filename_component(name "${fn}" NAME_WE)
+ if(${name} MATCHES "d$")
+ list(APPEND debug "${fn}")
+ else()
+ list(APPEND release "${fn}")
+ endif()
+ endforeach()
+ set(${releasevar} ${release} PARENT_SCOPE)
+ set(${debugvar} ${debug} PARENT_SCOPE)
+endfunction()
+
+function(_osgbundle_find_plugins varprefix filenameprefix)
+ file(GLOB
+ all
+ "${OSG_RUNTIME_LIBRARY_DIR}/osgPlugins-${OPENSCENEGRAPH_VERSION}/${filenameprefix}*${CMAKE_SHARED_LIBRARY_SUFFIX}")
+ _osgbundle_split_debug_versions(${varprefix}_PLUGINS_RELEASE
+ ${varprefix}_PLUGINS_DEBUG
+ ${all})
+endfunction()
+
+if(OPENSCENEGRAPH_FOUND)
+ if(WIN32)
+ get_filename_component(_osglibdir "${OSG_LIBRARY}" PATH)
+ get_filename_component(_osgroot "${_osglibdir}/.." ABSOLUTE)
+ set(OSG_RUNTIME_LIBRARY_DIR "${_osgroot}/bin")
+ find_file(OSGBUNDLE_zlib1dll
+ zlib1.dll
+ PATHS
+ "${_osgroot}/bin"
+ "${_osgroot}/lib")
+ find_file(OSGBUNDLE_zlib1ddll
+ zlib1d.dll
+ PATHS
+ "${_osgroot}/bin"
+ "${_osgroot}/lib")
+ mark_as_advanced(OSGBUNDLE_zlib1dll OSGBUNDLE_zlib1ddll)
+ set(_osgbundle_required OSGBUNDLE_zlib1dll)
+ set(_osgbundle_platformOK on)
+ else()
+ get_filename_component(_osglibdir "${OSG_LIBRARY}" PATH)
+ set(OSG_RUNTIME_LIBRARY_DIR "${_osglibdir}")
+ set(_osgbundle_platformOK on)
+ endif()
+
+ # Find the osgDB plugins
+
+ _osgbundle_find_plugins(OSGDB osgdb)
+ _osgbundle_find_plugins(OSGWRAPPER osgwrapper)
+endif()
+
+
+
+if(_osgbundle_platformOK)
+ set(_osgbundle_caninstall on)
+ foreach(_var ${_osgbundle_required})
+ if(NOT ${_var})
+ # If we are missing a single required file, cut out now.
+ set(_osgbundle_caninstall off)
+ option(OSGRUNTIME_BUNDLE
+ "Install a local copy of the OpenSceneGraph runtime files with the project."
+ off)
+ endif()
+ endforeach()
+ if(_osgbundle_caninstall)
+ option(OSGRUNTIME_BUNDLE
+ "Install a local copy of the OpenSceneGraph runtime files with the project."
+ on)
+ endif()
+endif()
+
+mark_as_advanced(OSGRUNTIME_BUNDLE)
+
+if(OSGRUNTIME_BUNDLE AND OPENSCENEGRAPH_FOUND AND _osgbundle_caninstall)
+ if(WIN32)
+ set(DESTINATION bin)
+ install(FILES "${OSGBUNDLE_zlib1dll}"
+ DESTINATION ${DESTINATION})
+
+ if(OSGBUNDLE_zlib1ddll)
+ install(FILES "${OSGBUNDLE_zlib1ddll}"
+ DESTINATION ${DESTINATION})
+ endif()
+
+ else()
+ set(DESTINATION lib)
+ endif()
+
+ install(DIRECTORY "${_osgroot}/bin/" "${_osgroot}/lib/"
+ DESTINATION ${DESTINATION}
+ FILES_MATCHING
+
+ # Runtime files
+ PATTERN "*${CMAKE_SHARED_LIBRARY_SUFFIX}")
+endif()
Property changes on: trunk/cmake/BundleOSGRuntime.cmake
___________________________________________________________________
Added: svn:eol-style
+ native
Added: trunk/cmake/BundleVRJ22Runtime.cmake
===================================================================
--- trunk/cmake/BundleVRJ22Runtime.cmake (rev 0)
+++ trunk/cmake/BundleVRJ22Runtime.cmake 2012-07-04 20:30:43 UTC (rev 690)
@@ -0,0 +1,99 @@
+# - Include the VR Juggler runtime files in an installation or built package.
+#
+# VRJUGGLERRUNTIME_BUNDLE
+# VRJUGGLERRUNTIME_BUNDLE_DEBUG - set to yes to include debug dll's as well
+#
+# Requires these CMake modules:
+# FindVRJuggler22 and its dependencies
+#
+# Original Author:
+# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
+# http://academic.cleardefinition.com
+# Iowa State University HCI Graduate Program/VRAC
+#
+# Copyright Iowa State University 2009-2010.
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
+if(WIN32)
+ option(VRJUGGLERRUNTIME_BUNDLE
+ "Install a local copy of the VR Juggler runtime files with the project."
+ on)
+ option(VRJUGGLERRUNTIME_BUNDLE_DEBUG
+ "Install the VR Juggler debug runtime files as well."
+ off)
+ mark_as_advanced(VRJUGGLERRUNTIME_BUNDLE_DEBUG)
+else()
+ # TODO - how to handle when not on Windows?
+ #option(VRJUGGLERRUNTIME_BUNDLE "Install a local copy of the VR Juggler runtime files with the project." off)
+endif()
+
+mark_as_advanced(VRJUGGLERRUNTIME_BUNDLE VRJUGGLERRUNTIME_BUNDLE_DEBUG)
+
+if(VRJUGGLERRUNTIME_BUNDLE AND VRJUGGLER22_FOUND)
+ if(WIN32)
+ get_filename_component(_vrjlibdir "${VRJ22_LIBRARY_RELEASE}" PATH)
+ get_filename_component(_vrjroot "${_vrjlibdir}/../" ABSOLUTE)
+
+ # TODO - make sure gadgeteer and sonix can find their DSO's at runtime...
+
+ foreach(_dir bin lib)
+ if(VRJUGGLERRUNTIME_BUNDLE_DEBUG)
+ install(DIRECTORY "${_vrjroot}/${_dir}/"
+ DESTINATION bin
+ PATTERN "*.lib" EXCLUDE # exclude static and link libraries
+ PATTERN "*.exe" EXCLUDE # exclude unneeded executables
+ PATTERN "*.py" EXCLUDE # exclude unneeded python executables
+ PATTERN "*.pyc" EXCLUDE # exclude unneeded python executables
+ )
+ else()
+ install(DIRECTORY ${_vrjroot}/${_dir}/
+ DESTINATION bin
+ PATTERN "*.lib" EXCLUDE # exclude static and link libraries
+ PATTERN "*.exe" EXCLUDE # exclude unneeded executables
+ PATTERN "*.py" EXCLUDE # exclude unneeded python executables
+ PATTERN "*.pyc" EXCLUDE # exclude unneeded python executables
+
+ PATTERN "*d.dll" EXCLUDE # exclude debug dll's
+ PATTERN "*-gd-*.dll" EXCLUDE # exclude Boost debug dll's
+ )
+ endif()
+
+ endforeach()
+
+ install(DIRECTORY ${_vrjroot}/share/
+ DESTINATION share
+ FILES_MATCHING
+
+ # Runtime files
+ PATTERN "*.dll"
+ PATTERN "*.jar"
+
+ # Data files
+ PATTERN "*.wav"
+ PATTERN "*.xml"
+ PATTERN "*.xsl"
+ PATTERN "*.xsd"
+ PATTERN "*.flt"
+ PATTERN "*.dat"
+ PATTERN "*.table"
+
+
+ # Config files
+ PATTERN "*.jdef"
+ PATTERN "*.jconf"
+ PATTERN "*.cfg"
+ PATTERN "hosts.allow"
+
+ # Other Files
+ PATTERN "*.txt"
+ PATTERN "COPYING*"
+ PATTERN "ChangeLog"
+ )
+
+ endif()
+
+
+
+endif()
Property changes on: trunk/cmake/BundleVRJ22Runtime.cmake
___________________________________________________________________
Added: svn:eol-style
+ native
Added: trunk/cmake/BundleVRJ30Runtime.cmake
===================================================================
--- trunk/cmake/BundleVRJ30Runtime.cmake (rev 0)
+++ trunk/cmake/BundleVRJ30Runtime.cmake 2012-07-04 20:30:43 UTC (rev 690)
@@ -0,0 +1,96 @@
+# - Include the VR Juggler runtime files in an installation or built package.
+#
+# VRJUGGLERRUNTIME_BUNDLE
+# VRJUGGLERRUNTIME_BUNDLE_DEBUG - set to yes to include debug dll's as well
+#
+# Requires these CMake modules:
+# FindVRJuggler22 and its dependencies
+#
+# Original Author:
+# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
+# http://academic.cleardefinition.com
+# Iowa State University HCI Graduate Program/VRAC
+# Updated for VR Juggler 3.0 by:
+# Brandon Newendorp <br...@ne...>
+
+if(WIN32)
+ option(VRJUGGLERRUNTIME_BUNDLE
+ "Install a local copy of the VR Juggler runtime files with the project."
+ on)
+ option(VRJUGGLERRUNTIME_BUNDLE_DEBUG
+ "Install the VR Juggler debug runtime files as well."
+ off)
+ mark_as_advanced(VRJUGGLERRUNTIME_BUNDLE_DEBUG)
+else()
+ # TODO - how to handle when not on Windows?
+ #option(VRJUGGLERRUNTIME_BUNDLE "Install a local copy of the VR Juggler runtime files with the project." off)
+endif()
+
+mark_as_advanced(VRJUGGLERRUNTIME_BUNDLE VRJUGGLERRUNTIME_BUNDLE_DEBUG)
+
+if(VRJUGGLERRUNTIME_BUNDLE AND VRJUGGLER22_FOUND)
+ if(WIN32)
+ get_filename_component(_vrjlibdir "${VRJ22_LIBRARY_RELEASE}" PATH)
+ get_filename_component(_vrjroot "${_vrjlibdir}/../" ABSOLUTE)
+
+ # TODO - make sure gadgeteer and sonix can find their DSO's at runtime...
+
+ foreach(_dir bin lib)
+ if(VRJUGGLERRUNTIME_BUNDLE_DEBUG)
+ install(DIRECTORY "${_vrjroot}/${_dir}/"
+ DESTINATION bin
+ PATTERN "*.lib" EXCLUDE # exclude static and link libraries
+ PATTERN "*.exe" EXCLUDE # exclude unneeded executables
+ PATTERN "*.py" EXCLUDE # exclude unneeded python executables
+ PATTERN "*.pyc" EXCLUDE # exclude unneeded python executables
+ )
+ else()
+ install(DIRECTORY ${_vrjroot}/${_dir}/
+ DESTINATION bin
+ PATTERN "*.lib" EXCLUDE # exclude static and link libraries
+ PATTERN "*.exe" EXCLUDE # exclude unneeded executables
+ PATTERN "*.py" EXCLUDE # exclude unneeded python executables
+ PATTERN "*.pyc" EXCLUDE # exclude unneeded python executables
+
+ PATTERN "*d.dll" EXCLUDE # exclude debug dll's
+ PATTERN "*-gd-*.dll" EXCLUDE # exclude Boost debug dll's
+ )
+ endif()
+
+ endforeach()
+
+ install(DIRECTORY ${_vrjroot}/share/
+ DESTINATION share
+ FILES_MATCHING
+
+ # Runtime files
+ PATTERN "*.dll"
+ PATTERN "*.jar"
+
+ # Data files
+ PATTERN "*.wav"
+ PATTERN "*.xml"
+ PATTERN "*.xsl"
+ PATTERN "*.xsd"
+ PATTERN "*.flt"
+ PATTERN "*.dat"
+ PATTERN "*.table"
+
+
+ # Config files
+ PATTERN "*.jdef"
+ PATTERN "*.jconf"
+ PATTERN "*.cfg"
+ PATTERN "hosts.allow"
+
+ # Other Files
+ PATTERN "*.txt"
+ PATTERN "COPYING*"
+ PATTERN "ChangeLog"
+ )
+
+ endif()
+
+
+
+endif()
Property changes on: trunk/cmake/BundleVRJ30Runtime.cmake
___________________________________________________________________
Added: svn:eol-style
+ native
Added: trunk/cmake/CheckMacHIDAPI.cmake
===================================================================
--- trunk/cmake/CheckMacHIDAPI.cmake (rev 0)
+++ trunk/cmake/CheckMacHIDAPI.cmake 2012-07-04 20:30:43 UTC (rev 690)
@@ -0,0 +1,73 @@
+# - Script to check if the signature for a mac HID callback uses UInt32 or uint32_t
+# Requires that the associated CPP file be present: CheckMacHIDAPI.cpp.
+#
+# MACOSX_HID_UINT32T, set according to the results of our test.
+#
+# Use add_definitions(-DMACOSX_HID_UINT32T=${MACOSX_HID_UINT32T}) in your
+# listfile and the following prototype for the function you'd like to
+# register using setInterruptReportHandlerCallback:
+# void ReaderReportCallback(
+# void *target,
+# IOReturn result,
+# void *refcon,
+# void *sender,
+# MACOSX_HID_UINT32T size
+# )
+#
+# Original Author:
+# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
+# http://academic.cleardefinition.com
+# Iowa State University HCI Graduate Program/VRAC
+#
+# Copyright Iowa State University 2009-2010.
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
+
+if(APPLE)
+ if(NOT MACOSX_HID_UINT32T)
+ get_filename_component(_moddir ${CMAKE_CURRENT_LIST_FILE} PATH)
+
+ try_compile(_HID_uint32t
+ ${CMAKE_BINARY_DIR}
+ ${_moddir}/CheckMacHIDAPI.cpp
+ OUTPUT_VARIABLE
+ _HID_uint32t_OUTPUT
+ COMPILE_DEFINITIONS
+ -DMACOSX_HID_UINT32T=uint32_t)
+ message(STATUS
+ "Checking uint32_t in HID callback signature... ${_HID_uint32t}")
+
+ try_compile(_HID_UInt32
+ ${CMAKE_BINARY_DIR}
+ ${_moddir}/CheckMacHIDAPI.cpp
+ OUTPUT_VARIABLE
+ _HID_UInt32_OUTPUT
+ COMPILE_DEFINITIONS
+ -DMACOSX_HID_UINT32T=UInt32)
+ message(STATUS
+ "Checking UInt32 in HID callback signature... ${_HID_UInt32}")
+
+
+ if(_HID_uint32t)
+ set(MACOSX_HID_UINT32T
+ "uint32_t"
+ CACHE
+ STRING
+ "The 32-bit uint type desired in the callback set by setInterruptReportHandlerCallback")
+ mark_as_advanced(MACOSX_HID_UINT32T)
+ elseif(_HID_UInt32)
+ set(MACOSX_HID_UINT32T
+ "UInt32"
+ CACHE
+ STRING
+ "The 32-bit uint type desired in the callback set by setInterruptReportHandlerCallback")
+ mark_as_advanced(MACOSX_HID_UINT32T)
+ else()
+ message(SEND_ERROR
+ "ERROR: Could not detect appropriate Mac HID uint32 type!")
+ endif()
+
+ endif()
+endif()
Property changes on: trunk/cmake/CheckMacHIDAPI.cmake
___________________________________________________________________
Added: svn:eol-style
+ native
Added: trunk/cmake/CheckMacHIDAPI.cpp
===================================================================
--- trunk/cmake/CheckMacHIDAPI.cpp (rev 0)
+++ trunk/cmake/CheckMacHIDAPI.cpp 2012-07-04 20:30:43 UTC (rev 690)
@@ -0,0 +1,47 @@
+/**
+ * \file CheckMacHIDAPI.cpp
+ * \brief C++ source file used by CMake module CheckMacHIDAPI.cmake
+ *
+ * \author
+ * Ryan Pavlik, 2009-2010
+ * <rp...@ia...>
+ * http://academic.cleardefinition.com/
+ *
+ * \author
+ * Based on code extracted from VRPN 07.22 for use as a minimal test case
+ *
+ * Attempts to compile a difficult bit of code against the Mac
+ * HID API, as two different types have been required in the callback
+ * function (UInt32 and uint32_t) and testing is the best way to know
+ * which one is correct for a given system.
+ *
+ */
+
+
+#if defined(__APPLE__)
+
+#include <stdio.h>
+#include <IOKit/IOCFPlugIn.h>
+#include <IOKit/hid/IOHIDLib.h>
+#include <IOKit/hid/IOHIDKeys.h>
+#include <CoreFoundation/CoreFoundation.h>
+void ReaderReportCallback(
+ void *target, IOReturn result, void *refcon, void *sender, MACOSX_HID_UINT32T size
+ )
+ {}
+#endif
+
+int main(int argc, char* argv[]) {
+#if defined(__APPLE__)
+ io_object_t _ioObject;
+ IOHIDDeviceInterface122 **_interface;
+ bool _gotdata;
+ int _gotsize;
+ unsigned char _buffer[512];
+ IOReturn result = (*_interface)->setInterruptReportHandlerCallback(_interface,
+ _buffer, 512,
+ ReaderReportCallback,
+ NULL, 0);
+#endif
+ return 0;
+}
Property changes on: trunk/cmake/CheckMacHIDAPI.cpp
___________________________________________________________________
Added: svn:eol-style
+ native
Added: trunk/cmake/CheckVersion.cmake
===================================================================
--- trunk/cmake/CheckVersion.cmake (rev 0)
+++ trunk/cmake/CheckVersion.cmake 2012-07-04 20:30:43 UTC (rev 690)
@@ -0,0 +1,47 @@
+# - Utility function for Find modules considering multiple possible versions
+#
+# Requires these CMake modules:
+# no additional modules required
+#
+# Original Author:
+# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
+# http://academic.cleardefinition.com
+# Iowa State University HCI Graduate Program/VRAC
+#
+# Copyright Iowa State University 2009-2010.
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
+if(__check_version)
+ return()
+endif()
+set(__check_version YES)
+
+function(check_version var packagename version)
+ # By default, we say that the version is good enough
+ set(_result TRUE)
+
+ # Was a version requested? If so, what is our test condition?
+ if(${packagename}_FIND_VERSION)
+ if(${packagename}_FIND_VERSION_EXACT)
+ # Yes, an exact == version was requested - check it.
+
+ if(NOT "${version}" VERSION_EQUAL "${${packagename}_FIND_VERSION}")
+ # version is not an exact match
+ set(_result FALSE)
+ endif()
+ else()
+ # Yes, a minimum >= version was requested - check it.
+
+ if("${version}" VERSION_LESS "${${packagename}_FIND_VERSION}")
+ # version is lower than requested
+ set(_result FALSE)
+ endif()
+
+ endif()
+ endif()
+
+ # Return _result
+ set(${var} ${_result} PARENT_SCOPE)
+endfunction()
Property changes on: trunk/cmake/CheckVersion.cmake
___________________________________________________________________
Added: svn:eol-style
+ native
Added: trunk/cmake/CleanDirectoryList.cmake
===================================================================
--- trunk/cmake/CleanDirectoryList.cmake (rev 0)
+++ trunk/cmake/CleanDirectoryList.cmake 2012-07-04 20:30:43 UTC (rev 690)
@@ -0,0 +1,48 @@
+# - Removes duplicate entries and non-directories from a provided list
+#
+# clean_directory_list(<listvar> [<additional list items>...])
+#
+# Requires CMake 2.6 or newer (uses the 'function' command)
+#
+# Original Author:
+# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
+# http://academic.cleardefinition.com
+# Iowa State University HCI Graduate Program/VRAC
+#
+# Copyright Iowa State University 2009-2010.
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
+if(__clean_directory_list)
+ return()
+endif()
+set(__clean_directory_list YES)
+
+function(clean_directory_list _var)
+ # combine variable's current value with additional list items
+ set(_in ${${_var}} ${ARGN})
+
+ if(_in)
+ # Initial list cleaning
+ list(REMOVE_DUPLICATES _in)
+
+ # Grab the absolute path of each actual directory
+ set(_out)
+ foreach(_dir ${_in})
+ if(IS_DIRECTORY "${_dir}")
+ get_filename_component(_dir "${_dir}" ABSOLUTE)
+ file(TO_CMAKE_PATH "${_dir}" _dir)
+ list(APPEND _out "${_dir}")
+ endif()
+ endforeach()
+
+ if(_out)
+ # Clean up the output list now
+ list(REMOVE_DUPLICATES _out)
+ endif()
+
+ # return _out
+ set(${_var} "${_out}" PARENT_SCOPE)
+ endif()
+endfunction()
Property changes on: trunk/cmake/CleanDirectoryList.cmake
___________________________________________________________________
Added: svn:eol-style
+ native
Added: trunk/cmake/CleanLibraryList.cmake
===================================================================
--- trunk/cmake/CleanLibraryList.cmake (rev 0)
+++ trunk/cmake/CleanLibraryList.cmake 2012-07-04 20:30:43 UTC (rev 690)
@@ -0,0 +1,72 @@
+# - A smarter replacement for list(REMOVE_DUPLICATES) for library lists
+#
+# Note that, in the case of cyclic link dependencies, you _do_ actually need
+# a library in a list multiple times. So, only use this function when you know
+# that the dependency graph is acyclic.
+#
+# clean_library_list(<listvar> [<additional list items>...]) - where
+# listvar is the name of a destination variable, and also possibly a source, and
+# it is followed by any number (including 0) of additional libraries to append
+# to the list before processing.
+#
+# Removes duplicates from the list, leaving only the last instance, while
+# preserving the meaning of the "optimized", "debug", and "general" labeling.
+# (Libraries listed as general are listed in the result instead as optimized and
+# debug)
+#
+# Requires CMake 2.6 or newer (uses the 'function' command)
+#
+# Original Author:
+# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
+# http://academic.cleardefinition.com
+# Iowa State University HCI Graduate Program/VRAC
+#
+# Copyright Iowa State University 2009-2010.
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
+if(__clean_library_list)
+ return()
+endif()
+set(__clean_library_list YES)
+
+function(clean_library_list _var)
+ # combine variable's current value with additional list items
+ set(_work ${${_var}} ${ARGN})
+ if(_work)
+ # Turn each of optimized, debug, and general into flags
+ # prefixed on their respective library (combining list items)
+ string(REGEX REPLACE "optimized;" "1CLL%O%" _work "${_work}")
+ string(REGEX REPLACE "debug;" "1CLL%D%" _work "${_work}")
+ string(REGEX REPLACE "general;" "1CLL%G%" _work "${_work}")
+
+ # Any library that doesn't have a prefix is general, and a general
+ # library is both debug and optimized so stdize it
+ set(_std)
+ foreach(_lib ${_work})
+ if(NOT "${_lib}" MATCHES "^1CLL%.%")
+ list(APPEND _std "1CLL%D%${_lib}" "1CLL%O%${_lib}")
+ elseif("${_lib}" MATCHES "^1CLL%G%")
+ string(REPLACE "1CLL%G%" "" _justlib "${_lib}")
+ list(APPEND _std "1CLL%D%${_justlib}" "1CLL%O%${_justlib}")
+ else()
+ list(APPEND _std "${_lib}")
+ endif()
+ endforeach()
+
+ # REMOVE_DUPLICATES leaves the first - so we reverse before and after
+ # to keep the last, instead
+ list(REVERSE _std)
+ list(REMOVE_DUPLICATES _std)
+ list(REVERSE _std)
+
+ # Split list items back out again: turn prefixes into the
+ # library type flags.
+ string(REGEX REPLACE "1CLL%D%" "debug;" _std "${_std}")
+ string(REGEX REPLACE "1CLL%O%" "optimized;" _std "${_std}")
+
+ # Return _std
+ set(${_var} ${_std} PARENT_SCOPE)
+ endif()
+endfunction()
Property changes on: trunk/cmake/CleanLibraryList.cmake
___________________________________________________________________
Added: svn:eol-style
+ native
Added: trunk/cmake/CopyResourcesToBuildTree.cmake
===================================================================
--- trunk/cmake/CopyResourcesToBuildTree.cmake (rev 0)
+++ trunk/cmake/CopyResourcesToBuildTree.cmake 2012-07-04 20:30:43 UTC (rev 690)
@@ -0,0 +1,83 @@
+# - Copy the resources your app needs to the build tree.
+#
+# copy_resources_to_build_tree(<target_name>)
+#
+# Requires CMake 2.6 or newer (uses the 'function' command)
+#
+# Original Author:
+# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
+# http://academic.cleardefinition.com
+# Iowa State University HCI Graduate Program/VRAC
+#
+# Copyright Iowa State University 2009-2010.
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
+if(__copy_resources_to_build_tree)
+ return()
+endif()
+set(__copy_resources_to_build_tree YES)
+
+function(copy_resources_to_build_tree _target)
+ get_target_property(_resources ${_target} RESOURCE)
+ if(NOT _resources)
+ # Bail if no resources
+ message(STATUS
+ "Told to copy resources for target ${_target}, but "
+ "no resources are set!")
+ return()
+ endif()
+
+ get_target_property(_path ${_target} LOCATION)
+ get_filename_component(_path "${_path}" PATH)
+
+ if(NOT MSVC AND NOT "${CMAKE_GENERATOR}" MATCHES "Makefiles")
+ foreach(_config ${CMAKE_CONFIGURATION_TYPES})
+ get_target_property(_path${_config} ${_target} LOCATION_${_config})
+ get_filename_component(_path${_config} "${_path${_config}}" PATH)
+ add_custom_command(TARGET ${_target}
+ POST_BUILD
+ COMMAND
+ ${CMAKE_COMMAND}
+ ARGS -E make_directory "${_path${_config}}/"
+ COMMENT "Creating directory ${_path${_config}}/")
+ endforeach()
+ endif()
+
+ foreach(_res ${_resources})
+ if(NOT IS_ABSOLUTE "${_res}")
+ get_filename_component(_res "${_res}" ABSOLUTE)
+ endif()
+ get_filename_component(_name "${_res}" NAME)
+
+ if(MSVC)
+ # Working dir is solution file dir, not exe file dir.
+ add_custom_command(TARGET ${_target}
+ POST_BUILD
+ COMMAND
+ ${CMAKE_COMMAND}
+ ARGS -E copy "${_res}" "${CMAKE_BINARY_DIR}/"
+ COMMENT "Copying ${_name} to ${CMAKE_BINARY_DIR}/ for MSVC")
+ else()
+ if("${CMAKE_GENERATOR}" MATCHES "Makefiles")
+ add_custom_command(TARGET ${_target}
+ POST_BUILD
+ COMMAND
+ ${CMAKE_COMMAND}
+ ARGS -E copy "${_res}" "${_path}/"
+ COMMENT "Copying ${_name} to ${_path}/")
+ else()
+ foreach(_config ${CMAKE_CONFIGURATION_TYPES})
+ add_custom_command(TARGET ${_target}
+ POST_BUILD
+ COMMAND
+ ${CMAKE_COMMAND}
+ ARGS -E copy "${_res}" "${_path${_config}}"
+ COMMENT "Copying ${_name} to ${_path${_config}}")
+ endforeach()
+
+ endif()
+ endif()
+ endforeach()
+endfunction()
Property changes on: trunk/cmake/CopyResourcesToBuildTree.cmake
___________________________________________________________________
Added: svn:eol-style
+ native
Added: trunk/cmake/CppcheckTargets.cmake
===================================================================
--- trunk/cmake/CppcheckTargets.cmake (rev 0)
+++ trunk/cmake/CppcheckTargets.cmake 2012-07-04 20:30:43 UTC (rev 690)
@@ -0,0 +1,213 @@
+# - Run cppcheck on c++ source files as a custom target and a test
+#
+# include(CppcheckTargets)
+# add_cppcheck(<target-name> [UNUSED_FUNCTIONS] [STYLE] [POSSIBLE_ERROR] [FAIL_ON_WARNINGS]) -
+# Create a target to check a target's sources with cppcheck and the indicated options
+# add_cppcheck_sources(<target-name> [UNUSED_FUNCTIONS] [STYLE] [POSSIBLE_ERROR] [FAIL_ON_WARNINGS]) -
+# Create a target to check standalone sources with cppcheck and the indicated options
+#
+# Requires these CMake modules:
+# Findcppcheck
+#
+# Requires CMake 2.6 or newer (uses the 'function' command)
+#
+# Original Author:
+# 2009-2010 Ryan Pavlik <rp...@ia...> <ab...@ry...>
+# http://academic.cleardefinition.com
+# Iowa State University HCI Graduate Program/VRAC
+#
+# Copyright Iowa State University 2009-2010.
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
+if(__add_cppcheck)
+ return()
+endif()
+set(__add_cppcheck YES)
+
+if(NOT CPPCHECK_FOUND)
+ find_package(cppcheck QUIET)
+endif()
+
+if(CPPCHECK_FOUND)
+ if(NOT TARGET all_cppcheck)
+ add_custom_target(all_cppcheck)
+ set_target_properties(all_cppcheck PROPERTIES EXCLUDE_FROM_ALL TRUE)
+ endif()
+endif()
+
+function(add_cppcheck_sources _targetname)
+ if(CPPCHECK_FOUND)
+ set(_cppcheck_args)
+ set(_input ${ARGN})
+ list(FIND _input UNUSED_FUNCTIONS _unused_func)
+ if("${_unused_func}" GREATER "-1")
+ list(APPEND _cppcheck_args ${CPPCHECK_UNUSEDFUNC_ARG})
+ list(REMOVE_AT _input ${_unused_func})
+ endif()
+
+ list(FIND _input STYLE _style)
+ if("${_style}" GREATER "-1")
+ list(APPEND _cppcheck_args ${CPPCHECK_STYLE_ARG})
+ list(REMOVE_AT _input ${_style})
+ endif()
+
+ list(FIND _input POSSIBLE_ERROR _poss_err)
+ if("${_poss_err}" GREATER "-1")
+ list(APPEND _cppcheck_args ${CPPCHECK_POSSIBLEERROR_ARG})
+ list(REMOVE_AT _input ${_poss_err})
+ endif()
+
+ list(FIND _input FAIL_ON_WARNINGS _fail_on_warn)
+ if("${_fail_on_warn}" GREATER "-1")
+ list(APPEND
+ CPPCHECK_FAIL_REGULAR_EXPRESSION
+ ${CPPCHECK_WARN_REGULAR_EXPRESSION})
+ list(REMOVE_AT _input ${_fail_on_warn})
+ endif()
+
+ set(_files)
+ foreach(_source ${_input})
+ get_source_file_property(_cppcheck_loc "${_source}" LOCATION)
+ if(_cppcheck_loc)
+ # This file has a source file property, carry on.
+ get_source_file_property(_cppcheck_lang "${_source}" LANGUAGE)
+ if("${_cppcheck_lang}" MATCHES "CXX")
+ list(APPEND _files "${_cppcheck_loc}")
+ endif()
+ else()
+ # This file doesn't have source file properties - figure it out.
+ get_filename_component(_cppcheck_loc "${_source}" ABSOLUTE)
+ if(EXISTS "${_cppcheck_loc}")
+ list(APPEND _files "${_cppcheck_loc}")
+ else()
+ message(FATAL_ERROR
+ "Adding CPPCHECK for file target ${_targetname}: "
+ "File ${_source} does not exist or needs a corrected path location "
+ "since we think its absolute path is ${_cppcheck_loc}")
+ endif()
+ endif()
+ endforeach()
+
+ if("1.${CMAKE_VERSION}" VERSION_LESS "1.2.8.0")
+ # Older than CMake 2.8.0
+ add_test(${_targetname}_cppcheck_test
+ "${CPPCHECK_EXECUTABLE}"
+ ${CPPCHECK_TEMPLATE_ARG}
+ ${_cppcheck_args}
+ ${_files})
+ else()
+ # CMake 2.8.0 and newer
+ add_test(NAME
+ ${_targetname}_cppcheck_test
+ COMMAND
+ "${CPPCHECK_EXECUTABLE}"
+ ${CPPCHECK_TEMPLATE_ARG}
+ ${_cppcheck_args}
+ ${_files})
+ endif()
+
+ set_tests_properties(${_targetname}_cppcheck_test
+ PROPERTIES
+ FAIL_REGULAR_EXPRESSION
+ "${CPPCHECK_FAIL_REGULAR_EXPRESSION}")
+
+ add_custom_command(TARGET
+ all_cppcheck
+ PRE_BUILD
+ COMMAND
+ ${CPPCHECK_EXECUTABLE}
+ ${CPPCHECK_QUIET_ARG}
+ ${CPPCHECK_TEMPLATE_ARG}
+ ${_cppcheck_args}
+ ${_files}
+ WORKING_DIRECTORY
+ "${CMAKE_CURRENT_SOURCE_DIR}"
+ COMMENT
+ "${_targetname}_cppcheck: Running cppcheck on target ${_targetname}..."
+ VERBATIM)
+ endif()
+endfunction()
+
+function(add_cppcheck _name)
+ if(NOT TARGET ${_name})
+ message(FATAL_ERROR
+ "add_cppcheck given a target name that does not exist: '${_name}' !")
+ endif()
+ if(CPPCHECK_FOUND)
+ set(_cppcheck_args)
+
+ list(FIND ARGN UNUSED_FUNCTIONS _unused_func)
+ if("${_unused_func}" GREATER "-1")
+ list(APPEND _cppcheck_args ${CPPCHECK_UNUSEDFUNC_ARG})
+ endif()
+
+ list(FIND ARGN STYLE _style)
+ if("${_style}" GREATER "-1")
+ list(APPEND _cppcheck_args ${CPPCHECK_STYLE_ARG})
+ endif()
+
+ list(FIND ARGN POSSIBLE_ERROR _poss_err)
+ if("${_poss_err}" GREATER "-1")
+ list(APPEND _cppcheck_args ${CPPCHECK_POSSIBLEERROR_ARG})
+ endif()
+
+ list(FIND _input FAIL_ON_WARNINGS _fail_on_warn)
+ if("${_fail_on_warn}" GREATER "-1")
+ list(APPEND
+ CPPCHECK_FAIL_REGULAR_EXPRESSION
+ ${CPPCHECK_WARN_REGULAR_EXPRESSION})
+ list(REMOVE_AT _input ${_unused_func})
+ endif()
+
+ get_target_property(_cppcheck_sources "${_name}" SOURCES)
+ set(_files)
+ foreach(_source ${_cppcheck_sources})
+ get_source_file_property(_cppcheck_lang "${_source}" LANGUAGE)
+ get_source_file_property(_cppcheck_loc "${_source}" LOCATION)
+ if("${_cppcheck_lang}" M...
[truncated message content] |
|
From: <pat...@us...> - 2012-07-04 20:24:24
|
Revision: 689
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=689&view=rev
Author: patrickh
Date: 2012-07-04 20:24:18 +0000 (Wed, 04 Jul 2012)
Log Message:
-----------
Fix this test.
Change made by Ryan Pavlik
https://github.com/rpavlik/cppdom/commit/fd8143bb4b6581965aba3f66c211b25b80794637
Modified Paths:
--------------
trunk/test/suite/TestCases/ErrorTest.cpp
Modified: trunk/test/suite/TestCases/ErrorTest.cpp
===================================================================
--- trunk/test/suite/TestCases/ErrorTest.cpp 2012-07-04 20:22:45 UTC (rev 688)
+++ trunk/test/suite/TestCases/ErrorTest.cpp 2012-07-04 20:24:18 UTC (rev 689)
@@ -49,10 +49,11 @@
void
ErrorTest::testCreation()
{
- const cppdom::Error error(cppdom::xml_instream_error, "Blah", __FILE__, __LINE__);
+ std::string errFile = __FILE__;
+ const cppdom::Error error(cppdom::xml_instream_error, "Blah", errFile, __LINE__);
CPPUNIT_ASSERT(error.getError() == cppdom::xml_instream_error);
- CPPUNIT_ASSERT(error.getStrError() == "error in the infile stream");
- CPPUNIT_ASSERT(error.getString() == "error in the infile stream: Blah");
- CPPUNIT_ASSERT(error.getInfo() == "test/suite/TestCases/ErrorTest.cpp:52");
+ CPPUNIT_ASSERT_EQUAL(std::string("error in the infile stream"), error.getStrError());
+ CPPUNIT_ASSERT_EQUAL(std::string("error in the infile stream: Blah"), error.getString());
+ CPPUNIT_ASSERT_EQUAL(errFile + std::string(":53"), error.getInfo());
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pat...@us...> - 2012-07-04 20:22:51
|
Revision: 688
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=688&view=rev
Author: patrickh
Date: 2012-07-04 20:22:45 +0000 (Wed, 04 Jul 2012)
Log Message:
-----------
Fix the test suite build on Linux.
Modified Paths:
--------------
trunk/test/suite/runner.cpp
Modified: trunk/test/suite/runner.cpp
===================================================================
--- trunk/test/suite/runner.cpp 2011-05-01 16:18:54 UTC (rev 687)
+++ trunk/test/suite/runner.cpp 2012-07-04 20:22:45 UTC (rev 688)
@@ -53,6 +53,8 @@
#include <cstring>
+#include <string.h>
+
std::string getHostname(void);
int main(int argc, char** argv)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pat...@us...> - 2011-05-01 16:19:02
|
Revision: 687
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=687&view=rev
Author: patrickh
Date: 2011-05-01 16:18:54 +0000 (Sun, 01 May 2011)
Log Message:
-----------
Update the version number.
Modified Paths:
--------------
branches/1.2/doc/cppdom.doxy
Modified: branches/1.2/doc/cppdom.doxy
===================================================================
--- branches/1.2/doc/cppdom.doxy 2011-05-01 16:18:32 UTC (rev 686)
+++ branches/1.2/doc/cppdom.doxy 2011-05-01 16:18:54 UTC (rev 687)
@@ -23,7 +23,7 @@
# This could be handy for archiving the generated documentation or
# if some version control system is used.
-PROJECT_NUMBER = 0.7.8
+PROJECT_NUMBER = 1.2.0
# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
# base path where the generated documentation will be put.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pat...@us...> - 2011-05-01 16:18:38
|
Revision: 686
http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=686&view=rev
Author: patrickh
Date: 2011-05-01 16:18:32 +0000 (Sun, 01 May 2011)
Log Message:
-----------
Update the version number.
Modified Paths:
--------------
trunk/doc/cppdom.doxy
Modified: trunk/doc/cppdom.doxy
===================================================================
--- trunk/doc/cppdom.doxy 2011-05-01 16:10:58 UTC (rev 685)
+++ trunk/doc/cppdom.doxy 2011-05-01 16:18:32 UTC (rev 686)
@@ -23,7 +23,7 @@
# This could be handy for archiving the generated documentation or
# if some version control system is used.
-PROJECT_NUMBER = 0.7.8
+PROJECT_NUMBER = 1.3.0
# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
# base path where the generated documentation will be put.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|