mirror of
https://github.com/OpenFOAM/ThirdParty-6.git
synced 2025-12-08 06:57:43 +00:00
51 lines
2.0 KiB
CMake
51 lines
2.0 KiB
CMake
project(PointSpritePlugin)
|
|
cmake_minimum_required(VERSION 2.8.8)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Disable deprecation warnings for standard C and STL functions in VS2005 and
|
|
# later (no, we don't need IF(CMAKE_COMPILER_2005) ... )
|
|
# -----------------------------------------------------------------------------
|
|
add_definitions(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE)
|
|
add_definitions(-D_SCL_SECURE_NO_DEPRECATE)
|
|
|
|
#--------------------------------------------------
|
|
# Find and Use ParaView
|
|
#--------------------------------------------------
|
|
IF (ParaView_SOURCE_DIR)
|
|
# we are building from within ParaView Source. The environment is already set.
|
|
# Nothign more to do.
|
|
ELSE ()
|
|
find_package(ParaView)
|
|
include("${PARAVIEW_USE_FILE}")
|
|
include (ParaViewPlugins)
|
|
|
|
# Load information about VTK/ParaView modules loaded/available.
|
|
pv_setup_module_environment("PointSpritePlugin")
|
|
ENDIF ()
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Process all vtk-modules defined in this plugin. This generates the necessary
|
|
# wrappings for all these modules as well.
|
|
# -----------------------------------------------------------------------------
|
|
pv_process_modules()
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Build the Paraview plugins
|
|
# -----------------------------------------------------------------------------
|
|
add_subdirectory(ParaViewPlugin)
|
|
#
|
|
## -----------------------------------------------------------------------------
|
|
## Build the tests
|
|
## -----------------------------------------------------------------------------
|
|
#IF (DEFINED BUILD_EXAMPLES)
|
|
# IF (BUILD_EXAMPLES)
|
|
# add_subdirectory(Examples)
|
|
# ENDIF ()
|
|
#ELSE ()
|
|
# set(PointSpritePlugin_BUILD_EXAMPLES ON CACHE BOOL "Build the example.")
|
|
# IF(PointSpritePlugin_BUILD_EXAMPLES)
|
|
# add_subdirectory(Examples)
|
|
# ENDIF()
|
|
# mark_as_advanced(PointSpritePlugin_BUILD_EXAMPLES)
|
|
#ENDIF ()
|