1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
#
# Copyright (c) 2006-2011 Mathieu Malaterre <mathieu.malaterre@gmail.com>
#
# Redistribution and use is allowed according to the terms of the New
# BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
#
# Testing on Linux with:
# ActiViz.NET-5.4.0.455-Linux-x86_64-Personal
# Note:
# IMHO I cannot use FIND_LIBRARY on Linux because of the .dll extension...
# instead switch to FIND_FILE
find_file(ACTIVIZ_KITWARE_VTK_LIBRARY
NAMES Kitware.VTK.dll
PATHS /usr/lib /usr/local/lib /usr/lib/cli/activiz-cil /usr/lib/cli/ActiViz.NET
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\Kitware\\ActiVizDotNet 5.2.1]/bin"
$ENV{ACTIVIZ_ROOT}/bin
)
find_file(ACTIVIZ_KITWARE_MUMMY_RUNTIME_LIBRARY
NAMES Kitware.mummy.Runtime.dll
PATHS /usr/lib /usr/local/lib /usr/lib/cli/activiz-cil /usr/lib/cli/Kitware.mummy.Runtime-1.0
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\Kitware\\ActiVizDotNet 5.2.1]/bin"
$ENV{ACTIVIZ_ROOT}/bin
)
if (ACTIVIZ_KITWARE_VTK_LIBRARY AND ACTIVIZ_KITWARE_MUMMY_RUNTIME_LIBRARY)
set(ACTIVIZ_LIBRARIES ${ACTIVIZ_KITWARE_MUMMY_RUNTIME_LIBRARY} ${ACTIVIZ_KITWARE_VTK_LIBRARY})
set(ACTIVIZ_FOUND "YES")
else()
set(ACTIVIZ_FOUND "NO")
endif ()
if (ACTIVIZ_FOUND)
if (NOT ACTIVIZ_FIND_QUIETLY)
message(STATUS "Found ACTIVIZ: ${ACTIVIZ_LIBRARIES}")
endif ()
else ()
if (ACTIVIZ_FIND_REQUIRED)
message(FATAL_ERROR "Could not find ACTIVIZ library")
endif ()
endif ()
mark_as_advanced(
ACTIVIZ_KITWARE_VTK_LIBRARY
ACTIVIZ_KITWARE_MUMMY_RUNTIME_LIBRARY
)
|