Merge commit '6481cc3d7534a34435e88d343eb5f499001032a0'
This commit is contained in:
34
cmake/AboutTheseModules.cmake
Normal file
34
cmake/AboutTheseModules.cmake
Normal file
@@ -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)
|
||||
|
||||
@@ -31,10 +31,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(__add_boost_test)
|
||||
return()
|
||||
@@ -67,19 +67,20 @@ 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})
|
||||
set(_boosttesttargets_libs "${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}")
|
||||
if(Boost_USE_STATIC_LIBS)
|
||||
set(_boostConfig "BoostTestTargetsStatic.h")
|
||||
else()
|
||||
set(_boostConfig "BoostTestTargetsDynamic.h")
|
||||
if(NOT APPLE)
|
||||
set(_boostConfig "BoostTestTargetsDynamic.h")
|
||||
endif()
|
||||
endif()
|
||||
else()
|
||||
set(_boosttesttargets_libs)
|
||||
set(_boostConfig "BoostTestTargetsIncluded.h")
|
||||
endif()
|
||||
get_filename_component(_moddir ${CMAKE_CURRENT_LIST_FILE} PATH)
|
||||
configure_file("${_moddir}/${_boostConfig}"
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (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)
|
||||
|
||||
@@ -13,10 +13,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (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)
|
||||
|
||||
@@ -11,10 +11,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(WIN32)
|
||||
option(VRJUGGLERRUNTIME_BUNDLE
|
||||
|
||||
96
cmake/BundleVRJ30Runtime.cmake
Normal file
96
cmake/BundleVRJ30Runtime.cmake
Normal file
@@ -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 <rpavlik@iastate.edu> <abiryan@ryand.net>
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
# Updated for VR Juggler 3.0 by:
|
||||
# Brandon Newendorp <brandon@newendorp.com>
|
||||
|
||||
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()
|
||||
@@ -19,10 +19,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
|
||||
if(APPLE)
|
||||
|
||||
@@ -8,10 +8,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(__check_version)
|
||||
return()
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(__clean_directory_list)
|
||||
return()
|
||||
|
||||
@@ -21,10 +21,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(__clean_library_list)
|
||||
return()
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (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()
|
||||
|
||||
@@ -16,10 +16,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(__add_cppcheck)
|
||||
return()
|
||||
|
||||
@@ -23,10 +23,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (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)
|
||||
@@ -118,7 +118,7 @@ if(NOT IN_DASHBOARD_SCRIPT)
|
||||
|
||||
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)
|
||||
find_program(DASHBOARDSCRIPT_GIT_EXECUTABLE NAMES git git.cmd)
|
||||
if(DASHBOARDSCRIPT_GIT_EXECUTABLE)
|
||||
|
||||
set(UPDATE_TYPE "git")
|
||||
@@ -165,6 +165,12 @@ function(create_dashboard_scripts)
|
||||
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
|
||||
|
||||
@@ -13,10 +13,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(__create_imported_target)
|
||||
return()
|
||||
|
||||
@@ -34,10 +34,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(__create_launchers)
|
||||
return()
|
||||
@@ -82,6 +82,15 @@ macro(_launcher_system_settings)
|
||||
set(_pathdelim ":")
|
||||
set(USERFILE_PLATFORM ${CMAKE_SYSTEM_NAME}${BITS})
|
||||
set(_suffix "sh")
|
||||
find_package(GDB QUIET)
|
||||
if(GDB_FOUND)
|
||||
set(LAUNCHERS_GOT_GDB YES)
|
||||
if(GDB_HAS_RETURN_CHILD_RESULT)
|
||||
set(LAUNCHERS_GDB_ARG --return-child-result)
|
||||
endif()
|
||||
else()
|
||||
set(LAUNCHERS_GOT_GDB)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(WIN32 AND NOT USERFILE_REMOTE_MACHINE)
|
||||
|
||||
@@ -42,6 +42,11 @@ set(CTEST_UPDATE_TYPE "@UPDATE_TYPE@")
|
||||
set(CTEST_UPDATE_COMMAND "@UPDATE_COMMAND@")
|
||||
set(CTEST_UPDATE_OPTIONS "@UPDATE_OPTIONS@")
|
||||
|
||||
if((NOT CTEST_CONFIGURATION_TYPE) OR (NOT CTEST_BUILD_CONFIGURATION))
|
||||
set(CTEST_BUILD_CONFIGURATION "@DASHBOARDSCRIPT_BUILD_CONFIGURATION@")
|
||||
set(CTEST_CONFIGURATION_TYPE "@DASHBOARDSCRIPT_BUILD_CONFIGURATION@")
|
||||
endif()
|
||||
|
||||
|
||||
# Avoid non-ascii characters in tool output.
|
||||
set(ENV{LC_ALL} C)
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(__add_doxygen)
|
||||
return()
|
||||
|
||||
@@ -10,10 +10,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(__enable_extra_compiler_warnings)
|
||||
return()
|
||||
|
||||
@@ -10,10 +10,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(__enable_profiling)
|
||||
return()
|
||||
|
||||
94
cmake/FileCopyTargets.cmake
Normal file
94
cmake/FileCopyTargets.cmake
Normal file
@@ -0,0 +1,94 @@
|
||||
# - Add a target for files that just need to be copied
|
||||
#
|
||||
# include(FileCopyTargets)
|
||||
# add_file_copy_target(<target_name> <directory to copy to> <filename> [<filename>...])
|
||||
# Creates a custom target that copies the files to a directory, if needed.
|
||||
# Relative paths for the destination directory are considered with
|
||||
# with respect to CMAKE_CURRENT_BINARY_DIR
|
||||
# You can use this target in all the usual ways, including
|
||||
# add_dependencies(some_other_target this_target) to specify that another
|
||||
# target depends on this.
|
||||
#
|
||||
# install_file_copy_target(<target_name> [arguments to INSTALL(PROGRAMS ...) ])
|
||||
# Works just the same as INSTALL(PROGRAMS ...) because it wraps it to install
|
||||
# the files you specified in add_file_copy_target
|
||||
#
|
||||
#
|
||||
# Requires CMake 2.6 or newer (uses the 'function' command)
|
||||
#
|
||||
# Original Author:
|
||||
# 2009-2010 Ryan Pavlik <rpavlik@iastate.edu> <abiryan@ryand.net>
|
||||
# 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_file_copy_target)
|
||||
return()
|
||||
endif()
|
||||
set(__add_file_copy_target YES)
|
||||
|
||||
define_property(TARGET
|
||||
PROPERTY
|
||||
FILE_COPY_TARGET
|
||||
BRIEF_DOCS
|
||||
"File Copy target"
|
||||
FULL_DOCS
|
||||
"Is this a target created by add_file_copy_target?")
|
||||
|
||||
function(add_file_copy_target _target _dest)
|
||||
if(NOT ARGN)
|
||||
message(WARNING
|
||||
"In add_file_copy_target call for target ${_target}, no source files were specified!")
|
||||
return()
|
||||
endif()
|
||||
|
||||
set(ALLFILES)
|
||||
foreach(fn ${ARGN})
|
||||
if(IS_ABSOLUTE "${fn}")
|
||||
set(fullpath "${fn}")
|
||||
get_filename_component(fn "${fn}" NAME)
|
||||
else()
|
||||
get_filename_component(fullpath "${CMAKE_CURRENT_SOURCE_DIR}/${fn}" ABSOLUTE)
|
||||
endif()
|
||||
add_custom_command(OUTPUT "${_dest}/${fn}"
|
||||
COMMAND
|
||||
${CMAKE_COMMAND}
|
||||
ARGS -E make_directory "${_dest}"
|
||||
COMMAND
|
||||
${CMAKE_COMMAND}
|
||||
ARGS -E copy "${fullpath}" "${_dest}"
|
||||
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
|
||||
DEPENDS "${fullpath}"
|
||||
COMMENT "Copying ${fullpath} to ${_dest}/${fn}")
|
||||
list(APPEND ALLFILES "${_dest}/${fn}")
|
||||
endforeach()
|
||||
|
||||
# Custom target depending on all the file copy commands
|
||||
add_custom_target(${_target}
|
||||
SOURCES ${ARGN}
|
||||
DEPENDS ${ALLFILES})
|
||||
|
||||
set_property(TARGET ${_target} PROPERTY FILE_COPY_TARGET YES)
|
||||
endfunction()
|
||||
|
||||
function(install_file_copy_target _target)
|
||||
get_target_property(_isFCT ${_target} FILE_COPY_TARGET)
|
||||
if(NOT _isFCT)
|
||||
message(WARNING
|
||||
"install_file_copy_target called on a target not created with add_file_copy_target!")
|
||||
return()
|
||||
endif()
|
||||
|
||||
# Get sources
|
||||
get_target_property(_srcs ${_target} SOURCES)
|
||||
|
||||
# Remove the "fake" file forcing build
|
||||
list(REMOVE_AT _srcs 0)
|
||||
|
||||
# Forward the call to install
|
||||
install(PROGRAMS ${_srcs} ${ARGN})
|
||||
endfunction()
|
||||
@@ -24,10 +24,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
set(ALUT_ROOT_DIR
|
||||
"${ALUT_ROOT_DIR}"
|
||||
|
||||
@@ -17,10 +17,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(WIN32 OR APPLE OR NOT UNIX)
|
||||
if(NOT Bluez_FIND_QUIETLY)
|
||||
|
||||
@@ -30,10 +30,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (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)
|
||||
@@ -90,7 +90,11 @@ if(DEFINED VRJUGGLER22_ROOT_DIR)
|
||||
mark_as_advanced(CPPDOM_ROOT_DIR)
|
||||
endif()
|
||||
if(NOT CPPDOM_ROOT_DIR)
|
||||
set(CPPDOM_ROOT_DIR "${VRJUGGLER22_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}")
|
||||
|
||||
@@ -17,10 +17,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(NOT BITS)
|
||||
if(CMAKE_SIZEOF_VOID_P MATCHES "8")
|
||||
@@ -73,6 +73,18 @@ set(DCUBED_ROOT_DIR
|
||||
PATH
|
||||
"Root directory to search for DCubed")
|
||||
|
||||
# Do this by default
|
||||
if(NOT DEFINED DCUBED_NESTED_TARGETS)
|
||||
set(DCUBED_NESTED_TARGETS TRUE)
|
||||
endif()
|
||||
|
||||
set(DCUBED_NESTED_TARGETS
|
||||
"${DCUBED_NESTED_TARGETS}"
|
||||
CACHE
|
||||
BOOL
|
||||
"Whether we should compile the wrappers as a part of the solution")
|
||||
mark_as_advanced(DCUBED_NESTED_TARGETS)
|
||||
|
||||
###
|
||||
# Configure DCubed
|
||||
###
|
||||
@@ -88,8 +100,10 @@ foreach(lib aem cdmwp d3e_base d3e_cd dcm dcm3 g3)
|
||||
${lib}
|
||||
PATHS
|
||||
"${DCUBED_ROOT_DIR}/lib/${_verstring}")
|
||||
list(APPEND DCUBED_LIBRARIES ${DCUBED_${lib}_LIBRARY})
|
||||
list(APPEND DCUBED_CORE_LIBRARIES ${DCUBED_${lib}_LIBRARY})
|
||||
if(DCUBED_${lib}_LIBRARY)
|
||||
list(APPEND DCUBED_LIBRARIES ${DCUBED_${lib}_LIBRARY})
|
||||
list(APPEND DCUBED_CORE_LIBRARIES ${DCUBED_${lib}_LIBRARY})
|
||||
endif()
|
||||
mark_as_advanced(DCUBED_${lib}_LIBRARY)
|
||||
endforeach()
|
||||
|
||||
@@ -103,18 +117,44 @@ foreach(lib d3ew_p d3ew_scene)
|
||||
${lib}_${D3BUILD}
|
||||
PATHS
|
||||
"${DCUBED_ROOT_DIR}/wrappers/cdmwp/${lib}")
|
||||
list(APPEND DCUBED_LIBRARIES ${DCUBED_WRAPPER_${lib}_LIBRARY})
|
||||
list(APPEND DCUBED_WRAPPER_LIBRARIES ${DCUBED_WRAPPER_${lib}_LIBRARY})
|
||||
mark_as_advanced(DCUBED_WRAPPER_${lib}_LIBRARY)
|
||||
endforeach()
|
||||
|
||||
list(APPEND DCUBED_LIBRARIES ${DCUBED_WRAPPER_LIBRARIES})
|
||||
set(_nest_targets)
|
||||
if(DCUBED_WRAPPER_INCLUDE_DIR)
|
||||
foreach(lib d3ew_p d3ew_scene)
|
||||
if(DCUBED_NESTED_TARGETS OR NOT DCUBED_WRAPPER_${lib}_LIBRARY)
|
||||
if(PARASOLID_FOUND)
|
||||
set(_nest_targets YES)
|
||||
set(DCUBED_WRAPPER_${lib}_LIBRARY
|
||||
"dcubed_wrapper_${lib}_nested_target"
|
||||
CACHE
|
||||
STRING
|
||||
"We will build the DCubed wrapper ${lib} lib."
|
||||
FORCE)
|
||||
else()
|
||||
set(DCUBED_WRAPPER_${lib}_LIBRARY
|
||||
"NESTED_TARGET_REQUIRES_PARASOLID-NOTFOUND"
|
||||
CACHE
|
||||
STRING
|
||||
"Can't build the DCubed wrapper ${lib} without first finding Parasolid."
|
||||
FORCE)
|
||||
endif()
|
||||
endif()
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
foreach(lib d3ew_p d3ew_scene)
|
||||
if(DCUBED_WRAPPER_${lib}_LIBRARY)
|
||||
list(APPEND DCUBED_WRAPPER_LIBRARIES ${DCUBED_WRAPPER_${lib}_LIBRARY})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
if(NOT DCUBED_ROOT_DIR)
|
||||
get_filename_component(_path "${DCUBED_dcm_LIBRARY}" PATH)
|
||||
get_filename_component(_path "${_path}/../.." ABSOLUTE)
|
||||
set(DCUBED_ROOT_DIR
|
||||
"${DCUBED_ROOT_DIR}"
|
||||
"${_path}"
|
||||
CACHE
|
||||
PATH
|
||||
"Root directory to search for DCubed"
|
||||
@@ -137,8 +177,13 @@ find_package_handle_standard_args(DCubed
|
||||
DCUBED_WRAPPER_LIBRARIES)
|
||||
|
||||
if(DCUBED_FOUND)
|
||||
if(_nest_targets)
|
||||
get_filename_component(_moddir "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
||||
add_subdirectory("${_moddir}/nested_targets/DCubed")
|
||||
endif()
|
||||
set(DCUBED_INCLUDE_DIRS
|
||||
"${DCUBED_CORE_INCLUDE_DIR}"
|
||||
"${DCUBED_CORE_INCLUDE_DIR}/if3"
|
||||
"${DCUBED_WRAPPER_INCLUDE_DIR}")
|
||||
mark_as_advanced(DCUBED_ROOT_DIR)
|
||||
endif()
|
||||
|
||||
@@ -33,10 +33,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
|
||||
###
|
||||
|
||||
60
cmake/FindGDB.cmake
Normal file
60
cmake/FindGDB.cmake
Normal file
@@ -0,0 +1,60 @@
|
||||
# - Try to find GDB
|
||||
#
|
||||
# Once done, this will define:
|
||||
# GDB_FOUND - system has GDB
|
||||
# GDB_COMMAND - the command to run
|
||||
# GDB_VERSION - version
|
||||
# GDB_HAS_RETURN_CHILD_RESULT - if the --return-child-result flag is supported
|
||||
#
|
||||
# Useful configuration variables you might want to add to your cache:
|
||||
# GDB_ROOT_DIR - A directory prefix to search
|
||||
#
|
||||
# Original Author:
|
||||
# 2009-2010 Ryan Pavlik <rpavlik@iastate.edu> <abiryan@ryand.net>
|
||||
# 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(GDB_ROOT_DIR
|
||||
"${GDB_ROOT_DIR}"
|
||||
CACHE
|
||||
PATH
|
||||
"Directory to start our search in")
|
||||
|
||||
find_program(GDB_COMMAND
|
||||
NAMES
|
||||
gdb
|
||||
HINTS
|
||||
"${GDB_ROOT_DIR}"
|
||||
PATH_SUFFIXES
|
||||
bin
|
||||
libexec)
|
||||
|
||||
if(GDB_COMMAND)
|
||||
execute_process(COMMAND gdb --version
|
||||
COMMAND head -n 1
|
||||
COMMAND sed -r "s/[^0-9]*([0-9]+[0-9.]*).*/\\1/"
|
||||
OUTPUT_VARIABLE GDB_VERSION
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
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(GDB DEFAULT_MSG GDB_COMMAND GDB_VERSION)
|
||||
|
||||
if(GDB_FOUND)
|
||||
mark_as_advanced(GDB_ROOT_DIR)
|
||||
if(GDB_VERSION VERSION_LESS 6.4)
|
||||
set(GDB_HAS_RETURN_CHILD_RESULT FALSE)
|
||||
else()
|
||||
set(GDB_HAS_RETURN_CHILD_RESULT TRUE)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
mark_as_advanced(GDB_COMMAND)
|
||||
@@ -12,10 +12,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
set(GHOST_ROOT_DIR
|
||||
"${GHOST_ROOT_DIR}"
|
||||
|
||||
@@ -18,10 +18,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(GLUI_FIND_QUIETLY)
|
||||
find_package(OpenGL QUIET)
|
||||
|
||||
@@ -28,10 +28,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
set(_HUMAN "GMTL")
|
||||
set(_HEADER gmtl/gmtl.h)
|
||||
|
||||
@@ -17,10 +17,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
find_library(GPM_LIBRARY
|
||||
NAMES gpm)
|
||||
|
||||
@@ -34,10 +34,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
set(_HUMAN "Gadgeteer 1.2")
|
||||
set(_RELEASE_NAMES gadget-1_2 libgadget-1_2)
|
||||
|
||||
183
cmake/FindGadgeteer20.cmake
Normal file
183
cmake/FindGadgeteer20.cmake
Normal file
@@ -0,0 +1,183 @@
|
||||
# - try to find Gadgeteer 2.0 library
|
||||
# Requires JCCL 1.4 and VPR 2.2 (thus FindJCCL14.cmake and FindVPR22.cmake)
|
||||
# Requires X11 if not on Mac or Windows.
|
||||
# Optionally uses Flagpoll and FindFlagpoll.cmake
|
||||
#
|
||||
# This library is a part of VR Juggler 3.0 - you probably want to use
|
||||
# find_package(VRJuggler30) instead, for an easy interface to this and
|
||||
# related scripts. See FindVRJuggler30.cmake for more information.
|
||||
#
|
||||
# GADGETEER20_LIBRARY_DIR, library search path
|
||||
# GADGETEER20_INCLUDE_DIR, include search path
|
||||
# GADGETEER20_LIBRARY, the library to link against
|
||||
# GADGETEER20_FOUND, If false, do not try to use this library.
|
||||
#
|
||||
# Plural versions refer to this library and its dependencies, and
|
||||
# are recommended to be used instead, unless you have a good reason.
|
||||
#
|
||||
# Useful configuration variables you might want to add to your cache:
|
||||
# GADGETEER20_ROOT_DIR - A directory prefix to search
|
||||
# (a path that contains include/ as a subdirectory)
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
# The VJ_BASE_DIR environment variable is also searched (preferentially)
|
||||
# when searching for this component, so most sane 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 <rpavlik@iastate.edu> <abiryan@ryand.net>
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
# Updated for VR Juggler 3.0 by:
|
||||
# Brandon Newendorp <brandon@newendorp.com>
|
||||
|
||||
set(_HUMAN "Gadgeteer 2.0")
|
||||
set(_RELEASE_NAMES gadget-2_0 libgadget-2_0 gadget-2_0_0)
|
||||
set(_DEBUG_NAMES gadget_d-2_0 libgadget_d-2_0 gadget_d-2_0_0)
|
||||
set(_DIR gadgeteer-2.0)
|
||||
set(_HEADER gadget/gadgetConfig.h)
|
||||
set(_FP_PKG_NAME gadgeteer)
|
||||
|
||||
include(SelectLibraryConfigurations)
|
||||
include(CreateImportedTarget)
|
||||
include(CleanLibraryList)
|
||||
include(CleanDirectoryList)
|
||||
|
||||
if(GADGETEER20_FIND_QUIETLY)
|
||||
set(_FIND_FLAGS "QUIET")
|
||||
else()
|
||||
set(_FIND_FLAGS "")
|
||||
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_extra_libs(${_FP_PKG_NAME} NO_DEPS)
|
||||
endif()
|
||||
|
||||
set(GADGETEER20_ROOT_DIR
|
||||
"${GADGETEER20_ROOT_DIR}"
|
||||
CACHE
|
||||
PATH
|
||||
"Root directory to search for Gadgeteer")
|
||||
if(DEFINED VRJUGGLER30_ROOT_DIR)
|
||||
mark_as_advanced(GADGETEER20_ROOT_DIR)
|
||||
endif()
|
||||
if(NOT GADGETEER20_ROOT_DIR)
|
||||
set(GADGETEER20_ROOT_DIR "${VRJUGGLER30_ROOT_DIR}")
|
||||
endif()
|
||||
|
||||
set(_ROOT_DIR "${GADGETEER20_ROOT_DIR}")
|
||||
|
||||
find_path(GADGETEER20_INCLUDE_DIR
|
||||
${_HEADER}
|
||||
HINTS
|
||||
"${_ROOT_DIR}"
|
||||
${${_FP_PKG_NAME}_FLAGPOLL_INCLUDE_DIRS}
|
||||
PATH_SUFFIXES
|
||||
${_DIR}
|
||||
include/${_DIR}
|
||||
include/
|
||||
DOC
|
||||
"Path to ${_HUMAN} includes root")
|
||||
|
||||
find_library(GADGETEER20_LIBRARY_RELEASE
|
||||
NAMES
|
||||
${_RELEASE_NAMES}
|
||||
HINTS
|
||||
"${_ROOT_DIR}"
|
||||
${${_FP_PKG_NAME}_FLAGPOLL_LIBRARY_DIRS}
|
||||
PATH_SUFFIXES
|
||||
${_VRJ_LIBSUFFIXES}
|
||||
DOC
|
||||
"${_HUMAN} release library full path")
|
||||
|
||||
find_library(GADGETEER20_LIBRARY_DEBUG
|
||||
NAMES
|
||||
${_DEBUG_NAMES}
|
||||
HINTS
|
||||
"${_ROOT_DIR}"
|
||||
${${_FP_PKG_NAME}_FLAGPOLL_LIBRARY_DIRS}
|
||||
PATH_SUFFIXES
|
||||
${_VRJ_LIBDSUFFIXES}
|
||||
DOC
|
||||
"${_HUMAN} debug library full path")
|
||||
|
||||
select_library_configurations(GADGETEER20)
|
||||
|
||||
# Dependencies
|
||||
foreach(package JCCL14 VPR22 GMTL)
|
||||
if(NOT ${PACKAGE}_FOUND)
|
||||
find_package(${package} ${_FIND_FLAGS})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
if(UNIX AND NOT APPLE AND NOT WIN32)
|
||||
# We need X11 if not on Mac or Windows
|
||||
if(NOT X11_FOUND)
|
||||
find_package(X11 ${_FIND_FLAGS})
|
||||
endif()
|
||||
|
||||
set(_CHECK_EXTRAS
|
||||
X11_FOUND
|
||||
X11_X11_LIB
|
||||
X11_ICE_LIB
|
||||
X11_SM_LIB
|
||||
X11_INCLUDE_DIR)
|
||||
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(GADGETEER20
|
||||
DEFAULT_MSG
|
||||
GADGETEER20_LIBRARY
|
||||
GADGETEER20_INCLUDE_DIR
|
||||
JCCL14_FOUND
|
||||
JCCL14_LIBRARIES
|
||||
JCCL14_INCLUDE_DIR
|
||||
VPR22_FOUND
|
||||
VPR22_LIBRARIES
|
||||
VPR22_INCLUDE_DIR
|
||||
GMTL_FOUND
|
||||
GMTL_INCLUDE_DIR
|
||||
${_CHECK_EXTRAS})
|
||||
|
||||
if(GADGETEER20_FOUND)
|
||||
set(_DEPS ${JCCL14_LIBRARIES} ${VPR22_LIBRARIES})
|
||||
|
||||
set(GADGETEER20_INCLUDE_DIRS ${GADGETEER20_INCLUDE_DIR})
|
||||
list(APPEND
|
||||
GADGETEER20_INCLUDE_DIRS
|
||||
${JCCL14_INCLUDE_DIRS}
|
||||
${VPR22_INCLUDE_DIRS}
|
||||
${GMTL_INCLUDE_DIRS})
|
||||
|
||||
if(UNIX AND NOT APPLE AND NOT WIN32)
|
||||
# We need X11 if not on Mac or Windows
|
||||
list(APPEND _DEPS ${X11_X11_LIB} ${X11_ICE_LIB} ${X11_SM_LIB})
|
||||
list(APPEND GADGETEER20_INCLUDE_DIRS ${X11_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
clean_directory_list(GADGETEER20_INCLUDE_DIRS)
|
||||
|
||||
if(VRJUGGLER30_CREATE_IMPORTED_TARGETS)
|
||||
create_imported_target(GADGETEER20 ${_DEPS})
|
||||
else()
|
||||
clean_library_list(GADGETEER20_LIBRARIES ${_DEPS})
|
||||
endif()
|
||||
|
||||
mark_as_advanced(GADGETEER20_ROOT_DIR)
|
||||
endif()
|
||||
|
||||
mark_as_advanced(GADGETEER20_LIBRARY_RELEASE
|
||||
GADGETEER20_LIBRARY_DEBUG
|
||||
GADGETEER20_INCLUDE_DIR)
|
||||
@@ -27,10 +27,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
set(GLOVE5DT_ROOT_DIR
|
||||
"${GLOVE5DT_ROOT_DIR}"
|
||||
@@ -86,19 +86,22 @@ find_path(GLOVE5DT_INCLUDE_DIR
|
||||
NAMES
|
||||
fglove.h
|
||||
HINTS
|
||||
${_incsearchultra})
|
||||
${_incsearchultra}
|
||||
${GLOVE5DT_ROOT_DIR})
|
||||
|
||||
find_library(GLOVE5DT_LIBRARY_RELEASE
|
||||
NAMES
|
||||
fglove
|
||||
HINTS
|
||||
${_libsearchultra})
|
||||
${_libsearchultra}
|
||||
${GLOVE5DT_ROOT_DIR})
|
||||
|
||||
find_library(GLOVE5DT_LIBRARY_DEBUG
|
||||
NAMES
|
||||
fgloved
|
||||
HINTS
|
||||
${_libsearchultra})
|
||||
${_libsearchultra}
|
||||
${GLOVE5DT_ROOT_DIR})
|
||||
|
||||
|
||||
select_library_configurations(GLOVE5DT)
|
||||
|
||||
44
cmake/FindHIDAPI.cmake
Normal file
44
cmake/FindHIDAPI.cmake
Normal file
@@ -0,0 +1,44 @@
|
||||
# - try to find HIDAPI library
|
||||
# from http://www.signal11.us/oss/hidapi/
|
||||
#
|
||||
# Cache Variables: (probably not for direct use in your scripts)
|
||||
# HIDAPI_INCLUDE_DIR
|
||||
# HIDAPI_LIBRARY
|
||||
#
|
||||
# Non-cache variables you might use in your CMakeLists.txt:
|
||||
# HIDAPI_FOUND
|
||||
# HIDAPI_INCLUDE_DIRS
|
||||
# HIDAPI_LIBRARIES
|
||||
#
|
||||
# Requires these CMake modules:
|
||||
# FindPackageHandleStandardArgs (known included with CMake >=2.6.2)
|
||||
#
|
||||
# Original Author:
|
||||
# 2009-2010 Ryan Pavlik <rpavlik@iastate.edu> <abiryan@ryand.net>
|
||||
# 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)
|
||||
|
||||
find_library(HIDAPI_LIBRARY
|
||||
NAMES hidapi)
|
||||
|
||||
find_path(HIDAPI_INCLUDE_DIR
|
||||
NAMES hidapi.h)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(HIDAPI
|
||||
DEFAULT_MSG
|
||||
HIDAPI_LIBRARY
|
||||
HIDAPI_INCLUDE_DIR)
|
||||
|
||||
if(HIDAPI_FOUND)
|
||||
set(HIDAPI_LIBRARIES "${HIDAPI_LIBRARY}")
|
||||
|
||||
set(HIDAPI_INCLUDE_DIRS "${HIDAPI_INCLUDE_DIR}")
|
||||
endif()
|
||||
|
||||
mark_as_advanced(HIDAPI_INCLUDE_DIR HIDAPI_LIBRARY)
|
||||
@@ -33,10 +33,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
|
||||
set(_HUMAN "JCCL 1.2")
|
||||
|
||||
149
cmake/FindJCCL14.cmake
Normal file
149
cmake/FindJCCL14.cmake
Normal file
@@ -0,0 +1,149 @@
|
||||
# - try to find JCCL 1.4 library
|
||||
# Requires VPR 2.2 (thus FindVPR22.cmake)
|
||||
# Optionally uses Flagpoll and FindFlagpoll.cmake
|
||||
#
|
||||
# This library is a part of VR Juggler 3.0 - you probably want to use
|
||||
# find_package(VRJuggler30) instead, for an easy interface to this and
|
||||
# related scripts. See FindVRJuggler30.cmake for more information.
|
||||
#
|
||||
# JCCL14_LIBRARY_DIR, library search path
|
||||
# JCCL14_INCLUDE_DIR, include search path
|
||||
# JCCL14_LIBRARY, the library to link against
|
||||
# JCCL14_FOUND, If false, do not try to use this library.
|
||||
#
|
||||
# Plural versions refer to this library and its dependencies, and
|
||||
# are recommended to be used instead, unless you have a good reason.
|
||||
#
|
||||
# Useful configuration variables you might want to add to your cache:
|
||||
# JCCL14_ROOT_DIR - A directory prefix to search
|
||||
# (a path that contains include/ as a subdirectory)
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
# The VJ_BASE_DIR environment variable is also searched (preferentially)
|
||||
# when searching for this component, so most sane 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 <rpavlik@iastate.edu> <abiryan@ryand.net>
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
# Updated for VR Juggler 3.0 by:
|
||||
# Brandon Newendorp <brandon@newendorp.com>
|
||||
|
||||
|
||||
set(_HUMAN "JCCL 1.4")
|
||||
set(_RELEASE_NAMES jccl-1_4 libjccl-1_4 jccl-1_4_0)
|
||||
set(_DEBUG_NAMES jccl_d-1_4 libjccl_d-1_4 jccl_d-1_4_0)
|
||||
set(_DIR jccl-1.4)
|
||||
set(_HEADER jccl/jcclConfig.h)
|
||||
set(_FP_PKG_NAME jccl)
|
||||
|
||||
include(SelectLibraryConfigurations)
|
||||
include(CreateImportedTarget)
|
||||
include(CleanLibraryList)
|
||||
include(CleanDirectoryList)
|
||||
|
||||
if(JCCL14_FIND_QUIETLY)
|
||||
set(_FIND_FLAGS "QUIET")
|
||||
else()
|
||||
set(_FIND_FLAGS "")
|
||||
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)
|
||||
endif()
|
||||
|
||||
set(JCCL14_ROOT_DIR
|
||||
"${JCCL14_ROOT_DIR}"
|
||||
CACHE
|
||||
PATH
|
||||
"Root directory to search for JCCL")
|
||||
if(DEFINED VRJUGGLER30_ROOT_DIR)
|
||||
mark_as_advanced(JCCL14_ROOT_DIR)
|
||||
endif()
|
||||
if(NOT JCCL14_ROOT_DIR)
|
||||
set(JCCL14_ROOT_DIR "${VRJUGGLER30_ROOT_DIR}")
|
||||
endif()
|
||||
|
||||
set(_ROOT_DIR ${JCCL14_ROOT_DIR})
|
||||
|
||||
find_path(JCCL14_INCLUDE_DIR
|
||||
${_HEADER}
|
||||
HINTS
|
||||
"${_ROOT_DIR}"
|
||||
${${_FP_PKG_NAME}_FLAGPOLL_INCLUDE_DIRS}
|
||||
PATH_SUFFIXES
|
||||
${_DIR}
|
||||
include/${_DIR}
|
||||
include/
|
||||
DOC
|
||||
"Path to ${_HUMAN} includes root")
|
||||
|
||||
find_library(JCCL14_LIBRARY_RELEASE
|
||||
NAMES
|
||||
${_RELEASE_NAMES}
|
||||
HINTS
|
||||
"${_ROOT_DIR}"
|
||||
${${_FP_PKG_NAME}_FLAGPOLL_LIBRARY_DIRS}
|
||||
PATH_SUFFIXES
|
||||
${_VRJ_LIBSUFFIXES}
|
||||
DOC
|
||||
"${_HUMAN} release library full path")
|
||||
|
||||
find_library(JCCL14_LIBRARY_DEBUG
|
||||
NAMES
|
||||
${_DEBUG_NAMES}
|
||||
HINTS
|
||||
"${_ROOT_DIR}"
|
||||
${${_FP_PKG_NAME}_FLAGPOLL_LIBRARY_DIRS}
|
||||
PATH_SUFFIXES
|
||||
${_VRJ_LIBDSUFFIXES}
|
||||
DOC
|
||||
"${_HUMAN} debug library full path")
|
||||
|
||||
select_library_configurations(JCCL14)
|
||||
|
||||
# Dependency
|
||||
if(NOT VPR22_FOUND)
|
||||
find_package(VPR22 ${_FIND_FLAGS})
|
||||
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(JCCL14
|
||||
DEFAULT_MSG
|
||||
JCCL14_LIBRARY
|
||||
JCCL14_INCLUDE_DIR
|
||||
VPR22_FOUND
|
||||
VPR22_LIBRARIES
|
||||
VPR22_INCLUDE_DIR)
|
||||
|
||||
if(JCCL14_FOUND)
|
||||
set(_DEPS ${VPR22_LIBRARIES})
|
||||
|
||||
set(JCCL14_INCLUDE_DIRS ${JCCL14_INCLUDE_DIR})
|
||||
list(APPEND JCCL14_INCLUDE_DIRS ${VPR22_INCLUDE_DIRS})
|
||||
clean_directory_list(JCCL14_INCLUDE_DIRS)
|
||||
|
||||
if(VRJUGGLER30_CREATE_IMPORTED_TARGETS)
|
||||
create_imported_target(JCCL14 ${_DEPS})
|
||||
else()
|
||||
clean_library_list(JCCL14_LIBRARIES)
|
||||
endif()
|
||||
|
||||
mark_as_advanced(JCCL14_ROOT_DIR)
|
||||
endif()
|
||||
|
||||
mark_as_advanced(JCCL14_LIBRARY_RELEASE
|
||||
JCCL14_LIBRARY_DEBUG
|
||||
JCCL14_INCLUDE_DIR)
|
||||
@@ -22,10 +22,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
include(ListCombinations)
|
||||
include(CheckVersion)
|
||||
|
||||
@@ -11,10 +11,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
set(_check)
|
||||
|
||||
|
||||
93
cmake/FindLibusb1.cmake
Normal file
93
cmake/FindLibusb1.cmake
Normal file
@@ -0,0 +1,93 @@
|
||||
# - try to find libusb-1 library
|
||||
#
|
||||
# Cache Variables: (probably not for direct use in your scripts)
|
||||
# LIBUSB1_LIBRARY
|
||||
# LIBUSB1_INCLUDE_DIR
|
||||
#
|
||||
# Non-cache variables you should use in your CMakeLists.txt:
|
||||
# LIBUSB1_LIBRARIES
|
||||
# LIBUSB1_INCLUDE_DIRS
|
||||
# LIBUSB1_FOUND - if this is not true, do not attempt to use this library
|
||||
#
|
||||
# Requires these CMake modules:
|
||||
# ProgramFilesGlob
|
||||
# FindPackageHandleStandardArgs (known included with CMake >=2.6.2)
|
||||
#
|
||||
# Original Author:
|
||||
# 2009-2010 Ryan Pavlik <rpavlik@iastate.edu> <abiryan@ryand.net>
|
||||
# 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(LIBUSB1_ROOT_DIR
|
||||
"${LIBUSB1_ROOT_DIR}"
|
||||
CACHE
|
||||
PATH
|
||||
"Root directory to search for libusb-1")
|
||||
|
||||
if(WIN32)
|
||||
include(ProgramFilesGlob)
|
||||
program_files_fallback_glob(_dirs "LibUSB-Win32")
|
||||
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||
if(MSVC)
|
||||
set(_lib_suffixes lib/msvc_x64)
|
||||
endif()
|
||||
else()
|
||||
if(MSVC)
|
||||
set(_lib_suffixes lib/msvc)
|
||||
elseif(COMPILER_IS_GNUCXX)
|
||||
set(_lib_suffixes lib/gcc)
|
||||
endif()
|
||||
endif()
|
||||
else()
|
||||
set(_lib_suffixes)
|
||||
find_package(PkgConfig QUIET)
|
||||
if(PKG_CONFIG_FOUND)
|
||||
pkg_check_modules(PC_LIBUSB1 libusb-1.0)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
find_path(LIBUSB1_INCLUDE_DIR
|
||||
NAMES
|
||||
libusb.h
|
||||
PATHS
|
||||
${PC_LIBUSB1_INCLUDE_DIRS}
|
||||
${PC_LIBUSB1_INCLUDEDIR}
|
||||
${_dirs}
|
||||
HINTS
|
||||
"${LIBUSB1_ROOT_DIR}"
|
||||
PATH_SUFFIXES
|
||||
include)
|
||||
|
||||
find_library(LIBUSB1_LIBRARY
|
||||
NAMES
|
||||
usb-1.0
|
||||
PATHS
|
||||
${PC_LIBUSB1_LIBRARY_DIRS}
|
||||
${PC_LIBUSB1_LIBDIR}
|
||||
${_dirs}
|
||||
PATH_SUFFIXES
|
||||
${_lib_suffixes})
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(Libusb1
|
||||
DEFAULT_MSG
|
||||
LIBUSB1_LIBRARY
|
||||
LIBUSB1_INCLUDE_DIR)
|
||||
|
||||
if(LIBUSB1_FOUND)
|
||||
set(LIBUSB1_LIBRARIES
|
||||
"${LIBUSB1_LIBRARY}")
|
||||
|
||||
set(LIBUSB1_INCLUDE_DIRS
|
||||
"${LIBUSB1_INCLUDE_DIR}")
|
||||
|
||||
mark_as_advanced(LIBUSB1_ROOT_DIR)
|
||||
endif()
|
||||
|
||||
mark_as_advanced(LIBUSB1_INCLUDE_DIR LIBUSB1_LIBRARY)
|
||||
@@ -17,10 +17,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
set(LUABIND_ROOT_DIR
|
||||
"${LUABIND_ROOT_DIR}"
|
||||
|
||||
@@ -31,10 +31,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
|
||||
set(LYX_ROOT_DIR
|
||||
|
||||
@@ -22,10 +22,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(APPLE)
|
||||
find_library(MACHID_CoreFoundation_LIBRARY CoreFoundation)
|
||||
|
||||
@@ -44,10 +44,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
cmake_minimum_required(VERSION 2.6.3)
|
||||
|
||||
|
||||
@@ -22,10 +22,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
include(ListCombinations)
|
||||
include(CheckVersion)
|
||||
|
||||
@@ -33,10 +33,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
|
||||
set(_HUMAN "Sonix 1.2")
|
||||
|
||||
159
cmake/FindSonix14.cmake
Normal file
159
cmake/FindSonix14.cmake
Normal file
@@ -0,0 +1,159 @@
|
||||
# - try to find Sonix 1.4 library
|
||||
# Requires VPR 2.2 and GMTL (thus FindVPR22.cmake and FindGMTL.cmake)
|
||||
# Optionally uses Flagpoll and FindFlagpoll.cmake
|
||||
#
|
||||
# This library is a part of VR Juggler 3.0 - you probably want to use
|
||||
# find_package(VRJuggler30) instead, for an easy interface to this and
|
||||
# related scripts. See FindVRJuggler30.cmake for more information.
|
||||
#
|
||||
# SONIX14_LIBRARY_DIR, library search path
|
||||
# SONIX14_INCLUDE_DIR, include search path
|
||||
# SONIX14_LIBRARY, the library to link against
|
||||
# SONIX14_FOUND, If false, do not try to use this library.
|
||||
#
|
||||
# Plural versions refer to this library and its dependencies, and
|
||||
# are recommended to be used instead, unless you have a good reason.
|
||||
#
|
||||
# Useful configuration variables you might want to add to your cache:
|
||||
# SONIX14_ROOT_DIR - A directory prefix to search
|
||||
# (a path that contains include/ as a subdirectory)
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
# The VJ_BASE_DIR environment variable is also searched (preferentially)
|
||||
# when searching for this component, so most sane 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 <rpavlik@iastate.edu> <abiryan@ryand.net>
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
# Updated for VR Juggler 3.0 by:
|
||||
# Brandon Newendorp <brandon@newendorp.com>
|
||||
|
||||
|
||||
set(_HUMAN "Sonix 1.4")
|
||||
set(_RELEASE_NAMES sonix-1_4 libsonix-1_4 sonix-1_4_0)
|
||||
set(_DEBUG_NAMES sonix_d-1_4 libsonix_d-1_4 sonix_d-1_4_0)
|
||||
set(_DIR sonix-1.4)
|
||||
set(_HEADER snx/sonix.h)
|
||||
set(_FP_PKG_NAME sonix)
|
||||
|
||||
include(SelectLibraryConfigurations)
|
||||
include(CreateImportedTarget)
|
||||
include(CleanLibraryList)
|
||||
include(CleanDirectoryList)
|
||||
|
||||
if(SONIX14_FIND_QUIETLY)
|
||||
set(_FIND_FLAGS "QUIET")
|
||||
else()
|
||||
set(_FIND_FLAGS "")
|
||||
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)
|
||||
endif()
|
||||
|
||||
set(SONIX14_ROOT_DIR
|
||||
"${SONIX14_ROOT_DIR}"
|
||||
CACHE
|
||||
PATH
|
||||
"Root directory to search for Sonix")
|
||||
if(DEFINED VRJUGGLER30_ROOT_DIR)
|
||||
mark_as_advanced(SONIX14_ROOT_DIR)
|
||||
endif()
|
||||
if(NOT SONIX14_ROOT_DIR)
|
||||
set(SONIX14_ROOT_DIR "${VRJUGGLER30_ROOT_DIR}")
|
||||
endif()
|
||||
|
||||
set(_ROOT_DIR "${SONIX14_ROOT_DIR}")
|
||||
|
||||
find_path(SONIX14_INCLUDE_DIR
|
||||
${_HEADER}
|
||||
HINTS
|
||||
"${_ROOT_DIR}"
|
||||
${${_FP_PKG_NAME}_FLAGPOLL_INCLUDE_DIRS}
|
||||
PATH_SUFFIXES
|
||||
${_DIR}
|
||||
include/${_DIR}
|
||||
include/
|
||||
DOC
|
||||
"Path to ${_HUMAN} includes root")
|
||||
|
||||
find_library(SONIX14_LIBRARY_RELEASE
|
||||
NAMES
|
||||
${_RELEASE_NAMES}
|
||||
HINTS
|
||||
"${_ROOT_DIR}"
|
||||
${${_FP_PKG_NAME}_FLAGPOLL_LIBRARY_DIRS}
|
||||
PATH_SUFFIXES
|
||||
${_VRJ_LIBSUFFIXES}
|
||||
DOC
|
||||
"${_HUMAN} release library full path")
|
||||
|
||||
find_library(SONIX14_LIBRARY_DEBUG
|
||||
NAMES
|
||||
${_DEBUG_NAMES}
|
||||
HINTS
|
||||
"${_ROOT_DIR}"
|
||||
${${_FP_PKG_NAME}_FLAGPOLL_LIBRARY_DIRS}
|
||||
PATH_SUFFIXES
|
||||
${_VRJ_LIBDSUFFIXES}
|
||||
DOC
|
||||
"${_HUMAN} debug library full path")
|
||||
|
||||
select_library_configurations(SONIX14)
|
||||
|
||||
# Dependencies
|
||||
if(NOT VPR22_FOUND)
|
||||
find_package(VPR22 ${_FIND_FLAGS})
|
||||
endif()
|
||||
|
||||
if(NOT GMTL_FOUND)
|
||||
find_package(GMTL ${_FIND_FLAGS})
|
||||
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(SONIX14
|
||||
DEFAULT_MSG
|
||||
SONIX14_LIBRARY
|
||||
SONIX14_INCLUDE_DIR
|
||||
VPR22_FOUND
|
||||
VPR22_LIBRARIES
|
||||
VPR22_INCLUDE_DIR
|
||||
GMTL_FOUND
|
||||
GMTL_INCLUDE_DIR)
|
||||
|
||||
if(SONIX14_FOUND)
|
||||
set(_DEPS ${VPR22_LIBRARIES})
|
||||
|
||||
set(SONIX14_INCLUDE_DIRS ${SONIX14_INCLUDE_DIR})
|
||||
list(APPEND
|
||||
SONIX14_INCLUDE_DIRS
|
||||
${VPR22_INCLUDE_DIRS}
|
||||
${GMTL_INCLUDE_DIRS})
|
||||
|
||||
clean_directory_list(SONIX14_INCLUDE_DIRS)
|
||||
|
||||
if(VRJUGGLER30_CREATE_IMPORTED_TARGETS)
|
||||
create_imported_target(SONIX14 ${_DEPS})
|
||||
else()
|
||||
clean_library_list(SONIX14_LIBRARIES ${_DEPS})
|
||||
endif()
|
||||
|
||||
mark_as_advanced(SONIX14_ROOT_DIR)
|
||||
endif()
|
||||
|
||||
mark_as_advanced(SONIX14_LIBRARY_RELEASE
|
||||
SONIX14_LIBRARY_DEBUG
|
||||
SONIX14_INCLUDE_DIR)
|
||||
@@ -15,10 +15,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
# If we were sought quietly, any dependencies should be quiet as well
|
||||
if(TR1_FIND_QUIETLY)
|
||||
|
||||
@@ -19,10 +19,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
set(TOON_ROOT_DIR
|
||||
"${TOON_ROOT_DIR}"
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
set(TOONTAG_ROOT_DIR
|
||||
"${TOONTAG_ROOT_DIR}"
|
||||
|
||||
@@ -33,10 +33,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
|
||||
set(_HUMAN "Tweek 1.2")
|
||||
|
||||
150
cmake/FindTweek14.cmake
Normal file
150
cmake/FindTweek14.cmake
Normal file
@@ -0,0 +1,150 @@
|
||||
# - try to find Tweek 1.4 library
|
||||
# Requires VPR 2.2 (thus FindVPR22.cmake)
|
||||
# Optionally uses Flagpoll and FindFlagpoll.cmake
|
||||
#
|
||||
# This library is a part of VR Juggler 3.0 - you probably want to use
|
||||
# find_package(VRJuggler30) instead, for an easy interface to this and
|
||||
# related scripts. See FindVRJuggler30.cmake for more information.
|
||||
#
|
||||
# TWEEK14_LIBRARY_DIR, library search path
|
||||
# TWEEK14_INCLUDE_DIR, include search path
|
||||
# TWEEK14_LIBRARY, the library to link against
|
||||
# TWEEK14_FOUND, If false, do not try to use this library.
|
||||
#
|
||||
# Plural versions refer to this library and its dependencies, and
|
||||
# are recommended to be used instead, unless you have a good reason.
|
||||
#
|
||||
# Useful configuration variables you might want to add to your cache:
|
||||
# TWEEK14_ROOT_DIR - A directory prefix to search
|
||||
# (a path that contains include/ as a subdirectory)
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
# The VJ_BASE_DIR environment variable is also searched (preferentially)
|
||||
# when searching for this component, so most sane 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 <rpavlik@iastate.edu> <abiryan@ryand.net>
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
# Updated for VR Juggler 3.0 by:
|
||||
# Brandon Newendorp <brandon@newendorp.com>
|
||||
|
||||
|
||||
set(_HUMAN "Tweek 1.4")
|
||||
set(_RELEASE_NAMES tweek-1_4 libtweek-1_4 tweek-1_4_0)
|
||||
set(_DEBUG_NAMES tweek_d-1_4 libtweek_d-1_4 tweek_d-1_4_0)
|
||||
set(_DIR tweek-1.4)
|
||||
set(_HEADER tweek/tweek.h)
|
||||
set(_FP_PKG_NAME tweek)
|
||||
|
||||
include(SelectLibraryConfigurations)
|
||||
include(CreateImportedTarget)
|
||||
include(CleanLibraryList)
|
||||
include(CleanDirectoryList)
|
||||
|
||||
if(TWEEK14_FIND_QUIETLY)
|
||||
set(_FIND_FLAGS "QUIET")
|
||||
else()
|
||||
set(_FIND_FLAGS "")
|
||||
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)
|
||||
endif()
|
||||
|
||||
set(TWEEK14_ROOT_DIR
|
||||
"${TWEEK14_ROOT_DIR}"
|
||||
CACHE
|
||||
PATH
|
||||
"Root directory to search for Tweek")
|
||||
if(DEFINED VRJUGGLER30_ROOT_DIR)
|
||||
mark_as_advanced(TWEEK14_ROOT_DIR)
|
||||
endif()
|
||||
if(NOT TWEEK14_ROOT_DIR)
|
||||
set(TWEEK14_ROOT_DIR "${VRJUGGLER30_ROOT_DIR}")
|
||||
endif()
|
||||
|
||||
set(_ROOT_DIR "${TWEEK14_ROOT_DIR}")
|
||||
|
||||
find_path(TWEEK14_INCLUDE_DIR
|
||||
${_HEADER}
|
||||
HINTS
|
||||
"${_ROOT_DIR}"
|
||||
${${_FP_PKG_NAME}_FLAGPOLL_INCLUDE_DIRS}
|
||||
PATH_SUFFIXES
|
||||
${_DIR}
|
||||
include/${_DIR}
|
||||
include/
|
||||
DOC
|
||||
"Path to ${_HUMAN} includes root")
|
||||
|
||||
find_library(TWEEK14_LIBRARY_RELEASE
|
||||
NAMES
|
||||
${_RELEASE_NAMES}
|
||||
HINTS
|
||||
"${_ROOT_DIR}"
|
||||
${${_FP_PKG_NAME}_FLAGPOLL_LIBRARY_DIRS}
|
||||
PATH_SUFFIXES
|
||||
${_VRJ_LIBSUFFIXES}
|
||||
DOC
|
||||
"${_HUMAN} release library full path")
|
||||
|
||||
find_library(TWEEK14_LIBRARY_DEBUG
|
||||
NAMES
|
||||
${_DEBUG_NAMES}
|
||||
HINTS
|
||||
"${_ROOT_DIR}"
|
||||
${${_FP_PKG_NAME}_FLAGPOLL_LIBRARY_DIRS}
|
||||
PATH_SUFFIXES
|
||||
${_VRJ_LIBDSUFFIXES}
|
||||
DOC
|
||||
"${_HUMAN} debug library full path")
|
||||
|
||||
select_library_configurations(TWEEK14)
|
||||
|
||||
# Dependency
|
||||
if(NOT VPR22_FOUND)
|
||||
find_package(VPR22 ${_FIND_FLAGS})
|
||||
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(TWEEK14
|
||||
DEFAULT_MSG
|
||||
TWEEK14_LIBRARY
|
||||
TWEEK14_INCLUDE_DIR
|
||||
VPR22_FOUND
|
||||
VPR22_LIBRARIES
|
||||
VPR22_INCLUDE_DIR)
|
||||
|
||||
if(TWEEK14_FOUND)
|
||||
set(_DEPS ${VPR22_LIBRARIES})
|
||||
|
||||
set(TWEEK14_INCLUDE_DIRS ${TWEEK14_INCLUDE_DIR})
|
||||
list(APPEND TWEEK14_INCLUDE_DIRS ${VPR22_INCLUDE_DIRS})
|
||||
|
||||
clean_directory_list(TWEEK14_INCLUDE_DIRS)
|
||||
|
||||
if(VRJUGGLER30_CREATE_IMPORTED_TARGETS)
|
||||
create_imported_target(TWEEK14 ${_DEPS})
|
||||
else()
|
||||
clean_library_list(TWEEK14_LIBRARIES ${_DEPS})
|
||||
endif()
|
||||
|
||||
mark_as_advanced(TWEEK14_ROOT_DIR)
|
||||
endif()
|
||||
|
||||
mark_as_advanced(TWEEK14_LIBRARY_RELEASE
|
||||
TWEEK14_LIBRARY_DEBUG
|
||||
TWEEK14_INCLUDE_DIR)
|
||||
@@ -37,10 +37,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
set(_HUMAN "VPR 2.0")
|
||||
set(_RELEASE_NAMES vpr-2_0 libvpr-2_0)
|
||||
|
||||
227
cmake/FindVPR22.cmake
Normal file
227
cmake/FindVPR22.cmake
Normal file
@@ -0,0 +1,227 @@
|
||||
# - try to find VPR 2.2 library
|
||||
# Requires Boost 1.33.1 or greater (including filesystem and signals libraries)
|
||||
# (and thus FindBoost.cmake from 2.8rc3 or newer, preferably)
|
||||
# Requires NSPR4 (and PLC4) on Windows
|
||||
# Requires pthreads on Unix (Mac or Linux)
|
||||
# Requires libuuid on Linux
|
||||
# Optionally uses Flagpoll and FindFlagpoll.cmake
|
||||
#
|
||||
# This library is a part of VR Juggler 3.0 - you probably want to use
|
||||
# find_package(VRJuggler30) instead, for an easy interface to this and
|
||||
# related scripts. See FindVRJuggler30.cmake for more information.
|
||||
#
|
||||
# VPR22_LIBRARY_DIR, library search path
|
||||
# VPR22_INCLUDE_DIR, include search path
|
||||
# VPR22_LIBRARY, the library to link against
|
||||
# VPR22_FOUND, If false, do not try to use this library.
|
||||
#
|
||||
# Plural versions refer to this library and its dependencies, and
|
||||
# are recommended to be used instead, unless you have a good reason.
|
||||
#
|
||||
# Useful configuration variables you might want to add to your cache:
|
||||
# VPR22_ROOT_DIR - A directory prefix to search
|
||||
# (a path that contains include/ as a subdirectory)
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
# The VJ_BASE_DIR environment variable is also searched (preferentially)
|
||||
# when searching for this component, so most sane 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 <rpavlik@iastate.edu> <abiryan@ryand.net>
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
# Updated for VR Juggler 3.0 by:
|
||||
# Brandon Newendorp <brandon@newendorp.com>
|
||||
|
||||
set(_HUMAN "VPR 2.2")
|
||||
set(_RELEASE_NAMES vpr-2_2 libvpr-2_2 vpr-2_2_0)
|
||||
set(_DEBUG_NAMES vpr_d-2_2 libvpr_d-2_2 vpr_d-2_2_0)
|
||||
set(_DIR vpr-2.2)
|
||||
set(_HEADER vpr/vpr.h)
|
||||
set(_FP_PKG_NAME vpr)
|
||||
|
||||
include(SelectLibraryConfigurations)
|
||||
include(CreateImportedTarget)
|
||||
include(CleanLibraryList)
|
||||
include(CleanDirectoryList)
|
||||
|
||||
if(VPR22_FIND_QUIETLY)
|
||||
set(_FIND_FLAGS "QUIET")
|
||||
else()
|
||||
set(_FIND_FLAGS "")
|
||||
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_extra_libs(${_FP_PKG_NAME} NO_DEPS)
|
||||
endif()
|
||||
|
||||
set(VPR22_ROOT_DIR
|
||||
"${VPR22_ROOT_DIR}"
|
||||
CACHE
|
||||
PATH
|
||||
"Root directory to search for VPR")
|
||||
if(DEFINED VRJUGGLER30_ROOT_DIR)
|
||||
mark_as_advanced(VPR22_ROOT_DIR)
|
||||
endif()
|
||||
if(NOT VPR22_ROOT_DIR)
|
||||
set(VPR22_ROOT_DIR "${VRJUGGLER30_ROOT_DIR}")
|
||||
endif()
|
||||
|
||||
set(_ROOT_DIR "${VPR22_ROOT_DIR}")
|
||||
|
||||
find_path(VPR22_INCLUDE_DIR
|
||||
${_HEADER}
|
||||
HINTS
|
||||
"${_ROOT_DIR}"
|
||||
${${_FP_PKG_NAME}_FLAGPOLL_INCLUDE_DIRS}
|
||||
PATH_SUFFIXES
|
||||
${_DIR}
|
||||
include/${_DIR}
|
||||
include/
|
||||
DOC
|
||||
"Path to ${_HUMAN} includes root")
|
||||
|
||||
find_library(VPR22_LIBRARY_RELEASE
|
||||
NAMES
|
||||
${_RELEASE_NAMES}
|
||||
HINTS
|
||||
"${_ROOT_DIR}"
|
||||
${${_FP_PKG_NAME}_FLAGPOLL_LIBRARY_DIRS}
|
||||
PATH_SUFFIXES
|
||||
${_VRJ_LIBSUFFIXES}
|
||||
DOC
|
||||
"${_HUMAN} release library full path")
|
||||
|
||||
find_library(VPR22_LIBRARY_DEBUG
|
||||
NAMES
|
||||
${_DEBUG_NAMES}
|
||||
HINTS
|
||||
"${_ROOT_DIR}"
|
||||
${${_FP_PKG_NAME}_FLAGPOLL_LIBRARY_DIRS}
|
||||
PATH_SUFFIXES
|
||||
${_VRJ_LIBDSUFFIXES}
|
||||
DOC
|
||||
"${_HUMAN} debug library full path")
|
||||
|
||||
select_library_configurations(VPR22)
|
||||
|
||||
# Dependencies
|
||||
set(_deps_libs)
|
||||
set(_deps_includes)
|
||||
set(_deps_check)
|
||||
if(COMMAND cmake_policy)
|
||||
cmake_policy(SET CMP0011 NEW)
|
||||
cmake_policy(SET CMP0012 NEW)
|
||||
endif()
|
||||
if((NOT Boost_FOUND)
|
||||
OR (NOT Boost_FILESYSTEM_FOUND)
|
||||
OR (NOT Boost_SIGNALS_FOUND)
|
||||
OR (NOT Boost_SYSTEM_FOUND)
|
||||
OR (NOT Boost_PROGRAM_OPTIONS_FOUND)
|
||||
OR (NOT Boost_DATE_TIME_FOUND)
|
||||
OR (NOT Boost_REGEX_FOUND))
|
||||
if(VPR22_LIBRARY_RELEASE)
|
||||
# Find Boost in the same place as VPR
|
||||
get_filename_component(VPR22_LIBRARY_DIR
|
||||
${VPR22_LIBRARY_RELEASE}
|
||||
PATH)
|
||||
set(BOOST_ROOT ${VPR22_LIBRARY_DIR}/../)
|
||||
|
||||
find_package(Boost
|
||||
1.40.0
|
||||
${_FIND_FLAGS}
|
||||
COMPONENTS
|
||||
filesystem
|
||||
system
|
||||
signals
|
||||
program_options
|
||||
date_time
|
||||
regex)
|
||||
|
||||
mark_as_advanced(Boost_LIB_DIAGNOSTIC_DEFINITIONS)
|
||||
|
||||
endif()
|
||||
|
||||
endif()
|
||||
|
||||
list(APPEND
|
||||
_deps_libs
|
||||
${Boost_FILESYSTEM_LIBRARY}
|
||||
${Boost_SYSTEM_LIBRARY}
|
||||
${Boost_SIGNALS_LIBRARY}
|
||||
${Boost_PROGRAM_OPTIONS_LIBRARY}
|
||||
${Boost_DATE_TIME_LIBRARY}
|
||||
${Boost_REGEX_LIBRARY})
|
||||
list(APPEND _deps_includes ${Boost_INCLUDE_DIRS})
|
||||
list(APPEND
|
||||
_deps_check
|
||||
Boost_FILESYSTEM_LIBRARY
|
||||
Boost_SYSTEM_LIBRARY
|
||||
Boost_SIGNALS_LIBRARY
|
||||
Boost_PROGRAM_OPTIONS_LIBRARY
|
||||
Boost_DATE_TIME_LIBRARY
|
||||
Boost_REGEX_LIBRARY
|
||||
Boost_INCLUDE_DIRS)
|
||||
|
||||
if(NOT CPPDOM_FOUND)
|
||||
find_package(CPPDOM ${_FIND_FLAGS})
|
||||
endif()
|
||||
|
||||
list(APPEND _deps_libs ${CPPDOM_LIBRARIES})
|
||||
list(APPEND _deps_includes ${CPPDOM_INCLUDE_DIRS})
|
||||
list(APPEND _deps_check CPPDOM_LIBRARIES CPPDOM_INCLUDE_DIRS)
|
||||
|
||||
if(UNIX AND NOT WIN32)
|
||||
if(NOT THREADS_FOUND)
|
||||
find_package(Threads ${_FIND_FLAGS})
|
||||
endif()
|
||||
|
||||
list(APPEND _deps_check THREADS_FOUND)
|
||||
list(APPEND _deps_libs ${CMAKE_THREAD_LIBS_INIT})
|
||||
|
||||
if(NOT APPLE)
|
||||
find_library(VPR22_libuuid_LIBRARY NAMES uuid)
|
||||
mark_as_advanced(VPR22_libuuid_LIBRARY)
|
||||
list(APPEND _deps_check VPR22_libuuid_LIBRARY)
|
||||
list(APPEND _deps_libs ${VPR22_libuuid_LIBRARY})
|
||||
endif()
|
||||
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(VPR22
|
||||
DEFAULT_MSG
|
||||
VPR22_LIBRARY
|
||||
VPR22_INCLUDE_DIR
|
||||
${_deps_check})
|
||||
|
||||
if(VPR22_FOUND)
|
||||
|
||||
set(VPR22_INCLUDE_DIRS ${VPR22_INCLUDE_DIR} ${_deps_includes})
|
||||
|
||||
clean_directory_list(VPR22_INCLUDE_DIRS)
|
||||
|
||||
if(VRJUGGLER30_CREATE_IMPORTED_TARGETS)
|
||||
create_imported_target(VPR22 ${_deps_libs})
|
||||
else()
|
||||
clean_library_list(VPR22_LIBRARIES ${VPR22_LIBRARY} ${_deps_libs})
|
||||
endif()
|
||||
|
||||
mark_as_advanced(VPR22_ROOT_DIR)
|
||||
endif()
|
||||
|
||||
mark_as_advanced(VPR22_LIBRARY_RELEASE
|
||||
VPR22_LIBRARY_DEBUG
|
||||
VPR22_INCLUDE_DIR)
|
||||
@@ -17,10 +17,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
include(SelectLibraryConfigurations)
|
||||
include(ListCombinations)
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
|
||||
set(_HUMAN "VR Juggler 2.2 Core")
|
||||
|
||||
212
cmake/FindVRJ30.cmake
Normal file
212
cmake/FindVRJ30.cmake
Normal file
@@ -0,0 +1,212 @@
|
||||
# - try to find VR Juggler 3.0 core library
|
||||
# Requires JCCL 1.4, Gadgeteer 1.4, VPR 2.2, and Sonix 1.4
|
||||
# (thus FindJCCL14.cmake, FindGadgeteer20.cmake, FindVPR22.cmake,
|
||||
# and FindSonix14.cmake)
|
||||
# Requires X11 if not on Mac or Windows.
|
||||
# Optionally uses Flagpoll and FindFlagpoll.cmake
|
||||
#
|
||||
# This library is a part of VR Juggler 3.0 - you probably want to use
|
||||
# find_package(VRJuggler30) instead, for an easy interface to this and
|
||||
# related scripts. See FindVRJuggler30.cmake for more information.
|
||||
#
|
||||
# VRJ30_LIBRARY_DIR, library search path
|
||||
# VRJ30_INCLUDE_DIR, include search path
|
||||
# VRJ30_LIBRARY, the library to link against
|
||||
# VRJ30_FOUND, If false, do not try to use this library.
|
||||
#
|
||||
# Plural versions refer to this library and its dependencies, and
|
||||
# are recommended to be used instead, unless you have a good reason.
|
||||
#
|
||||
# Useful configuration variables you might want to add to your cache:
|
||||
# VRJ30_ROOT_DIR - A directory prefix to search
|
||||
# (a path that contains include/ as a subdirectory)
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
# The VJ_BASE_DIR environment variable is also searched (preferentially)
|
||||
# when searching for this component, so most sane 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 <rpavlik@iastate.edu> <abiryan@ryand.net>
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
# Updated for VR Juggler 3.0 by:
|
||||
# Brandon Newendorp <brandon@newendorp.com>
|
||||
#
|
||||
# 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 "VR Juggler 3.0 Core")
|
||||
set(_RELEASE_NAMES vrj-3_0 libvrj-3_0 vrj-3_0_0)
|
||||
set(_DEBUG_NAMES vrj_d-3_0 libvrj_d-3_0 vrj_d-3_0_0)
|
||||
set(_DIR vrjuggler-3.0)
|
||||
set(_HEADER vrj/Kernel/Kernel.h)
|
||||
set(_FP_PKG_NAME vrjuggler)
|
||||
|
||||
include(SelectLibraryConfigurations)
|
||||
include(CreateImportedTarget)
|
||||
include(CleanLibraryList)
|
||||
include(CleanDirectoryList)
|
||||
|
||||
if(VRJ30_FIND_QUIETLY)
|
||||
set(_FIND_FLAGS "QUIET")
|
||||
else()
|
||||
set(_FIND_FLAGS "")
|
||||
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_extra_libs(${_FP_PKG_NAME} NO_DEPS)
|
||||
endif()
|
||||
|
||||
set(VRJ30_ROOT_DIR
|
||||
"${VRJ30_ROOT_DIR}"
|
||||
CACHE
|
||||
PATH
|
||||
"Root directory to search for VRJ")
|
||||
if(DEFINED VRJUGGLER30_ROOT_DIR)
|
||||
mark_as_advanced(VRJ30_ROOT_DIR)
|
||||
endif()
|
||||
if(NOT VRJ30_ROOT_DIR)
|
||||
set(VRJ30_ROOT_DIR "${VRJUGGLER30_ROOT_DIR}")
|
||||
endif()
|
||||
|
||||
set(_ROOT_DIR "${VRJ30_ROOT_DIR}")
|
||||
|
||||
find_path(VRJ30_INCLUDE_DIR
|
||||
${_HEADER}
|
||||
HINTS
|
||||
"${_ROOT_DIR}"
|
||||
${${_FP_PKG_NAME}_FLAGPOLL_INCLUDE_DIRS}
|
||||
PATH_SUFFIXES
|
||||
${_DIR}
|
||||
include/${_DIR}
|
||||
include/
|
||||
DOC
|
||||
"Path to ${_HUMAN} includes root")
|
||||
|
||||
find_library(VRJ30_LIBRARY_RELEASE
|
||||
NAMES
|
||||
${_RELEASE_NAMES}
|
||||
HINTS
|
||||
"${_ROOT_DIR}"
|
||||
${${_FP_PKG_NAME}_FLAGPOLL_LIBRARY_DIRS}
|
||||
PATH_SUFFIXES
|
||||
${_VRJ_LIBSUFFIXES}
|
||||
DOC
|
||||
"${_HUMAN} release library full path")
|
||||
|
||||
find_library(VRJ30_LIBRARY_DEBUG
|
||||
NAMES
|
||||
${_DEBUG_NAMES}
|
||||
HINTS
|
||||
"${_ROOT_DIR}"
|
||||
${${_FP_PKG_NAME}_FLAGPOLL_LIBRARY_DIRS}
|
||||
PATH_SUFFIXES
|
||||
${_VRJ_LIBDSUFFIXES}
|
||||
DOC
|
||||
"${_HUMAN} debug library full path")
|
||||
|
||||
select_library_configurations(VRJ30)
|
||||
|
||||
# Dependencies
|
||||
if(NOT JCCL14_FOUND)
|
||||
find_package(JCCL14 ${_FIND_FLAGS})
|
||||
endif()
|
||||
|
||||
if(NOT GADGETEER20_FOUND)
|
||||
find_package(Gadgeteer20 ${_FIND_FLAGS})
|
||||
endif()
|
||||
|
||||
if(NOT VPR22_FOUND)
|
||||
find_package(VPR22 ${_FIND_FLAGS})
|
||||
endif()
|
||||
|
||||
if(NOT SONIX14_FOUND)
|
||||
find_package(Sonix14 ${_FIND_FLAGS})
|
||||
endif()
|
||||
|
||||
if(UNIX AND NOT APPLE AND NOT WIN32)
|
||||
if(NOT X11_FOUND)
|
||||
find_package(X11 ${_FIND_FLAGS})
|
||||
endif()
|
||||
set(_CHECK_EXTRAS
|
||||
X11_FOUND
|
||||
X11_X11_LIB
|
||||
X11_ICE_LIB
|
||||
X11_SM_LIB
|
||||
X11_INCLUDE_DIR)
|
||||
endif()
|
||||
if(UNIX AND NOT WIN32)
|
||||
find_library(VRJ30_libm_LIBRARY m)
|
||||
mark_as_advanced(VRJ30_libm_LIBRARY)
|
||||
list(APPEND _CHECK_EXTRAS VRJ30_libm_LIBRARY)
|
||||
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(VRJ30
|
||||
DEFAULT_MSG
|
||||
VRJ30_LIBRARY
|
||||
VRJ30_INCLUDE_DIR
|
||||
JCCL14_FOUND
|
||||
JCCL14_LIBRARIES
|
||||
JCCL14_INCLUDE_DIR
|
||||
GADGETEER20_FOUND
|
||||
GADGETEER20_LIBRARIES
|
||||
GADGETEER20_INCLUDE_DIR
|
||||
VPR22_FOUND
|
||||
VPR22_LIBRARIES
|
||||
VPR22_INCLUDE_DIR
|
||||
SONIX14_FOUND
|
||||
SONIX14_LIBRARIES
|
||||
SONIX14_INCLUDE_DIR
|
||||
${_CHECK_EXTRAS})
|
||||
|
||||
if(VRJ30_FOUND)
|
||||
set(_DEPS
|
||||
${JCCL14_LIBRARIES}
|
||||
${GADGETEER20_LIBRARIES}
|
||||
${VPR22_LIBRARIES}
|
||||
${SONIX14_LIBRARIES})
|
||||
if(UNIX AND NOT APPLE AND NOT WIN32)
|
||||
list(APPEND _DEPS ${X11_X11_LIB} ${X11_ICE_LIB} ${X11_SM_LIB})
|
||||
endif()
|
||||
if(UNIX AND NOT WIN32)
|
||||
list(APPEND _DEPS ${VRJ30_libm_LIBRARY})
|
||||
endif()
|
||||
|
||||
set(VRJ30_INCLUDE_DIRS ${VRJ30_INCLUDE_DIR})
|
||||
list(APPEND
|
||||
VRJ30_INCLUDE_DIRS
|
||||
${JCCL14_INCLUDE_DIRS}
|
||||
${GADGETEER20_INCLUDE_DIRS}
|
||||
${VPR22_INCLUDE_DIRS}
|
||||
${SONIX14_INCLUDE_DIRS})
|
||||
clean_directory_list(VRJ30_INCLUDE_DIRS)
|
||||
|
||||
if(VRJUGGLER30_CREATE_IMPORTED_TARGETS)
|
||||
create_imported_target(VRJ30 ${_DEPS})
|
||||
else()
|
||||
clean_library_list(VRJ30_LIBRARIES ${_DEPS})
|
||||
endif()
|
||||
|
||||
mark_as_advanced(VRJ30_ROOT_DIR)
|
||||
endif()
|
||||
|
||||
mark_as_advanced(VRJ30_LIBRARY_RELEASE
|
||||
VRJ30_LIBRARY_DEBUG
|
||||
VRJ30_INCLUDE_DIR)
|
||||
@@ -34,10 +34,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
|
||||
set(_HUMAN "VR Juggler 2.2 OpenGL Core")
|
||||
|
||||
158
cmake/FindVRJOGL30.cmake
Normal file
158
cmake/FindVRJOGL30.cmake
Normal file
@@ -0,0 +1,158 @@
|
||||
# - try to find VRJuggler 3.0 OpenGL library
|
||||
# Requires VRJ core 3.0 (thus FindVRJ30.cmake)
|
||||
# Requires OpenGL.
|
||||
# Optionally uses Flagpoll and FindFlagpoll.cmake
|
||||
#
|
||||
# This library is a part of VR Juggler 3.0 - you probably want to use
|
||||
# find_package(VRJuggler30) instead, for an easy interface to this and
|
||||
# related scripts. See FindVRJuggler30.cmake for more information.
|
||||
#
|
||||
# VRJOGL30_LIBRARY_DIR, library search path
|
||||
# VRJOGL30_INCLUDE_DIRS, include search path for dependencies
|
||||
# VRJOGL30_LIBRARY, the library to link against
|
||||
# VRJOGL30_FOUND, If false, do not try to use this library.
|
||||
#
|
||||
# Plural versions refer to this library and its dependencies, and
|
||||
# are recommended to be used instead, unless you have a good reason.
|
||||
#
|
||||
# Useful configuration variables you might want to add to your cache:
|
||||
# VRJOGL30_ROOT_DIR - A directory prefix to search
|
||||
# (a path that contains include/ as a subdirectory)
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
# The VJ_BASE_DIR environment variable is also searched (preferentially)
|
||||
# when searching for this component, so most sane 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 <rpavlik@iastate.edu> <abiryan@ryand.net>
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
# Updated for VR Juggler 3.0 by:
|
||||
# Brandon Newendorp <brandon@newendorp.com>
|
||||
|
||||
|
||||
set(_HUMAN "VR Juggler 3.0 OpenGL Core")
|
||||
set(_RELEASE_NAMES vrj_ogl-3_0 libvrj_ogl-3_0 vrj_ogl-3_0_0)
|
||||
set(_DEBUG_NAMES vrj_ogl_d-3_0 libvrj_ogl_d-3_0 vrj_ogl_d-3_0_0)
|
||||
set(_DIR vrjuggler-3.0)
|
||||
set(_FP_PKG_NAME vrjuggler-opengl)
|
||||
|
||||
include(SelectLibraryConfigurations)
|
||||
include(CreateImportedTarget)
|
||||
include(CleanLibraryList)
|
||||
include(CleanDirectoryList)
|
||||
|
||||
if(VRJOGL30_FIND_QUIETLY)
|
||||
set(_FIND_FLAGS "QUIET")
|
||||
else()
|
||||
set(_FIND_FLAGS "")
|
||||
endif()
|
||||
|
||||
# Try flagpoll.
|
||||
find_package(Flagpoll QUIET)
|
||||
|
||||
if(FLAGPOLL)
|
||||
flagpoll_get_library_dirs(${_FP_PKG_NAME} NO_DEPS)
|
||||
flagpoll_get_library_names(${_FP_PKG_NAME} NO_DEPS)
|
||||
endif()
|
||||
|
||||
set(VRJOGL30_ROOT_DIR
|
||||
"${VRJOGL30_ROOT_DIR}"
|
||||
CACHE
|
||||
PATH
|
||||
"Root directory to search for VRJOGL")
|
||||
if(DEFINED VRJUGGLER30_ROOT_DIR)
|
||||
mark_as_advanced(VRJOGL30_ROOT_DIR)
|
||||
endif()
|
||||
if(NOT VRJOGL30_ROOT_DIR)
|
||||
set(VRJOGL30_ROOT_DIR "${VRJUGGLER30_ROOT_DIR}")
|
||||
endif()
|
||||
|
||||
set(_ROOT_DIR "${VRJOGL30_ROOT_DIR}")
|
||||
|
||||
find_library(VRJOGL30_LIBRARY_RELEASE
|
||||
NAMES
|
||||
${_RELEASE_NAMES}
|
||||
HINTS
|
||||
"${_ROOT_DIR}"
|
||||
${${_FP_PKG_NAME}_FLAGPOLL_LIBRARY_DIRS}
|
||||
PATH_SUFFIXES
|
||||
${_VRJ_LIBSUFFIXES}
|
||||
DOC
|
||||
"${_HUMAN} release library full path")
|
||||
|
||||
find_library(VRJOGL30_LIBRARY_DEBUG
|
||||
NAMES
|
||||
${_DEBUG_NAMES}
|
||||
HINTS
|
||||
"${_ROOT_DIR}"
|
||||
${${_FP_PKG_NAME}_FLAGPOLL_LIBRARY_DIRS}
|
||||
PATH_SUFFIXES
|
||||
${_VRJ_LIBDSUFFIXES}
|
||||
DOC
|
||||
"${_HUMAN} debug library full path")
|
||||
|
||||
select_library_configurations(VRJOGL30)
|
||||
|
||||
# Dependency
|
||||
if(NOT VRJ30_FOUND)
|
||||
find_package(VRJ30 ${_FIND_FLAGS})
|
||||
endif()
|
||||
|
||||
if(NOT OPENGL_FOUND)
|
||||
find_package(OpenGL ${_FIND_FLAGS})
|
||||
endif()
|
||||
|
||||
if(APPLE)
|
||||
set(VRJOGL30_AppKit_LIBRARY
|
||||
"-framework AppKit"
|
||||
CACHE
|
||||
STRING
|
||||
"AppKit framework for OSX")
|
||||
set(VRJOGL30_Cocoa_LIBRARY
|
||||
"-framework Cocoa"
|
||||
CACHE
|
||||
STRING
|
||||
"Cocoa framework for OSX")
|
||||
mark_as_advanced(VRJOGL30_AppKit_LIBRARY VRJOGL30_Cocoa_LIBRARY)
|
||||
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(VRJOGL30
|
||||
DEFAULT_MSG
|
||||
VRJOGL30_LIBRARY
|
||||
VRJ30_FOUND
|
||||
VRJ30_LIBRARIES
|
||||
VRJ30_INCLUDE_DIRS
|
||||
OPENGL_FOUND
|
||||
OPENGL_LIBRARIES)
|
||||
|
||||
if(VRJOGL30_FOUND)
|
||||
set(_DEPS ${VRJ30_LIBRARIES} ${OPENGL_LIBRARIES})
|
||||
if(APPLE)
|
||||
list(APPEND
|
||||
_DEPS
|
||||
${VRJOGL30_AppKit_LIBRARY}
|
||||
${VRJOGL30_Cocoa_LIBRARY})
|
||||
endif()
|
||||
|
||||
set(VRJOGL30_INCLUDE_DIRS ${VRJ30_INCLUDE_DIRS} ${OPENGL_INCLUDE_DIRS})
|
||||
|
||||
if(VRJUGGLER30_CREATE_IMPORTED_TARGETS)
|
||||
create_imported_target(VRJOGL30 ${_DEPS})
|
||||
else()
|
||||
clean_library_list(VRJOGL30_LIBRARIES ${_DEPS})
|
||||
endif()
|
||||
|
||||
mark_as_advanced(VRJOGL30_ROOT_DIR)
|
||||
endif()
|
||||
|
||||
mark_as_advanced(VRJOGL30_LIBRARY_RELEASE VRJOGL30_LIBRARY_DEBUG)
|
||||
195
cmake/FindVRJuggler.cmake
Normal file
195
cmake/FindVRJuggler.cmake
Normal file
@@ -0,0 +1,195 @@
|
||||
# - try to find VR Juggler-related packages (combined finder)
|
||||
# VRJUGGLER_INCLUDE_DIRS, include search paths
|
||||
# VRJUGGLER_LIBRARIES, the libraries to link against
|
||||
# VRJUGGLER_ENVIRONMENT
|
||||
# VRJUGGLER_RUNTIME_LIBRARY_DIRS
|
||||
# VRJUGGLER_CXX_FLAGS
|
||||
# VRJUGGLER_DEFINITIONS
|
||||
# VRJUGGLER_FOUND, If false, do not try to use VR Juggler.
|
||||
#
|
||||
# Components available to search for (uses "VRJOGL" by default):
|
||||
# VRJOGL
|
||||
# VRJ
|
||||
# Gadgeteer
|
||||
# JCCL
|
||||
# VPR
|
||||
# Sonix
|
||||
# Tweek
|
||||
#
|
||||
# Additionally, a full setup requires these packages and their Find_.cmake scripts
|
||||
# CPPDOM
|
||||
# GMTL
|
||||
#
|
||||
# Optionally uses Flagpoll (and FindFlagpoll.cmake)
|
||||
#
|
||||
# Notes on components:
|
||||
# - All components automatically include their dependencies.
|
||||
# - If you do not specify a component, VRJOGL (the OpenGL view manager)
|
||||
# will be used by default.
|
||||
# - Capitalization of component names does not matter, but it's best to
|
||||
# pretend it does and use the above capitalization.
|
||||
# - Since this script calls find_package for your requested components and
|
||||
# their dependencies, you can use any of the variables specified in those
|
||||
# files in addition to the "summary" ones listed here, for more finely
|
||||
# controlled building and linking.
|
||||
#
|
||||
# This CMake script requires all of the Find*.cmake scripts for the
|
||||
# components listed above, as it is only a "meta-script" designed to make
|
||||
# using those scripts more developer-friendly.
|
||||
#
|
||||
# Useful configuration variables you might want to add to your cache:
|
||||
# (CAPS COMPONENT NAME)_ROOT_DIR - A directory prefix to search
|
||||
# (a path that contains include/ as a subdirectory)
|
||||
#
|
||||
# The VJ_BASE_DIR environment variable is also searched (preferentially)
|
||||
# when seeking any of the above components, as well as Flagpoll, CPPDOM,
|
||||
# and Boost (from within VPR), so most sane build environments should
|
||||
# "just work."
|
||||
#
|
||||
# IMPORTANT: 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 <rpavlik@iastate.edu> <abiryan@ryand.net>
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
# Updated for VR Juggler 3.0 by:
|
||||
# Brandon Newendorp <brandon@newendorp.com>
|
||||
#
|
||||
# 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)
|
||||
|
||||
include(CleanLibraryList)
|
||||
include(CleanDirectoryList)
|
||||
include(FindPackageMessage)
|
||||
|
||||
if(NOT VRJUGGLER_ROOT_DIR)
|
||||
file(TO_CMAKE_PATH "$ENV{VJ_BASE_DIR}" VRJUGGLER_ROOT_DIR)
|
||||
endif()
|
||||
|
||||
set(VRJUGGLER_ROOT_DIR
|
||||
"${VRJUGGLER_ROOT_DIR}"
|
||||
CACHE
|
||||
PATH
|
||||
"Additional root directory to search for VR Juggler and its dependencies.")
|
||||
if(NOT VRJUGGLER_ROOT_DIR)
|
||||
file(TO_CMAKE_PATH "$ENV{VJ_BASE_DIR}" VRJUGGLER30_ROOT_DIR)
|
||||
endif()
|
||||
|
||||
# Default required components
|
||||
if(NOT VRJuggler_FIND_COMPONENTS)
|
||||
set(VRJuggler_FIND_COMPONENTS vrjogl)
|
||||
endif()
|
||||
|
||||
if(VRJuggler30_FIND_QUIETLY)
|
||||
set(_FIND_FLAGS "QUIET")
|
||||
else()
|
||||
set(_FIND_FLAGS "")
|
||||
endif()
|
||||
|
||||
set(VRJUGGLER_FIND_22 TRUE)
|
||||
set(VRJUGGLER_FIND_30 TRUE)
|
||||
if(VRJuggler_FIND_VERSION)
|
||||
if(VRJuggler_FIND_VERSION_EXACT)
|
||||
if(VRJuggler_FIND_VERSION MATCHES "2.2" OR VRJuggler_FIND_VERSION MATCHES "22")
|
||||
set(VRJUGGLER_FIND_30 FALSE)
|
||||
elseif(VRJuggler_FIND_VERSION MATCHES "3.0" OR VRJuggler_FIND_VERSION MATCHES "30")
|
||||
set(VRJUGGLER_FIND_22 FALSE)
|
||||
endif()
|
||||
else()
|
||||
if(VRJuggler_FIND_VERSION MATCHES "3.0" OR VRJuggler_FIND_VERSION MATCHES "30")
|
||||
set(VRJUGGLER_FIND_22 FALSE)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(VRJUGGLER_FIND_30)
|
||||
if(NOT VRJUGGLER30_ROOT_DIR)
|
||||
set(VRJUGGLER30_ROOT_DIR ${VRJUGGLER_ROOT_DIR})
|
||||
endif()
|
||||
find_package(VRJuggler30 COMPONENTS ${VRJuggler_FIND_COMPONENTS})
|
||||
if(VRJUGGLER30_FOUND)
|
||||
set(VRJUGGLER_FOUND TRUE)
|
||||
|
||||
set(VRJUGGLER_LIBRARIES ${VRJUGGLER30_LIBRARIES})
|
||||
set(VRJUGGLER_INCLUDE_DIRS ${VRJUGGLER30_INCLUDE_DIRS})
|
||||
set(VRJUGGLER_LIBRARY_DIRS ${VRJUGGLER30_LIBRARY_DIRS})
|
||||
|
||||
set(VRJUGGLER_ENVIRONMENT ${VRJUGGLER30_ENVIRONMENT})
|
||||
set(VRJUGGLER_RUNTIME_LIBRARY_DIRS ${VRJUGGLER30_RUNTIME_LIBRARY_DIRS})
|
||||
|
||||
set(VRJUGGLER_CXX_FLAGS ${VRJUGGLER30_CXX_FLAGS})
|
||||
set(VRJUGGLER_DEFINITIONS ${VRJUGGLER30_DEFINITIONS})
|
||||
set(VRJUGGLER_BUNDLE_PLUGINS ${VRJUGGLER30_BUNDLE_PLUGINS})
|
||||
set(VRJUGGLER_VJ_BASE_DIR ${VRJUGGLER30_VJ_BASE_DIR})
|
||||
set(VRJUGGLER_VERSION 3.0)
|
||||
|
||||
macro(install_vrjuggler_data_files prefix)
|
||||
install_vrjuggler30_data_files("${prefix}" ${ARGN})
|
||||
endmacro()
|
||||
|
||||
macro(install_vrjuggler_plugins prefix varForFilenames)
|
||||
install_vrjuggler30_plugins("${prefix}" ${varForFilenames} ${ARGN})
|
||||
endmacro()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(VRJUGGLER_FIND_22 AND (NOT VRJUGGLER_FOUND))
|
||||
|
||||
if(NOT VRJUGGLER22_ROOT_DIR)
|
||||
set(VRJUGGLER22_ROOT_DIR ${VRJUGGLER_ROOT_DIR})
|
||||
endif()
|
||||
find_package(VRJuggler22 COMPONENTS ${VRJuggler_FIND_COMPONENTS})
|
||||
if(VRJUGGLER22_FOUND)
|
||||
set(VRJUGGLER_FOUND TRUE)
|
||||
|
||||
set(VRJUGGLER_LIBRARIES ${VRJUGGLER22_LIBRARIES})
|
||||
set(VRJUGGLER_INCLUDE_DIRS ${VRJUGGLER22_INCLUDE_DIRS})
|
||||
set(VRJUGGLER_LIBRARY_DIRS ${VRJUGGLER22_LIBRARY_DIRS})
|
||||
|
||||
set(VRJUGGLER_ENVIRONMENT ${VRJUGGLER22_ENVIRONMENT})
|
||||
set(VRJUGGLER_RUNTIME_LIBRARY_DIRS ${VRJUGGLER22_RUNTIME_LIBRARY_DIRS})
|
||||
|
||||
set(VRJUGGLER_CXX_FLAGS ${VRJUGGLER22_CXX_FLAGS})
|
||||
set(VRJUGGLER_DEFINITIONS ${VRJUGGLER22_DEFINITIONS})
|
||||
set(VRJUGGLER_BUNDLE_PLUGINS ${VRJUGGLER22_BUNDLE_PLUGINS})
|
||||
set(VRJUGGLER_VJ_BASE_DIR ${VRJUGGLER22_VJ_BASE_DIR})
|
||||
set(VRJUGGLER_VERSION 2.2)
|
||||
|
||||
macro(install_vrjuggler_data_files prefix)
|
||||
install_vrjuggler22_data_files("${prefix}" ${ARGN})
|
||||
endmacro()
|
||||
|
||||
macro(install_vrjuggler_plugins prefix varForFilenames)
|
||||
install_vrjuggler22_plugins("${prefix}" ${varForFilenames} ${ARGN})
|
||||
endmacro()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(VRJuggler
|
||||
DEFAULT_MSG VRJUGGLER_VERSION VRJUGGLER_LIBRARIES VRJUGGLER_FOUND)
|
||||
|
||||
if(VRJUGGLER_FOUND)
|
||||
mark_as_advanced(VRJUGGLER_ROOT_DIR)
|
||||
|
||||
# Set generic component variables, like VPR_LIBRARIES
|
||||
if(VRJUGGLER_VERSION VERSION_EQUAL 2.2)
|
||||
set(_components VRJ22 VRJOGL22 VPR20 TWEEK12 SONIX12 JCCL12)
|
||||
else()
|
||||
set(_components VRJ30 VRJOGL30 VPR22 TWEEK14 SONIX14 JCCL14)
|
||||
endif()
|
||||
|
||||
foreach(comp ${_components})
|
||||
string(LENGTH "${comp}" len)
|
||||
math(EXPR complen "${len} - 2")
|
||||
string(SUBSTRING "${comp}" 0 ${complen} compshort)
|
||||
set(${compshort}_LIBRARIES ${${comp}_LIBRARIES})
|
||||
set(${compshort}_INCLUDE_DIRS ${${comp}_INCLUDE_DIRS})
|
||||
set(${compshort}_LIBRARY_DIRS ${${comp}_LIBRARY_DIRS})
|
||||
set(${compshort}_CXX_FLAGS ${${comp}_CXX_FLAGS})
|
||||
endforeach()
|
||||
endif()
|
||||
@@ -57,10 +57,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
include(CleanLibraryList)
|
||||
include(CleanDirectoryList)
|
||||
@@ -309,9 +309,6 @@ if(VRJUGGLER22_FOUND)
|
||||
set(VRJUGGLER22_CXX_FLAGS
|
||||
"${VRJUGGLER22_CXX_FLAGS} ${CPPDOM_CXX_FLAGS}")
|
||||
|
||||
list(APPEND VRJUGGLER22_DEFINITIONS
|
||||
"-DJUGGLER_DEBUG")
|
||||
|
||||
set(_VRJUGGLER22_SEARCH_COMPONENTS
|
||||
"${VRJUGGLER22_REQUESTED_COMPONENTS}"
|
||||
CACHE
|
||||
|
||||
502
cmake/FindVRJuggler30.cmake
Normal file
502
cmake/FindVRJuggler30.cmake
Normal file
@@ -0,0 +1,502 @@
|
||||
# - try to find VRJuggler 3.0-related packages (main finder)
|
||||
# VRJUGGLER30_LIBRARY_DIRS, library search paths
|
||||
# VRJUGGLER30_INCLUDE_DIRS, include search paths
|
||||
# VRJUGGLER30_LIBRARIES, the libraries to link against
|
||||
# VRJUGGLER30_ENVIRONMENT
|
||||
# VRJUGGLER30_RUNTIME_LIBRARY_DIRS
|
||||
# VRJUGGLER30_CXX_FLAGS
|
||||
# VRJUGGLER30_DEFINITIONS
|
||||
# VRJUGGLER30_FOUND, If false, do not try to use VR Juggler 3.0.
|
||||
#
|
||||
# Components available to search for (uses "VRJOGL30" by default):
|
||||
# VRJOGL30
|
||||
# VRJ30
|
||||
# Gadgeteer20
|
||||
# JCCL14
|
||||
# VPR22
|
||||
# Sonix14
|
||||
# Tweek14
|
||||
#
|
||||
# Additionally, a full setup requires these packages and their Find_.cmake scripts
|
||||
# CPPDOM
|
||||
# GMTL
|
||||
#
|
||||
# Optionally uses Flagpoll (and FindFlagpoll.cmake)
|
||||
#
|
||||
# Notes on components:
|
||||
# - All components automatically include their dependencies.
|
||||
# - You can search for the name above with or without the version suffix.
|
||||
# - If you do not specify a component, VRJOGL30(the OpenGL view manager)
|
||||
# will be used by default.
|
||||
# - Capitalization of component names does not matter, but it's best to
|
||||
# pretend it does and use the above capitalization.
|
||||
# - Since this script calls find_package for your requested components and
|
||||
# their dependencies, you can use any of the variables specified in those
|
||||
# files in addition to the "summary" ones listed here, for more finely
|
||||
# controlled building and linking.
|
||||
#
|
||||
# This CMake script requires all of the Find*.cmake scripts for the
|
||||
# components listed above, as it is only a "meta-script" designed to make
|
||||
# using those scripts more developer-friendly.
|
||||
#
|
||||
# Useful configuration variables you might want to add to your cache:
|
||||
# (CAPS COMPONENT NAME)_ROOT_DIR - A directory prefix to search
|
||||
# (a path that contains include/ as a subdirectory)
|
||||
#
|
||||
# The VJ_BASE_DIR environment variable is also searched (preferentially)
|
||||
# when seeking any of the above components, as well as Flagpoll, CPPDOM,
|
||||
# and Boost (from within VPR22), so most sane build environments should
|
||||
# "just work."
|
||||
#
|
||||
# IMPORTANT: 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-2011 Ryan Pavlik <rpavlik@iastate.edu> <abiryan@ryand.net>
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
# Updated for VR Juggler 3.0 by:
|
||||
# Brandon Newendorp <brandon@newendorp.com> and Ryan Pavlik
|
||||
#
|
||||
# Copyright Iowa State University 2009-2011.
|
||||
# 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)
|
||||
|
||||
include(CleanLibraryList)
|
||||
include(CleanDirectoryList)
|
||||
include(FindPackageMessage)
|
||||
|
||||
set(VRJUGGLER30_ROOT_DIR
|
||||
"${VRJUGGLER30_ROOT_DIR}"
|
||||
CACHE
|
||||
PATH
|
||||
"Additional root directory to search for VR Juggler and its dependencies.")
|
||||
if(NOT VRJUGGLER30_ROOT_DIR)
|
||||
file(TO_CMAKE_PATH "$ENV{VJ_BASE_DIR}" VRJUGGLER30_ROOT_DIR)
|
||||
endif()
|
||||
|
||||
# Default required components
|
||||
if(NOT VRJuggler30_FIND_COMPONENTS)
|
||||
set(VRJuggler30_FIND_COMPONENTS vrjogl30)
|
||||
endif()
|
||||
|
||||
if(VRJuggler30_FIND_QUIETLY)
|
||||
set(_FIND_FLAGS "QUIET")
|
||||
else()
|
||||
set(_FIND_FLAGS "")
|
||||
endif()
|
||||
|
||||
set(VRJUGGLER30_SUBMODULES
|
||||
VRJ30
|
||||
VRJOGL30
|
||||
Gadgeteer20
|
||||
JCCL14
|
||||
VPR22
|
||||
Sonix14
|
||||
Tweek14)
|
||||
string(TOUPPER "${VRJUGGLER30_SUBMODULES}" VRJUGGLER30_SUBMODULES_UC)
|
||||
string(TOUPPER
|
||||
"${VRJuggler30_FIND_COMPONENTS}"
|
||||
VRJUGGLER30_FIND_COMPONENTS_UC)
|
||||
|
||||
# Turn a potentially messy components list into a nice one with versions.
|
||||
set(VRJUGGLER30_REQUESTED_COMPONENTS)
|
||||
foreach(VRJUGGLER30_LONG_NAME ${VRJUGGLER30_SUBMODULES_UC})
|
||||
# Look at requested components
|
||||
foreach(VRJUGGLER30_REQUEST ${VRJUGGLER30_FIND_COMPONENTS_UC})
|
||||
string(REGEX
|
||||
MATCH
|
||||
"${VRJUGGLER30_REQUEST}"
|
||||
VRJUGGLER30_MATCHING
|
||||
"${VRJUGGLER30_LONG_NAME}")
|
||||
if(VRJUGGLER30_MATCHING)
|
||||
list(APPEND
|
||||
VRJUGGLER30_REQUESTED_COMPONENTS
|
||||
${VRJUGGLER30_LONG_NAME})
|
||||
list(APPEND
|
||||
VRJUGGLER30_COMPONENTS_FOUND
|
||||
${VRJUGGLER30_LONG_NAME}_FOUND)
|
||||
endif()
|
||||
endforeach()
|
||||
endforeach()
|
||||
|
||||
if(VRJUGGLER30_REQUESTED_COMPONENTS)
|
||||
list(REMOVE_DUPLICATES VRJUGGLER30_REQUESTED_COMPONENTS)
|
||||
endif()
|
||||
|
||||
if(VRJUGGLER30_COMPONENTS_FOUND)
|
||||
list(REMOVE_DUPLICATES VRJUGGLER30_COMPONENTS_FOUND)
|
||||
endif()
|
||||
|
||||
if(CMAKE_SIZEOF_VOID_P MATCHES "8")
|
||||
set(_VRJ_LIBSUFFIXES lib64 lib)
|
||||
set(_VRJ_LIBDSUFFIXES
|
||||
debug
|
||||
lib64/x86_64/debug
|
||||
lib64/debug
|
||||
lib64
|
||||
lib/x86_64/debug
|
||||
lib/debug
|
||||
lib)
|
||||
set(_VRJ_LIBDSUFFIXES_ONLY
|
||||
debug
|
||||
lib64/x86_64/debug
|
||||
lib64/debug
|
||||
lib/x86_64/debug
|
||||
lib/debug)
|
||||
else()
|
||||
set(_VRJ_LIBSUFFIXES lib)
|
||||
set(_VRJ_LIBDSUFFIXES debug lib/i686/debug lib/debug lib)
|
||||
set(_VRJ_LIBDSUFFIXES_ONLY debug lib/i686/debug lib/debug)
|
||||
endif()
|
||||
|
||||
if(NOT VRJUGGLER30_FIND_QUIETLY
|
||||
AND NOT VRJUGGLER30_FOUND
|
||||
AND NOT "${_VRJUGGLER30_SEARCH_COMPONENTS}" STREQUAL "${VRJUGGLER30_REQUESTED_COMPONENTS}")
|
||||
message(STATUS
|
||||
"Searching for these requested VR Juggler 3.0 components and their dependencies: ${VRJUGGLER30_REQUESTED_COMPONENTS}")
|
||||
endif()
|
||||
|
||||
# Find components
|
||||
if("${VRJUGGLER30_REQUESTED_COMPONENTS}" MATCHES "VRJOGL30" AND NOT VRJOGL30_FOUND)
|
||||
find_package(VRJOGL30 ${_FIND_FLAGS})
|
||||
endif()
|
||||
|
||||
if("${VRJUGGLER30_REQUESTED_COMPONENTS}" MATCHES "VRJ30" AND NOT VRJ30_FOUND)
|
||||
find_package(VRJ30 ${_FIND_FLAGS})
|
||||
endif()
|
||||
|
||||
if("${VRJUGGLER30_REQUESTED_COMPONENTS}" MATCHES "JCCL14" AND NOT JCCL14_FOUND)
|
||||
find_package(JCCL14 ${_FIND_FLAGS})
|
||||
endif()
|
||||
|
||||
if("${VRJUGGLER30_REQUESTED_COMPONENTS}" MATCHES "GADGETEER20" AND NOT GADGETEER20_FOUND)
|
||||
find_package(Gadgeteer20 ${_FIND_FLAGS})
|
||||
endif()
|
||||
|
||||
if("${VRJUGGLER30_REQUESTED_COMPONENTS}" MATCHES "SONIX14" AND NOT SONIX14_FOUND)
|
||||
find_package(Sonix14 ${_FIND_FLAGS})
|
||||
endif()
|
||||
|
||||
if("${VRJUGGLER30_REQUESTED_COMPONENTS}" MATCHES "TWEEK14" AND NOT TWEEK14_FOUND)
|
||||
find_package(Tweek14 ${_FIND_FLAGS})
|
||||
endif()
|
||||
|
||||
if("${VRJUGGLER30_REQUESTED_COMPONENTS}" MATCHES "VPR22" AND NOT VPR22_FOUND)
|
||||
find_package(VPR22 ${_FIND_FLAGS})
|
||||
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(VRJuggler30
|
||||
DEFAULT_MSG
|
||||
${VRJUGGLER30_COMPONENTS_FOUND})
|
||||
|
||||
if(VRJUGGLER30_FOUND)
|
||||
foreach(VRJUGGLER30_REQUEST ${VRJUGGLER30_REQUESTED_COMPONENTS})
|
||||
list(APPEND VRJUGGLER30_LIBRARIES ${${VRJUGGLER30_REQUEST}_LIBRARIES})
|
||||
list(APPEND
|
||||
VRJUGGLER30_INCLUDE_DIRS
|
||||
${${VRJUGGLER30_REQUEST}_INCLUDE_DIRS})
|
||||
endforeach()
|
||||
|
||||
clean_library_list(VRJUGGLER30_LIBRARIES)
|
||||
|
||||
clean_directory_list(VRJUGGLER30_INCLUDE_DIRS)
|
||||
|
||||
set(_vjbase)
|
||||
set(_vjbaseclean)
|
||||
foreach(_lib ${VPR22_LIBRARY} ${VRJ30_LIBRARY} ${VRJOGL30_LIBRARY} ${JCCL14_LIBRARY} ${GADGETEER20_LIBRARY})
|
||||
get_filename_component(_libpath "${_lib}" PATH)
|
||||
get_filename_component(_abspath "${_libpath}/.." ABSOLUTE)
|
||||
list(APPEND _vjbase "${_abspath}")
|
||||
endforeach()
|
||||
|
||||
clean_directory_list(_vjbase)
|
||||
|
||||
set(_vrj30_have_base_dir NO)
|
||||
list(LENGTH _vjbase _vjbaselen)
|
||||
if("${_vjbaselen}" EQUAL 1 AND NOT VRJUGGLER30_VJ_BASE_DIR)
|
||||
list(GET _vjbase 0 VRJUGGLER30_VJ_BASE_DIR)
|
||||
mark_as_advanced(VRJUGGLER30_VJ_BASE_DIR)
|
||||
if(NOT VRJUGGLER30_VJ_BASE_DIR STREQUAL _vrj30_base_dir)
|
||||
unset(VRJUGGLER30_VJ_CFG_DIR)
|
||||
endif()
|
||||
set(_vrj30_have_base_dir YES)
|
||||
else()
|
||||
list(GET _vjbase 0 _calculated_base_dir)
|
||||
if(NOT
|
||||
"${_calculated_base_dir}"
|
||||
STREQUAL
|
||||
"${VRJUGGLER30_VJ_BASE_DIR}")
|
||||
message("It looks like you might be mixing VR Juggler versions... ${_vjbaselen} ${_vjbase}")
|
||||
message("If you are, fix your libraries then remove the VRJUGGLER30_VJ_BASE_DIR variable in CMake, then configure again")
|
||||
message("If you aren't, set the VRJUGGLER30_VJ_BASE_DIR variable to the desired VJ_BASE_DIR to use when running")
|
||||
else()
|
||||
if(NOT VRJUGGLER30_VJ_BASE_DIR STREQUAL _vrj30_base_dir)
|
||||
unset(VRJUGGLER30_VJ_CFG_DIR)
|
||||
endif()
|
||||
set(_vrj30_have_base_dir YES)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(_vrj30_base_dir "${VRJUGGLER30_VJ_BASE_DIR}")
|
||||
set(_vrj30_base_dir "${_vrj30_base_dir}" CACHE INTERNAL "" FORCE)
|
||||
|
||||
if(_vrj30_have_base_dir)
|
||||
file(GLOB
|
||||
_poss_dirs
|
||||
${VRJUGGLER30_VJ_BASE_DIR}/share/vrjuggler*/data/configFiles)
|
||||
find_path(VRJUGGLER30_VJ_CFG_DIR
|
||||
standalone.jconf
|
||||
PATHS
|
||||
${_poss_dirs}
|
||||
NO_DEFAULT_PATH)
|
||||
mark_as_advanced(VRJUGGLER30_VJ_CFG_DIR)
|
||||
endif()
|
||||
|
||||
set(VRJUGGLER30_VJ_BASE_DIR
|
||||
"${VRJUGGLER30_VJ_BASE_DIR}"
|
||||
CACHE
|
||||
PATH
|
||||
"Base directory to use as VJ_BASE_DIR when running your app."
|
||||
FORCE)
|
||||
set(VRJUGGLER30_ENVIRONMENT
|
||||
"VJ_BASE_DIR=${VRJUGGLER30_VJ_BASE_DIR}"
|
||||
"JCCL_BASE_DIR=${VRJUGGLER30_VJ_BASE_DIR}"
|
||||
"SONIX_BASE_DIR=${VRJUGGLER30_VJ_BASE_DIR}"
|
||||
"TWEEK_BASE_DIR=${VRJUGGLER30_VJ_BASE_DIR}"
|
||||
"VJ_CFG_DIR=${VRJUGGLER30_VJ_CFG_DIR}")
|
||||
|
||||
include(GetDirectoryList)
|
||||
|
||||
get_directory_list(VRJUGGLER30_RUNTIME_LIBRARY_DIRS
|
||||
${VRJUGGLER30_LIBRARIES})
|
||||
if(WIN32)
|
||||
foreach(dir ${VRJUGGLER30_RUNTIME_LIBRARY_DIRS})
|
||||
list(APPEND VRJUGGLER30_RUNTIME_LIBRARY_DIRS "${dir}/../bin")
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
# BOOST_ALL_DYN_LINK
|
||||
set(VRJUGGLER30_DEFINITIONS
|
||||
"-DBOOST_ALL_DYN_LINK"
|
||||
"-DCPPDOM_DYN_LINK"
|
||||
"-DCPPDOM_AUTO_LINK")
|
||||
|
||||
# Disable these annoying warnings
|
||||
# 4275: non dll-interface class used as base for dll-interface class
|
||||
# 4251: needs to have dll-interface to be used by clients of class
|
||||
# 4100: unused parameter
|
||||
# 4512: assignment operator could not be generated
|
||||
# 4127: (Not currently disabled) conditional expression in loop evaluates to constant
|
||||
|
||||
set(VRJUGGLER30_CXX_FLAGS "/wd4275 /wd4251 /wd4100 /wd4512")
|
||||
elseif(CMAKE_COMPILER_IS_GNUCXX)
|
||||
# Silence annoying warnings about deprecated hash_map.
|
||||
set(VRJUGGLER30_CXX_FLAGS "-Wno-deprecated")
|
||||
|
||||
set(VRJUGGLER30_DEFINITIONS "")
|
||||
endif()
|
||||
set(VRJUGGLER30_CXX_FLAGS
|
||||
"${VRJUGGLER30_CXX_FLAGS} ${CPPDOM_CXX_FLAGS}")
|
||||
|
||||
set(_VRJUGGLER30_SEARCH_COMPONENTS
|
||||
"${VRJUGGLER30_REQUESTED_COMPONENTS}"
|
||||
CACHE
|
||||
INTERNAL
|
||||
"Requested components, used as a flag.")
|
||||
|
||||
|
||||
|
||||
set(_plugin_dirs)
|
||||
foreach(_libdir ${VRJUGGLER30_RUNTIME_LIBRARY_DIRS})
|
||||
# Find directories of Gadgeteer plugins and drivers
|
||||
if(EXISTS "${_libdir}/gadgeteer")
|
||||
list(APPEND
|
||||
_plugin_dirs
|
||||
"${_libdir}/gadgeteer/drivers"
|
||||
"${_libdir}/gadgeteer/plugins")
|
||||
elseif(EXISTS "${_libdir}/gadgeteer-1.4")
|
||||
list(APPEND
|
||||
_plugin_dirs
|
||||
"${_libdir}/gadgeteer-1.4/drivers"
|
||||
"${_libdir}/gadgeteer-1.4/plugins")
|
||||
endif()
|
||||
|
||||
# Find directories of Sonix plugins
|
||||
if(EXISTS "${_libdir}/sonix")
|
||||
list(APPEND _plugin_dirs "${_libdir}/sonix/plugins/dbg")
|
||||
list(APPEND _plugin_dirs "${_libdir}/sonix/plugins/opt")
|
||||
elseif(EXISTS "${_libdir}/sonix-1.4")
|
||||
list(APPEND _plugin_dirs "${_libdir}/sonix-1.4/plugins/dbg")
|
||||
list(APPEND _plugin_dirs "${_libdir}/sonix-1.4/plugins/opt")
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
# Grab the actual plugins
|
||||
foreach(_libdir ${_plugin_dirs})
|
||||
if(EXISTS "${_libdir}")
|
||||
list(APPEND VRJUGGLER30_RUNTIME_LIBRARY_DIRS "${_libdir}")
|
||||
file(GLOB _plugins "${_libdir}/*${CMAKE_SHARED_LIBRARY_SUFFIX}")
|
||||
list(APPEND VRJUGGLER30_BUNDLE_PLUGINS ${_plugins})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
mark_as_advanced(VRJUGGLER30_ROOT_DIR)
|
||||
endif()
|
||||
|
||||
mark_as_advanced(VRJUGGLER30_DEFINITIONS)
|
||||
|
||||
function(install_vrjuggler30_data_files prefix)
|
||||
set(base "${VRJUGGLER30_VJ_CFG_DIR}/..")
|
||||
get_filename_component(base "${base}" ABSOLUTE)
|
||||
file(RELATIVE_PATH reldest "${VRJUGGLER30_VJ_BASE_DIR}" "${base}")
|
||||
if(prefix STREQUAL "" OR prefix STREQUAL "." OR prefix STREQUAL "./")
|
||||
set(DEST "${reldest}")
|
||||
else()
|
||||
set(DEST "${prefix}/${reldest}")
|
||||
endif()
|
||||
|
||||
# configFiles *.jconf
|
||||
file(GLOB
|
||||
_vj_config_files
|
||||
"${base}/configFiles/*.jconf")
|
||||
install(FILES ${_vj_config_files} DESTINATION "${DEST}/configFiles/")
|
||||
|
||||
# definitions *.jdef
|
||||
file(GLOB
|
||||
_vj_defs_files
|
||||
"${base}/definitions/*.jdef")
|
||||
install(FILES ${_vj_defs_files} DESTINATION "${DEST}/definitions/")
|
||||
|
||||
# models *.flt
|
||||
file(GLOB
|
||||
_vj_model_files
|
||||
"${base}/models/*.flt")
|
||||
install(FILES ${_vj_model_files} DESTINATION "${DEST}/models/")
|
||||
|
||||
# sounds *.wav
|
||||
file(GLOB
|
||||
_vj_sound_files
|
||||
"${base}/sounds/*.wav")
|
||||
install(FILES ${_vj_sound_files} DESTINATION "${DEST}/sounds/")
|
||||
|
||||
# calibration.table - needed?
|
||||
file(GLOB
|
||||
_vj_config_files
|
||||
"${base}/configFiles/*.jconf")
|
||||
install(FILES "${base}/calibration.table" DESTINATION "${DEST}")
|
||||
endfunction()
|
||||
|
||||
function(install_vrjuggler30_plugins prefix varForFilenames)
|
||||
set(DEST "${prefix}")
|
||||
|
||||
set(out)
|
||||
foreach(plugin ${VRJUGGLER30_BUNDLE_PLUGINS})
|
||||
get_filename_component(full "${plugin}" ABSOLUTE)
|
||||
file(RELATIVE_PATH relloc "${VRJUGGLER30_VJ_BASE_DIR}" "${full}")
|
||||
set(filedest "${DEST}/${relloc}")
|
||||
get_filename_component(path "${filedest}" PATH)
|
||||
list(APPEND out "${filedest}")
|
||||
install(FILES "${full}" DESTINATION "${path}")
|
||||
endforeach()
|
||||
|
||||
set(${varForFilenames} ${out} PARENT_SCOPE)
|
||||
|
||||
endfunction()
|
||||
|
||||
function(get_vrjuggler_bundle_sources _target_sources)
|
||||
if(APPLE)
|
||||
if(NOT MACOSX_PACKAGE_DIR)
|
||||
set(MACOSX_PACKAGE_DIR ${CMAKE_SOURCE_DIR}/cmake/package/macosx)
|
||||
endif()
|
||||
|
||||
set(_vj_base_dir .)
|
||||
set(_vj_data_dir ${vj_base_dir}/share/vrjuggler-3.0)
|
||||
|
||||
# Append Mac-specific sources to source list
|
||||
set(_vj_bundle_src
|
||||
${MACOSX_PACKAGE_DIR}/Resources/vrjuggler.icns
|
||||
${MACOSX_PACKAGE_DIR}/Resources/vrjuggler.plist
|
||||
${MACOSX_PACKAGE_DIR}/Resources/en.lproj/MainMenu.nib/classes.nib
|
||||
${MACOSX_PACKAGE_DIR}/Resources/en.lproj/MainMenu.nib/info.nib
|
||||
${MACOSX_PACKAGE_DIR}/Resources/en.lproj/MainMenu.nib/keyedobjects.nib)
|
||||
|
||||
message(STATUS "vjbundlesrc: ${_vj_bundle_src}")
|
||||
set(${_target_sources}
|
||||
${${_target_sources}}
|
||||
${_vj_bundle_src}
|
||||
PARENT_SCOPE)
|
||||
|
||||
# Set destination of nib files
|
||||
set_source_files_properties(${MACOSX_PACKAGE_DIR}/Resources/en.lproj/MainMenu.nib/classes.nib
|
||||
${MACOSX_PACKAGE_DIR}/Resources/en.lproj/MainMenu.nib/info.nib
|
||||
${MACOSX_PACKAGE_DIR}/Resources/en.lproj/MainMenu.nib/keyedobjects.nib
|
||||
PROPERTIES
|
||||
MACOSX_PACKAGE_LOCATION
|
||||
Resources/en.lproj/MainMenu.nib/)
|
||||
|
||||
# Set destination of Resources
|
||||
set_source_files_properties(${MACOSX_PACKAGE_DIR}/Resources/vrjuggler.icns
|
||||
${MACOSX_PACKAGE_DIR}/Resources/vrjuggler.plist
|
||||
PROPERTIES
|
||||
MACOSX_PACKAGE_LOCATION
|
||||
Resources/)
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
function(fixup_vrjuggler_app_bundle
|
||||
_target
|
||||
_targetInstallDest
|
||||
_extralibs
|
||||
_libdirs)
|
||||
|
||||
if(NOT VRJUGGLER30_FOUND)
|
||||
return()
|
||||
endif()
|
||||
|
||||
if(NOT MACOSX_PACKAGE_DIR)
|
||||
set(MACOSX_PACKAGE_DIR ${CMAKE_SOURCE_DIR}/cmake/package/macosx)
|
||||
endif()
|
||||
|
||||
set(TARGET_LOCATION
|
||||
"${_targetInstallDest}/${_target}${CMAKE_EXECUTABLE_SUFFIX}")
|
||||
if(APPLE)
|
||||
set(TARGET_LOCATION "${TARGET_LOCATION}.app")
|
||||
endif()
|
||||
|
||||
set_target_properties(${_target}
|
||||
PROPERTIES
|
||||
MACOSX_BUNDLE
|
||||
true
|
||||
MACOSX_BUNDLE_INFO_PLIST
|
||||
${MACOSX_PACKAGE_DIR}/VRJuggler30BundleInfo.plist.in
|
||||
MACOSX_BUNDLE_ICON_FILE
|
||||
vrjuggler.icns
|
||||
MACOSX_BUNDLE_INFO_STRING
|
||||
"${PROJECT_NAME} (VR Juggler Application) version ${CPACK_PACKAGE_VERSION}, created by ${CPACK_PACKAGE_VENDOR}"
|
||||
MACOSX_BUNDLE_GUI_IDENTIFIER
|
||||
org.vrjuggler.${PROJECT_NAME}
|
||||
MACOSX_BUNDLE_SHORT_VERSION_STRING
|
||||
${CPACK_PACKAGE_VERSION}
|
||||
MACOSX_BUNDLE_BUNDLE_VERSION
|
||||
${CPACK_PACKAGE_VERSION})
|
||||
|
||||
if(WIN32)
|
||||
list(APPEND _libdirs "${VRJUGGLER30_VJ_BASE_DIR}/bin")
|
||||
endif()
|
||||
|
||||
set(BUNDLE_LIBS ${_extralibs})
|
||||
set(BUNDLE_LIB_DIRS "${VRJUGGLER30_VJ_BASE_DIR}" ${_libdirs})
|
||||
|
||||
configure_file(${MACOSX_PACKAGE_DIR}/fixupbundle.cmake.in
|
||||
${CMAKE_CURRENT_BINARY_DIR}/${_target}-fixupbundle-juggler.cmake
|
||||
@ONLY)
|
||||
install(SCRIPT
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/${_target}-fixupbundle-juggler.cmake")
|
||||
endfunction()
|
||||
@@ -21,10 +21,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
set(VRPN_ROOT_DIR
|
||||
"${VRPN_ROOT_DIR}"
|
||||
@@ -34,8 +34,18 @@ set(VRPN_ROOT_DIR
|
||||
|
||||
if("${CMAKE_SIZEOF_VOID_P}" MATCHES "8")
|
||||
set(_libsuffixes lib64 lib)
|
||||
|
||||
# 64-bit dir: only set on win64
|
||||
file(TO_CMAKE_PATH "$ENV{ProgramW6432}" _progfiles)
|
||||
else()
|
||||
set(_libsuffixes lib)
|
||||
if(NOT "$ENV{ProgramFiles(x86)}" STREQUAL "")
|
||||
# 32-bit dir: only set on win64
|
||||
file(TO_CMAKE_PATH "$ENV{ProgramFiles(x86)}" _progfiles)
|
||||
else()
|
||||
# 32-bit dir on win32, useless to us on win64
|
||||
file(TO_CMAKE_PATH "$ENV{ProgramFiles}" _progfiles)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
###
|
||||
@@ -49,7 +59,9 @@ find_path(VRPN_INCLUDE_DIR
|
||||
include
|
||||
include/vrpn
|
||||
HINTS
|
||||
"${VRPN_ROOT_DIR}")
|
||||
"${VRPN_ROOT_DIR}"
|
||||
PATHS
|
||||
"${_progfiles}/VRPN")
|
||||
|
||||
find_library(VRPN_LIBRARY
|
||||
NAMES
|
||||
@@ -57,7 +69,9 @@ find_library(VRPN_LIBRARY
|
||||
PATH_SUFFIXES
|
||||
${_libsuffixes}
|
||||
HINTS
|
||||
"${VRPN_ROOT_DIR}")
|
||||
"${VRPN_ROOT_DIR}"
|
||||
PATHS
|
||||
"${_progfiles}/VRPN")
|
||||
|
||||
find_library(VRPN_SERVER_LIBRARY
|
||||
NAMES
|
||||
@@ -65,7 +79,9 @@ find_library(VRPN_SERVER_LIBRARY
|
||||
PATH_SUFFIXES
|
||||
${_libsuffixes}
|
||||
HINTS
|
||||
"${VRPN_ROOT_DIR}")
|
||||
"${VRPN_ROOT_DIR}"
|
||||
PATHS
|
||||
"${_progfiles}/VRPN")
|
||||
|
||||
###
|
||||
# Dependencies
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
set(WIISCAAT_ROOT_DIR
|
||||
"${WIISCAAT_ROOT_DIR}"
|
||||
|
||||
@@ -19,10 +19,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
set(WIIUSE_ROOT_DIR
|
||||
"${WIIUSE_ROOT_DIR}"
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(NOT WIN32)
|
||||
find_package_handle_standard_args(WinHID
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
set(ARGP_ROOT_DIR
|
||||
"${ARGP_ROOT_DIR}"
|
||||
|
||||
@@ -23,10 +23,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
file(TO_CMAKE_PATH "${CPPCHECK_ROOT_DIR}" CPPCHECK_ROOT_DIR)
|
||||
set(CPPCHECK_ROOT_DIR
|
||||
|
||||
@@ -11,10 +11,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
|
||||
find_package(CUDA QUIET)
|
||||
@@ -22,8 +22,8 @@ find_package(CUDA QUIET)
|
||||
|
||||
file(TO_CMAKE_PATH "${CUDA_SDK_ROOT_DIR}/C/common" CUTIL_ROOT_DIR)
|
||||
|
||||
if(NOT EXISTS "${CUTIL_ROOT_DIR}//src/cutil.cpp")
|
||||
set(CUDA_SDK_ROOT_DIR not-found CACHE PATH "NVIDIA GPU Computing SDK dir" FORCE)
|
||||
if(NOT EXISTS "${CUTIL_ROOT_DIR}/src/cutil.cpp")
|
||||
set(CUDA_SDK_ROOT_DIR SDKDIR-NOTFOUND CACHE PATH "NVIDIA GPU Computing SDK dir" FORCE)
|
||||
endif()
|
||||
|
||||
# handle the QUIETLY and REQUIRED arguments and set xxx_FOUND to TRUE if
|
||||
|
||||
@@ -15,10 +15,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
|
||||
set(DB2PDF_ROOT_DIR
|
||||
|
||||
@@ -16,10 +16,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
set(OSGLUA_ROOT_DIR
|
||||
"${OSGLUA_ROOT_DIR}"
|
||||
|
||||
@@ -10,10 +10,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(TARGET quat)
|
||||
# Look for the header file.
|
||||
@@ -35,8 +35,18 @@ else()
|
||||
|
||||
if("${CMAKE_SIZEOF_VOID_P}" MATCHES "8")
|
||||
set(_libsuffixes lib64 lib)
|
||||
|
||||
# 64-bit dir: only set on win64
|
||||
file(TO_CMAKE_PATH "$ENV{ProgramW6432}" _progfiles)
|
||||
else()
|
||||
set(_libsuffixes lib)
|
||||
if(NOT "$ENV{ProgramFiles(x86)}" STREQUAL "")
|
||||
# 32-bit dir: only set on win64
|
||||
file(TO_CMAKE_PATH "$ENV{ProgramFiles(x86)}" _progfiles)
|
||||
else()
|
||||
# 32-bit dir on win32, useless to us on win64
|
||||
file(TO_CMAKE_PATH "$ENV{ProgramFiles}" _progfiles)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Look for the header file.
|
||||
@@ -48,8 +58,8 @@ else()
|
||||
PATH_SUFFIXES
|
||||
include
|
||||
PATHS
|
||||
"C:/Program Files/quatlib/include"
|
||||
"../quat")
|
||||
"${_progfiles}/VRPN"
|
||||
"${_progfiles}/quatlib")
|
||||
|
||||
# Look for the library.
|
||||
find_library(QUATLIB_LIBRARY
|
||||
@@ -61,9 +71,8 @@ else()
|
||||
PATH_SUFFIXES
|
||||
${_libsuffixes}
|
||||
PATHS
|
||||
"C:/Program Files/quatlib/lib"
|
||||
"../buildquat"
|
||||
"../buildquat/release")
|
||||
"${_progfiles}/VRPN"
|
||||
"${_progfiles}/quatlib")
|
||||
endif()
|
||||
|
||||
# handle the QUIETLY and REQUIRED arguments and set QUATLIB_FOUND to TRUE if
|
||||
|
||||
@@ -18,10 +18,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
#
|
||||
|
||||
|
||||
|
||||
@@ -19,10 +19,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
#
|
||||
# Some functions based on cmake-2.8.0 modules FindBoost.cmake and CTest.cmake
|
||||
#=============================================================================
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(__get_directory_list)
|
||||
return()
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(__get_file_list)
|
||||
return()
|
||||
|
||||
@@ -13,10 +13,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(__get_force_include_definitions)
|
||||
return()
|
||||
|
||||
@@ -25,10 +25,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(__get_git_revision_description)
|
||||
return()
|
||||
|
||||
@@ -8,17 +8,26 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
file(READ "@HEAD_FILE@" HEAD_CONTENTS LIMIT 1024)
|
||||
|
||||
string(STRIP "${HEAD_CONTENTS}" HEAD_CONTENTS)
|
||||
string(REPLACE "ref: " "" HEAD_REF "${HEAD_CONTENTS}")
|
||||
if(HEAD_CONTENTS MATCHES "ref")
|
||||
# named branch
|
||||
string(REPLACE "ref: " "" HEAD_REF "${HEAD_CONTENTS}")
|
||||
|
||||
configure_file("@GIT_DIR@/${HEAD_REF}" "@GIT_DATA@/head-ref" COPYONLY)
|
||||
configure_file("@GIT_DIR@/${HEAD_REF}" "@GIT_DATA@/head-ref" COPYONLY)
|
||||
else()
|
||||
# detached HEAD
|
||||
configure_file("@GIT_DIR@/HEAD" "@GIT_DATA@/head-ref" COPYONLY)
|
||||
endif()
|
||||
|
||||
file(READ "@GIT_DATA@/head-ref" HEAD_HASH LIMIT 1024)
|
||||
string(STRIP "${HEAD_HASH}" HEAD_HASH)
|
||||
|
||||
|
||||
set(HEAD_HASH "${HEAD_CONTENTS}")
|
||||
|
||||
@@ -10,10 +10,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(__get_subproject_status)
|
||||
return()
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
define_property(GLOBAL
|
||||
PROPERTY
|
||||
|
||||
@@ -10,10 +10,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(__list_combinations)
|
||||
return()
|
||||
|
||||
@@ -15,10 +15,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(__list_filter_out)
|
||||
return()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# - Copy lua source files as a custom target
|
||||
# - Copy/parse lua source files as a custom target
|
||||
#
|
||||
# include(LuaTargets)
|
||||
# add_lua_target(<target_name> <directory to copy to> [<luafile> <luafile>])
|
||||
@@ -7,6 +7,8 @@
|
||||
#
|
||||
# install_lua_target(<target_name> [arguments to INSTALL(PROGRAMS ...) ])
|
||||
#
|
||||
# Set this variable to specify location of luac, if it is not a target:
|
||||
# LUA_TARGET_LUAC_EXECUTABLE
|
||||
#
|
||||
# Requires CMake 2.6 or newer (uses the 'function' command)
|
||||
#
|
||||
@@ -15,74 +17,65 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(__add_lua)
|
||||
return()
|
||||
endif()
|
||||
set(__add_lua YES)
|
||||
|
||||
define_property(TARGET
|
||||
PROPERTY
|
||||
LUA_TARGET
|
||||
BRIEF_DOCS
|
||||
"Lua target"
|
||||
FULL_DOCS
|
||||
"Is this a Lua target created by add_lua_target?")
|
||||
include(FileCopyTargets)
|
||||
|
||||
function(add_lua_target _target _dest)
|
||||
|
||||
if(NOT ARGN)
|
||||
message(WARNING
|
||||
"In add_lua_target call for target ${_target}, no Lua files were specified!")
|
||||
"In add_lua_target call for target ${_target}, no source files were specified!")
|
||||
return()
|
||||
endif()
|
||||
|
||||
if(NOT LUA_TARGET_LUAC_EXECUTABLE)
|
||||
set(LUA_TARGET_LUAC_EXECUTABLE luac)
|
||||
endif()
|
||||
|
||||
set(ALLFILES)
|
||||
foreach(luafile ${ARGN})
|
||||
if(IS_ABSOLUTE "${luafile}")
|
||||
set(luapath "${luafile}")
|
||||
get_filename_component(luafile "${luafile}" NAME)
|
||||
foreach(fn ${ARGN})
|
||||
if(IS_ABSOLUTE "${fn}")
|
||||
set(fullpath "${fn}")
|
||||
get_filename_component(fn "${fn}" NAME)
|
||||
else()
|
||||
set(luapath "${CMAKE_CURRENT_SOURCE_DIR}/${luafile}")
|
||||
get_filename_component(fullpath "${CMAKE_CURRENT_SOURCE_DIR}/${fn}" ABSOLUTE)
|
||||
endif()
|
||||
add_custom_command(OUTPUT "${_dest}/${luafile}"
|
||||
add_custom_command(OUTPUT "${_dest}/${fn}"
|
||||
COMMAND
|
||||
${CMAKE_COMMAND}
|
||||
ARGS -E make_directory "${_dest}"
|
||||
COMMAND
|
||||
${CMAKE_COMMAND}
|
||||
ARGS -E copy "${luapath}" "${_dest}"
|
||||
ARGS -E copy "${fullpath}" "${_dest}"
|
||||
COMMAND
|
||||
"${LUA_TARGET_LUAC_EXECUTABLE}"
|
||||
ARGS -p "${fullpath}"
|
||||
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
|
||||
DEPENDS "${luapath}"
|
||||
COMMENT "Copying ${luapath} to ${_dest}/${luafile}")
|
||||
list(APPEND ALLFILES "${_dest}/${luafile}")
|
||||
DEPENDS "${fullpath}"
|
||||
COMMENT "Copying ${fullpath} to ${_dest}/${fn} and parsing...")
|
||||
list(APPEND ALLFILES "${_dest}/${fn}")
|
||||
endforeach()
|
||||
|
||||
# Custom target depending on all the lua file commands
|
||||
# Custom target depending on all the file copy commands
|
||||
add_custom_target(${_target}
|
||||
SOURCES ${ARGN}
|
||||
DEPENDS ${ALLFILES})
|
||||
|
||||
set_property(TARGET ${_target} PROPERTY LUA_TARGET YES)
|
||||
endfunction()
|
||||
|
||||
function(install_lua_target _target)
|
||||
get_target_property(_isLua ${_target} LUA_TARGET)
|
||||
if(NOT _isLua)
|
||||
message(WARNING
|
||||
"install_lua_target called on a target not created with add_lua_target!")
|
||||
return()
|
||||
if(TARGET "${LUA_TARGET_LUAC_EXECUTABLE}")
|
||||
add_dependencies(${_target} ${LUA_TARGET_LUAC_EXECUTABLE})
|
||||
endif()
|
||||
|
||||
# Get sources
|
||||
get_target_property(_srcs ${_target} SOURCES)
|
||||
|
||||
# Remove the "fake" file forcing build
|
||||
list(REMOVE_AT _srcs 0)
|
||||
|
||||
# Forward the call to install
|
||||
install(PROGRAMS ${_srcs} ${ARGN})
|
||||
set_property(TARGET ${_target} PROPERTY FILE_COPY_TARGET YES)
|
||||
endfunction()
|
||||
|
||||
function(install_lua_target)
|
||||
install_file_copy_target(${ARGN})
|
||||
endfunction()
|
||||
|
||||
@@ -10,10 +10,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(MSVC AND NOT "${MSVC_VERSION}" LESS 1400)
|
||||
# Only available in VS 2005 and newer
|
||||
|
||||
@@ -10,10 +10,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(MSVC)
|
||||
string(TOUPPER "${CMAKE_CONFIGURATION_TYPES}" _conftypesUC)
|
||||
|
||||
@@ -13,10 +13,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(MSVC)
|
||||
if(NOT DEFINED MSVC_LINK_REALLY_VERBOSE)
|
||||
|
||||
@@ -8,10 +8,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
function(add_vrjuggler_bundle_sources _target_sources)
|
||||
if(APPLE)
|
||||
|
||||
146
cmake/MakeVRJugglerAppBundle30.cmake
Normal file
146
cmake/MakeVRJugglerAppBundle30.cmake
Normal file
@@ -0,0 +1,146 @@
|
||||
# - A script to turn a VR Juggler app target into a Mac OS X bundle
|
||||
#
|
||||
# add_vrjuggler_bundle_sources(SOURCES_VAR_NAME) - run before add_executable
|
||||
# finish_vrjuggler_bundle(TARGET_NAME LIB_DIRS) - run after add_executable
|
||||
#
|
||||
# Original Author:
|
||||
# 2009-2010 Ryan Pavlik <rpavlik@iastate.edu> <abiryan@ryand.net>
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
# Updated for VR Juggler 3.0 by:
|
||||
# Brandon Newendorp <brandon@newendorp.com>
|
||||
|
||||
function(add_vrjuggler_bundle_sources _target_sources)
|
||||
if(APPLE)
|
||||
if(NOT MACOSX_PACKAGE_DIR)
|
||||
set(MACOSX_PACKAGE_DIR ${CMAKE_SOURCE_DIR}/cmake/package/macosx)
|
||||
endif()
|
||||
|
||||
set(_vj_base_dir .)
|
||||
set(_vj_data_dir ${vj_base_dir}/share/vrjuggler-3.0)
|
||||
|
||||
# Append Mac-specific sources to source list
|
||||
set(_vj_bundle_src
|
||||
${MACOSX_PACKAGE_DIR}/Resources/vrjuggler.icns
|
||||
${MACOSX_PACKAGE_DIR}/Resources/vrjuggler.plist
|
||||
${MACOSX_PACKAGE_DIR}/Resources/en.lproj/MainMenu.nib/classes.nib
|
||||
${MACOSX_PACKAGE_DIR}/Resources/en.lproj/MainMenu.nib/info.nib
|
||||
${MACOSX_PACKAGE_DIR}/Resources/en.lproj/MainMenu.nib/keyedobjects.nib)
|
||||
|
||||
# Add and set destination of VR Juggler required files
|
||||
|
||||
# configFiles *.jconf
|
||||
file(GLOB
|
||||
_vj_config_files
|
||||
${VRJ30_LIBRARY_DIR}/../share/vrjuggler-3.0/data/configFiles/*.jconf)
|
||||
list(APPEND _vj_bundle_src ${_vj_config_files})
|
||||
|
||||
# definitions *.jdef
|
||||
file(GLOB
|
||||
_vj_defs_files
|
||||
${VRJ30_LIBRARY_DIR}/../share/vrjuggler-3.0/data/definitions/*.jdef)
|
||||
list(APPEND _vj_bundle_src ${_vj_defs_files})
|
||||
|
||||
# models *.flt
|
||||
file(GLOB
|
||||
_vj_model_files
|
||||
${VRJ30_LIBRARY_DIR}/../share/vrjuggler-3.0/data/models/*.flt)
|
||||
list(APPEND _vj_bundle_src ${_vj_model_files})
|
||||
|
||||
# sounds *.wav
|
||||
file(GLOB
|
||||
_vj_sound_files
|
||||
${VRJ30_LIBRARY_DIR}/../share/vrjuggler-3.0/data/sounds/*.wav)
|
||||
list(APPEND _vj_bundle_src ${_vj_sound_files})
|
||||
|
||||
# calibration.table - needed?
|
||||
list(APPEND
|
||||
_vj_bundle_src
|
||||
${VRJ30_LIBRARY_DIR}/../share/vrjuggler-3.0/data/calibration.table)
|
||||
|
||||
message(STATUS "vjbundlesrc: ${_vj_bundle_src}")
|
||||
set(${_target_sources}
|
||||
${${_target_sources}}
|
||||
${_vj_bundle_src}
|
||||
PARENT_SCOPE)
|
||||
|
||||
# Set destination of nib files
|
||||
set_source_files_properties(${MACOSX_PACKAGE_DIR}/Resources/en.lproj/MainMenu.nib/classes.nib
|
||||
${MACOSX_PACKAGE_DIR}/Resources/en.lproj/MainMenu.nib/info.nib
|
||||
${MACOSX_PACKAGE_DIR}/Resources/en.lproj/MainMenu.nib/keyedobjects.nib
|
||||
PROPERTIES
|
||||
MACOSX_PACKAGE_LOCATION
|
||||
Resources/en.lproj/MainMenu.nib/)
|
||||
|
||||
# Set destination of Resources
|
||||
set_source_files_properties(${MACOSX_PACKAGE_DIR}/Resources/vrjuggler.icns
|
||||
${MACOSX_PACKAGE_DIR}/Resources/vrjuggler.plist
|
||||
PROPERTIES
|
||||
MACOSX_PACKAGE_LOCATION
|
||||
Resources/)
|
||||
|
||||
set_source_files_properties(${_vj_config_files}
|
||||
PROPERTIES
|
||||
MACOSX_PACKAGE_LOCATION
|
||||
${_vj_data_dir}/data/configFiles/)
|
||||
set_source_files_properties(${_vj_defs_files}
|
||||
PROPERTIES
|
||||
MACOSX_PACKAGE_LOCATION
|
||||
${_vj_data_dir}/data/definitions/)
|
||||
set_source_files_properties(${_vj_model_files}
|
||||
PROPERTIES
|
||||
MACOSX_PACKAGE_LOCATION
|
||||
${_vj_data_dir}/data/models/)
|
||||
set_source_files_properties(${_vj_sound_files}
|
||||
PROPERTIES
|
||||
MACOSX_PACKAGE_LOCATION
|
||||
${_vj_data_dir}/data/sounds/)
|
||||
set_source_files_properties(${VRJ30_LIBRARY_DIR}/../share/vrjuggler-3.0/data/calibration.table
|
||||
PROPERTIES
|
||||
MACOSX_PACKAGE_LOCATION
|
||||
${_vj_data_dir}/data/)
|
||||
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
function(finish_vrjuggler_bundle _target _libdirs)
|
||||
if(APPLE)
|
||||
if(NOT MACOSX_PACKAGE_DIR)
|
||||
set(MACOSX_PACKAGE_DIR ${CMAKE_SOURCE_DIR}/cmake/package/macosx)
|
||||
endif()
|
||||
set_target_properties(${_target}
|
||||
PROPERTIES
|
||||
MACOSX_BUNDLE
|
||||
true
|
||||
MACOSX_BUNDLE_INFO_PLIST
|
||||
${MACOSX_PACKAGE_DIR}/VRJuggler30BundleInfo.plist.in
|
||||
MACOSX_BUNDLE_ICON_FILE
|
||||
vrjuggler.icns
|
||||
MACOSX_BUNDLE_INFO_STRING
|
||||
"${PROJECT_NAME} (VR Juggler Application) version ${CPACK_PACKAGE_VERSION}, created by ${CPACK_PACKAGE_VENDOR}"
|
||||
MACOSX_BUNDLE_GUI_IDENTIFIER
|
||||
org.vrjuggler.${PROJECT_NAME}
|
||||
MACOSX_BUNDLE_SHORT_VERSION_STRING
|
||||
${CPACK_PACKAGE_VERSION}
|
||||
MACOSX_BUNDLE_BUNDLE_VERSION
|
||||
${CPACK_PACKAGE_VERSION})
|
||||
|
||||
set(BUNDLE_LIBS
|
||||
libboost_filesystem-mt.dylib
|
||||
libboost_signals-mt.dylib)
|
||||
set(BUNDLE_LIB_DIRS ${_libdirs})
|
||||
|
||||
configure_file(${MACOSX_PACKAGE_DIR}/fixupbundle.cmake.in
|
||||
${CMAKE_CURRENT_BINARY_DIR}/${_target}-fixupbundle.cmake
|
||||
@ONLY)
|
||||
add_custom_command(TARGET
|
||||
${_target}
|
||||
POST_BUILD
|
||||
COMMAND
|
||||
${CMAKE_COMMAND}
|
||||
-P
|
||||
${CMAKE_CURRENT_BINARY_DIR}/${_target}-fixupbundle.cmake
|
||||
VERBATIM)
|
||||
|
||||
endif()
|
||||
endfunction()
|
||||
52
cmake/OptionRequires.cmake
Normal file
52
cmake/OptionRequires.cmake
Normal file
@@ -0,0 +1,52 @@
|
||||
# - Add an option that depends on one or more variables being true.
|
||||
#
|
||||
# option_requires(<option_name> <description> <variable_name> [<variable_name>...])
|
||||
#
|
||||
# Original Author:
|
||||
# 2009-2010 Ryan Pavlik <rpavlik@iastate.edu> <abiryan@ryand.net>
|
||||
# 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(option_requires name desc)
|
||||
set(args ${ARGN})
|
||||
|
||||
set(OFF_BY_DEFAULT false)
|
||||
list(FIND args "OFF_BY_DEFAULT" _off_found)
|
||||
if(NOT _off_found EQUAL -1)
|
||||
list(REMOVE_AT args ${_off_found})
|
||||
set(OFF_BY_DEFAULT true)
|
||||
endif()
|
||||
|
||||
set(found)
|
||||
set(missing)
|
||||
foreach(var ${args})
|
||||
if(${var})
|
||||
list(APPEND found ${var})
|
||||
else()
|
||||
list(APPEND missing ${var})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
if(NOT missing)
|
||||
set(OK TRUE)
|
||||
else()
|
||||
set(OK FALSE)
|
||||
endif()
|
||||
|
||||
set(default ${OK})
|
||||
if(OFF_BY_DEFAULT)
|
||||
set(default OFF)
|
||||
endif()
|
||||
|
||||
option(${name} "${desc}" ${default})
|
||||
|
||||
if(${name} AND (NOT OK))
|
||||
message(FATAL_ERROR "${name} enabled but these dependencies were not valid: ${missing}")
|
||||
endif()
|
||||
|
||||
endfunction()
|
||||
@@ -6,10 +6,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(__prefix_list_glob)
|
||||
return()
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
include(PrefixListGlob)
|
||||
include(CleanDirectoryList)
|
||||
|
||||
@@ -62,6 +62,10 @@ modules, for that, just add another line following the first one:
|
||||
|
||||
include(UseBackportedModules)
|
||||
|
||||
Look at module-help.html/txt (generated by update-help.sh on a unix-like shell)
|
||||
either in this directory or online at <http://github.com/rpavlik/cmake-modules/blob/master/module-help.txt>
|
||||
for more information on individual modules.
|
||||
|
||||
|
||||
Licenses
|
||||
--------
|
||||
|
||||
@@ -8,10 +8,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
#
|
||||
|
||||
|
||||
|
||||
@@ -14,10 +14,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
include(ListFilter)
|
||||
include(ProgramFilesGlob)
|
||||
@@ -53,8 +53,8 @@ if(_osgpaths)
|
||||
list(SORT _osgpaths)
|
||||
list(REVERSE _osgpaths)
|
||||
|
||||
# fallback last-ditch effort - use the environment variable
|
||||
list(APPEND _osgpaths "$ENV{OSGHOME}")
|
||||
# Use the environment variable to override
|
||||
set(_osgpaths "$ENV{OSGHOME}" ${_osgpaths})
|
||||
clean_directory_list(_osgpaths)
|
||||
|
||||
list(APPEND CMAKE_PREFIX_PATH ${_osgpaths})
|
||||
|
||||
@@ -8,10 +8,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
#
|
||||
|
||||
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
|
||||
function(split_library_list _generalvar _releasevar _debugvar)
|
||||
|
||||
@@ -39,10 +39,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(__stamp_sources_with_version)
|
||||
return()
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(NOT WIN32)
|
||||
option(TCHAR_WORKAROUND "Work around missing tchar error" on)
|
||||
|
||||
@@ -18,10 +18,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(NOT CMAKE_VERSION) # defined in >=2.6.3
|
||||
set(_cmver
|
||||
|
||||
@@ -8,10 +8,10 @@
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# 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)
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(__use_tr1)
|
||||
return()
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user