Squashed 'cmake/' content from commit 2d25566
git-subtree-dir: cmake git-subtree-split: 2d25566a1c5162ce3fd6bfc268d5665de182af89
This commit is contained in:
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()
|
||||
Reference in New Issue
Block a user