Back to home page

EIC code displayed by LXR

 
 

    


Warning, /jana2/cmake/JANAConfig.cmake.in is written in an unsupported language. File is not indexed.

0001 @PACKAGE_INIT@
0002 
0003 find_package(Threads REQUIRED)
0004 
0005 include("${CMAKE_CURRENT_LIST_DIR}/JANATargets.cmake")
0006 
0007 
0008 # Provide user with shared libraries by default if JANA was built with them. 
0009 # Otherwise, provide them with the static version. They can always specify themselves
0010 # using the JANA::jana2_shared_lib and JANA::jana2_static_lib targets explicitly.
0011 # n.b. this would be cleaner if we could use an ALIAS, but that would require cmake
0012 # 3.18 or greater and we want to support legacy versions at this point.
0013 set(BUILD_SHARED_LIBS @BUILD_SHARED_LIBS@)
0014 if (${BUILD_SHARED_LIBS})
0015     get_target_property(JANA_INCLUDE_DIRS JANA::jana2_shared_lib INTERFACE_INCLUDE_DIRECTORIES)
0016     set(JANA_LIBRARIES JANA::jana2_shared_lib)
0017 else()
0018     get_target_property(JANA_INCLUDE_DIRS JANA::jana2_static_lib INTERFACE_INCLUDE_DIRECTORIES)
0019     set(JANA_LIBRARIES JANA::jana2_static_lib)
0020 endif()
0021 
0022 # There are some issues with the include directories being passed through as a property
0023 # of the imported targets. This shows up as JANA_INCLUDE_DIRS being set to
0024 # "JANA_INCLUDE_DIRS-NOTFOUND". As a workaround, if "NOTFOUND" is included in
0025 # JANA_INCLUDE_DIRS then overwrite it here with what it should have been set to.
0026 if(${JANA_INCLUDE_DIRS} MATCHES "NOTFOUND")
0027     set(JANA_INCLUDE_DIRS @CMAKE_INSTALL_PREFIX@/include)
0028 endif()
0029 
0030 # Backwards compatibility
0031 set(JANA_INCLUDE_DIR ${JANA_INCLUDE_DIRS})
0032 set(JANA_LIBRARY ${JANA_LIBRARIES}) 
0033 set(JANA_LIB ${JANA_LIBRARIES}) 
0034 
0035 # Include JANA cmake helper macros
0036 include("${CMAKE_CURRENT_LIST_DIR}/AddJanaPlugin.cmake")
0037 include("${CMAKE_CURRENT_LIST_DIR}/AddJanaLibrary.cmake")
0038 include("${CMAKE_CURRENT_LIST_DIR}/AddJanaTest.cmake")
0039 
0040