Squashed 'cmake/' content from commit 2d25566
git-subtree-dir: cmake git-subtree-split: 2d25566a1c5162ce3fd6bfc268d5665de182af89
This commit is contained in:
91
nested_targets/OpenHaptics/CMakeLists.txt
Normal file
91
nested_targets/OpenHaptics/CMakeLists.txt
Normal file
@@ -0,0 +1,91 @@
|
||||
# - Build the OpenHaptics utility libraries as a part of your solution.
|
||||
#
|
||||
# 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)
|
||||
|
||||
include_directories("${HDAPI_HDU_INCLUDE_DIR}"
|
||||
"${HDAPI_INCLUDE_DIR}"
|
||||
"${HLAPI_HLU_INCLUDE_DIR}"
|
||||
"${HLAPI_INCLUDE_DIR}")
|
||||
|
||||
if(HDAPI_HDU_LIBRARY STREQUAL "openhaptics_hdu_nested_target")
|
||||
add_library(openhaptics_hdu_nested_target
|
||||
STATIC
|
||||
EXCLUDE_FROM_ALL
|
||||
"${HDAPI_HDU_INCLUDE_DIR}/HDU/hduBoundBox.h"
|
||||
"${HDAPI_HDU_INCLUDE_DIR}/HDU/hduError.h"
|
||||
"${HDAPI_HDU_INCLUDE_DIR}/HDU/hduGenericMatrix.h"
|
||||
"${HDAPI_HDU_INCLUDE_DIR}/HDU/hdu.h"
|
||||
"${HDAPI_HDU_INCLUDE_DIR}/HDU/hduHapticDevice.h"
|
||||
"${HDAPI_HDU_INCLUDE_DIR}/HDU/hduLine.h"
|
||||
"${HDAPI_HDU_INCLUDE_DIR}/HDU/hduLineSegment.h"
|
||||
"${HDAPI_HDU_INCLUDE_DIR}/HDU/hduMath.h"
|
||||
"${HDAPI_HDU_INCLUDE_DIR}/HDU/hduMatrix.h"
|
||||
"${HDAPI_HDU_INCLUDE_DIR}/HDU/hduPlane.h"
|
||||
"${HDAPI_HDU_INCLUDE_DIR}/HDU/hduQuaternion.h"
|
||||
"${HDAPI_HDU_INCLUDE_DIR}/HDU/hduRecord.h"
|
||||
"${HDAPI_HDU_INCLUDE_DIR}/HDU/hduVector.h"
|
||||
"${HDAPI_HDU_SOURCE_DIR}/hdu.cpp"
|
||||
"${HDAPI_HDU_SOURCE_DIR}/hduAfx.cpp"
|
||||
"${HDAPI_HDU_SOURCE_DIR}/hduAfx.h"
|
||||
"${HDAPI_HDU_SOURCE_DIR}/hduDecompose.cpp"
|
||||
"${HDAPI_HDU_SOURCE_DIR}/hduDecompose.h"
|
||||
"${HDAPI_HDU_SOURCE_DIR}/hduError.cpp"
|
||||
"${HDAPI_HDU_SOURCE_DIR}/hduHapticDevice.cpp"
|
||||
"${HDAPI_HDU_SOURCE_DIR}/hduLine.cpp"
|
||||
"${HDAPI_HDU_SOURCE_DIR}/hduLineSegment.cpp"
|
||||
"${HDAPI_HDU_SOURCE_DIR}/hduMatrix.cpp"
|
||||
"${HDAPI_HDU_SOURCE_DIR}/hduPlane.cpp"
|
||||
"${HDAPI_HDU_SOURCE_DIR}/hduQuaternion.cpp"
|
||||
"${HDAPI_HDU_SOURCE_DIR}/hduRecord.cpp")
|
||||
target_link_libraries(openhaptics_hdu_nested_target ${HDAPI_LIBRARIES})
|
||||
set_property(TARGET
|
||||
openhaptics_hdu_nested_target
|
||||
PROPERTY
|
||||
PROJECT_LABEL
|
||||
"OpenHaptics HDU Library")
|
||||
|
||||
if(MSVC)
|
||||
# Disable warnings - no sense in warning about Sensable's potential bugs.
|
||||
set_property(TARGET
|
||||
openhaptics_hdu_nested_target
|
||||
PROPERTY
|
||||
COMPILE_FLAGS
|
||||
"/wd4189 /wd4701")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
if(HLAPI_HLU_LIBRARY STREQUAL "openhaptics_hlu_nested_target")
|
||||
add_library(openhaptics_hlu_nested_target
|
||||
STATIC
|
||||
EXCLUDE_FROM_ALL
|
||||
"${HLAPI_HLU_INCLUDE_DIR}/HLU/hlu.h"
|
||||
"${HLAPI_HLU_SOURCE_DIR}/hlu.cpp"
|
||||
"${HLAPI_HLU_SOURCE_DIR}/hluAfx.cpp"
|
||||
"${HLAPI_HLU_SOURCE_DIR}/hluAfx.h")
|
||||
target_link_libraries(openhaptics_hlu_nested_target ${HLAPI_LIBRARIES})
|
||||
|
||||
set_property(TARGET
|
||||
openhaptics_hlu_nested_target
|
||||
PROPERTY
|
||||
PROJECT_LABEL
|
||||
"OpenHaptics HLU Library")
|
||||
|
||||
if(MSVC)
|
||||
# Disable warnings - no sense in warning about Sensable's potential bugs.
|
||||
set_property(TARGET
|
||||
openhaptics_hlu_nested_target
|
||||
APPEND
|
||||
PROPERTY
|
||||
COMPILE_FLAGS
|
||||
/wd4189)
|
||||
endif()
|
||||
endif()
|
||||
93
nested_targets/Parasolid/CMakeLists.txt
Normal file
93
nested_targets/Parasolid/CMakeLists.txt
Normal file
@@ -0,0 +1,93 @@
|
||||
# - Build the Parasolid utility libraries as a part of your solution.
|
||||
#
|
||||
# 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)
|
||||
|
||||
include_directories("${HDAPI_HDU_INCLUDE_DIR}"
|
||||
"${HDAPI_INCLUDE_DIR}"
|
||||
"${HLAPI_HLU_INCLUDE_DIR}"
|
||||
"${HLAPI_INCLUDE_DIR}")
|
||||
|
||||
if(PARASOLID_fg_LIBRARY STREQUAL "parasolid_fg_nested_target")
|
||||
get_filename_component(_fgdir "${PARASOLID_FG_C}" PATH)
|
||||
include_directories("${_fgdir}")
|
||||
add_library(parasolid_fg_nested_target
|
||||
STATIC
|
||||
EXCLUDE_FROM_ALL
|
||||
"${PARASOLID_FG_C}")
|
||||
|
||||
set_property(TARGET
|
||||
parasolid_fg_nested_target
|
||||
PROPERTY
|
||||
COMPILE_DEFINITIONS
|
||||
_CRT_SECURE_NO_DEPRECATE)
|
||||
if(MSVC)
|
||||
set_property(TARGET
|
||||
parasolid_fg_nested_target
|
||||
PROPERTY
|
||||
COMPILE_FLAGS
|
||||
"/Gs /GF /GS- /fp:fast")
|
||||
endif()
|
||||
|
||||
set_property(TARGET
|
||||
parasolid_fg_nested_target
|
||||
PROPERTY
|
||||
PROJECT_LABEL
|
||||
"Parasolid Foreign Geometry Example Library")
|
||||
|
||||
if(MSVC)
|
||||
# Disable warnings - no sense in warning about a third party's potential bugs.
|
||||
# set_property(TARGET
|
||||
# parasolid_fg_nested_target
|
||||
# PROPERTY
|
||||
# COMPILE_FLAGS
|
||||
# "/wd4189 /wd4701")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
if(PARASOLID_frustrum_LIBRARY
|
||||
STREQUAL
|
||||
"parasolid_frustrum_nested_target")
|
||||
get_filename_component(_frustrumdir "${PARASOLID_FRUSTRUM_C}" PATH)
|
||||
include_directories("${_frustrumdir}")
|
||||
add_library(parasolid_frustrum_nested_target
|
||||
STATIC
|
||||
EXCLUDE_FROM_ALL
|
||||
"${PARASOLID_FRUSTRUM_C}")
|
||||
|
||||
set_property(TARGET
|
||||
parasolid_frustrum_nested_target
|
||||
PROPERTY
|
||||
COMPILE_DEFINITIONS
|
||||
_CRT_SECURE_NO_DEPRECATE)
|
||||
if(MSVC)
|
||||
set_property(TARGET
|
||||
parasolid_frustrum_nested_target
|
||||
PROPERTY
|
||||
COMPILE_FLAGS
|
||||
"/Gs /GF /GS- /fp:fast")
|
||||
endif()
|
||||
|
||||
set_property(TARGET
|
||||
parasolid_frustrum_nested_target
|
||||
PROPERTY
|
||||
PROJECT_LABEL
|
||||
"Parasolid Frustrum Example Library")
|
||||
|
||||
if(MSVC)
|
||||
# Disable warnings - no sense in warning about a third party's potential bugs.
|
||||
# set_property(TARGET
|
||||
# parasolid_frustrum_nested_target
|
||||
# PROPERTY
|
||||
# COMPILE_FLAGS
|
||||
# "/wd4189 /wd4701")
|
||||
endif()
|
||||
endif()
|
||||
41
nested_targets/cutil/CMakeLists.txt
Normal file
41
nested_targets/cutil/CMakeLists.txt
Normal file
@@ -0,0 +1,41 @@
|
||||
# CMake cross-platform build system
|
||||
# 2009-2010 Ryan Pavlik <rpavlik@iastate.edu>
|
||||
# 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)
|
||||
|
||||
|
||||
###
|
||||
# Build the project
|
||||
###
|
||||
|
||||
include_directories("${CUTIL_ROOT_DIR}/inc")
|
||||
set(SOURCES
|
||||
"${CUTIL_ROOT_DIR}/src/bank_checker.cpp"
|
||||
"${CUTIL_ROOT_DIR}/src/cmd_arg_reader.cpp"
|
||||
"${CUTIL_ROOT_DIR}/src/cutil.cpp"
|
||||
"${CUTIL_ROOT_DIR}/src/stopwatch.cpp"
|
||||
"${CUTIL_ROOT_DIR}/src/multithreading.cpp")
|
||||
|
||||
if(WIN32)
|
||||
list(APPEND SOURCES
|
||||
"${CUDA_SDK_ROOT_DIR}/C/common/src/stopwatch_win.cpp")
|
||||
add_definitions(-DWIN32 -D_WINDOWS -DBUILD_DLL)
|
||||
set(TYPE SHARED)
|
||||
|
||||
else()
|
||||
list(APPEND SOURCES
|
||||
"${CUTIL_ROOT_DIR}/src/stopwatch_linux.cpp")
|
||||
set(TYPE STATIC)
|
||||
|
||||
endif()
|
||||
|
||||
cuda_add_library(cutil ${TYPE} EXCLUDE_FROM_ALL ${SOURCES})
|
||||
|
||||
set(CUTIL_INCLUDE_DIRS "${CUTIL_ROOT_DIR}/inc" PARENT_SCOPE)
|
||||
set(CUTIL_LIBRARIES cutil PARENT_SCOPE)
|
||||
|
||||
Reference in New Issue
Block a user