inmost-config.cmake.in 2.03 KB
Newer Older
Kirill Terekhov's avatar
Kirill Terekhov committed
1
2
3
4
5
6
7
8
# - Config file for the INMOST package
# It defines the following variables
#  INMOST_INCLUDE_DIRS  - include directories for INMOST and dependencies
#  INMOST_LIBRARY_DIRS  - library directories for INMOST and dependencies
#  INMOST_LIBRARIES     - libraries to link against
#  INMOST_COMPILE_FLAGS - flags to set to compiler (generally inherited from MPI)
 
# Compute paths
Kirill Terekhov's avatar
Kirill Terekhov committed
9
get_filename_component(inmost_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
Kirill Terekhov's avatar
Kirill Terekhov committed
10
11
12
set(INMOST_INCLUDE_DIRS "@CONF_INCLUDE_DIRS@")
 
if(NOT TARGET inmost AND NOT INMOST_BINARY_DIR)
Kirill Terekhov's avatar
Kirill Terekhov committed
13
  include("${inmost_DIR}/inmost-targets.cmake")
Kirill Terekhov's avatar
Kirill Terekhov committed
14
15
endif()
 
Kirill Terekhov's avatar
Kirill Terekhov committed
16
set(INMOST_LIBRARY_DIRS "${inmost_DIR}/lib")
Kirill Terekhov's avatar
Kirill Terekhov committed
17
18
19
set(INMOST_LIBRARIES inmost)


Kirill Terekhov's avatar
Kirill Terekhov committed
20
21
22
23
24
set(USE_MPI @USE_MPI@)
set(USE_PARTITIONER_ZOLTAN @USE_PARTITIONER_ZOLTAN@)
set(USE_PARTITIONER_PARMETIS @USE_PARTITIONER_PARMETIS@)
set(USE_SOLVER_TRILINOS @USE_SOLVER_TRILINOS@)
set(USE_SOLVER_PETSC @USE_SOLVER_PETSC@)
Kirill Terekhov's avatar
Kirill Terekhov committed
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
54
55
56
57
58

if( USE_MPI )
	list(APPEND INMOST_INCLUDE_DIRS "@MPI_INCLUDE_PATH@")
	list(APPEND INMOST_COMPILE_FLAGS "@MPI_COMPILE_FLAGS@")
endif( USE_MPI )

if( USE_PARTITIONER_ZOLTAN )
	list(APPEND INMOST_LIBRARIES "@ZOLTAN_LIBRARIES@")
	list(APPEND INMOST_INCLUDE_DIRS "@ZOLTAN_INCLUDE_DIRS@")
endif( USE_PARTITIONER_ZOLTAN )


if( USE_PARTITIONER_PARMETIS )
	list(APPEND INMOST_LIBRARIES "@PARMETIS_LIBRARIES@")
	list(APPEND INMOST_INCLUDE_DIRS "@PARMETIS_INCLUDE_DIR@")
	list(APPEND INMOST_INCLUDE_DIRS "@METIS_INCLUDE_DIR@")
endif( USE_PARTITIONER_PARMETIS )


if( USE_SOLVER_TRILINOS )
	list(APPEND INMOST_LIBRARIES "@Trilinos_LIBRARIES@")
	list(APPEND INMOST_LIBRARIES "@Trilinos_TPL_LIBRARIES@")
	list(APPEND INMOST_LIBRARY_DIRS "@Trilinos_LIBRARY_DIRS@")
	list(APPEND INMOST_LIBRARY_DIRS "@Trilinos_TPL_LIBRARY_DIRS@")
	list(APPEND INMOST_INCLUDE_DIRS "@Trilinos_INCLUDE_DIRS@")
	list(APPEND INMOST_INCLUDE_DIRS "@Trilinos_TPL_INCLUDE_DIRS@")
endif( USE_SOLVER_TRILINOS )


if( USE_SOLVER_PETSC )
	list(APPEND INMOST_LIBRARIES "@PETSC_LIBRARIES@")
	list(APPEND INMOST_LIBRARY_DIRS "@PETSC_LIBRARY_DIRS@")
	list(APPEND INMOST_INCLUDE_DIRS "@PETSC_INCLUDES@")
endif( USE_SOLVER_PETSC )