MoReFEMConfig.cmake.in 792 Bytes
Newer Older
1
# morefem cmake module
2 3 4
# This module sets the following variables in your project:
#   
#   MoReFEM_CMAKE_INCLUDE_DIRS - the directory containing MoReFEM headers
5 6
#   MoReFEM main library
#   MoReFEMPostProcessing_lib MoReFEM post-processing lib
7 8 9 10 11 12 13


@PACKAGE_INIT@

if(NOT TARGET @PROJECT_NAME@)
  include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
  get_target_property(@PROJECT_NAME@_INCLUDE_DIRS morefem_cmake INTERFACE_INCLUDE_DIRECTORIES)
14 15
  get_target_property(@PROJECT_NAME@_COMPILE_DEFINITION morefem_cmake INTERFACE_COMPILE_DEFINITIONS)
  
16 17 18 19 20 21
  
  if (${MoReFEM_COMPILE_DEFINITION})      
      foreach(item ${MoReFEM_COMPILE_DEFINITION})
          add_definitions(-D${item})
      endforeach()
  endif()
22 23
  
  include("${CMAKE_CURRENT_LIST_DIR}/CustomCommands.cmake") 
24
endif()