forked from statismo/statismo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
statismoConfig.cmake.in
54 lines (41 loc) · 1.54 KB
/
statismoConfig.cmake.in
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
52
53
# Config file for statismo package
# Compute paths
get_filename_component( statismo_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH )
set( statismo_INCLUDE_DIRS "@CONF_INCLUDE_DIRS@" )
# Our library dependencies (contains definitions for IMPORTED targets)
if(NOT TARGET statismo_core AND NOT statismo_BINARY_DIR)
include("${statismo_CMAKE_DIR}/statismoTargets.cmake")
endif()
set( Boost_INCLUDE_DIR @Boost_INCLUDE_DIR@ )
set( Boost_LIBRARY_DIRS @Boost_LIBRARY_DIRS@ )
set( Boost_LIBRARIES @Boost_LIBRARIES@ )
add_definitions( -DBOOST_THREAD_VERSION=3 )
set( HDF5_DIR @HDF5_DIR@ )
set( HDF5_INCLUDE_DIRS @HDF5_INCLUDE_DIRS@ )
set( HDF5_LIBRARIES @HDF5_LIBRARIES@ )
set( EIGEN3_INCLUDE_DIR @EIGEN3_INCLUDE_DIR@ )
include_directories(
${statismo_INCLUDE_DIRS}
${Boost_INCLUDE_DIR}
${HDF5_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIR}
)
link_directories( ${Boost_LIBRARY_DIRS} )
set( VTK_SUPPORT @VTK_SUPPORT@ )
set( ITK_SUPPORT @ITK_SUPPORT@ )
if( VTK_SUPPORT )
set( VTK_DIR @VTK_DIR@ )
find_package( VTK )
endif()
if( ITK_SUPPORT )
set( ITK_DIR @ITK_DIR@ )
find_package( ITK )
endif()
set( statismo_LIBRARIES "@statismo_LIBRARIES@" )
if(MSVC11) #i.e. Visual Studio 2012
# Fix for VS2012 that has _VARIADIC_MAX set to 5. Don't set too high because it increases compiler memory usage / compile-time.
add_definitions( -D_VARIADIC_MAX=10 )
# Fix for another VS2012 problem: not all TR1 options are automatically detected, therefore we force them here.
add_definitions( -D BOOST_HAS_TR1 )
add_definitions( -D BOOST_NO_0X_HDR_INITIALIZER_LIST )
endif()