Warning, /graphics/kst-plot/old_datasources/dmc/FindDmc.cmake is written in an unsupported language. File is not indexed.
0001 0002 0003 #include(FindPkgConfig) 0004 #pkg_check_modules(PostgreSQL libpq-dev) 0005 0006 if(DMC_INCLUDEDIR AND DMC_LIBRARIES) 0007 set(DMC_LIBRARY -L${DMC_LIBRARY_DIRS} ${DMC_LIBRARIES}) 0008 else() 0009 set(DMC_INCLUDEDIR DMC_INCLUDEDIR-NOTFOUND CACHE STRING "" FORCE) 0010 0011 FIND_PATH(PQ_DIR libpq-fe.h 0012 HINTS 0013 ENV PQ_DIR 0014 PATH_SUFFIXES include 0015 PATHS) 0016 FIND_PATH(PIO_DB PIODB.h 0017 HINTS 0018 ENV DMC_DIR 0019 PATH_SUFFIXES HL2_DMC include/HL2_DMC 0020 PATHS) 0021 FIND_PATH(PIO_ERR PIOErr.h 0022 HINTS 0023 ENV DMC_DIR 0024 PATH_SUFFIXES HL2_PIOLIB include/HL2_PIOLIB 0025 PATHS) 0026 if(PIO_DB AND PIO_ERR AND PQ_DIR) 0027 set(DMC_INCLUDEDIR ${PIO_DB}/..) 0028 endif() 0029 if(NOT PIO_DB STREQUAL PIO_ERR) 0030 set(DMC_INCLUDEDIR ${DMC_INCLUDEDIR} ${PIO_ERR}/..) 0031 endif() 0032 FIND_LIBRARY(DMC_LIBRARY piolib 0033 HINTS 0034 ENV DMC_DIR 0035 PATH_SUFFIXES lib lib/Linux-x86_64 0036 PATHS) 0037 endif() 0038 0039 #message(STATUS "PIO_DB ${PIO_DB}") 0040 #message(STATUS "PIO_ERR ${PIO_ERR}") 0041 #message(STATUS "PQ_H ${PQ_H}") 0042 0043 IF(DMC_INCLUDEDIR AND DMC_LIBRARY AND PQ_DIR) 0044 MESSAGE(STATUS "DMC found at ${DMC_INCLUDEDIR}") 0045 SET(DMC_INCLUDE_DIR ${DMC_INCLUDEDIR} ${PQ_DIR}) 0046 SET(DMC_LIBRARIES ${DMC_LIBRARY}) 0047 SET(dmc 1) 0048 ELSE() 0049 MESSAGE(STATUS "DMC not found.") 0050 ENDIF() 0051 0052 #message(STATUS "DMC: ${DMC_INCLUDEDIR}") 0053 #message(STATUS "DMC: ${DMC_LIBRARIES}") 0054 0055 0056 0057