Warning, /sdk/codevis/thirdparty/soci/src/backends/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 ###############################################################################
0002 #
0003 # This file is part of CMake configuration for SOCI library
0004 #
0005 # Copyright (C) 2010 Mateusz Loskot
0006 # Distributed under the Boost Software License, Version 1.0.
0007 # (See accompanying file LICENSE_1_0.txt or copy at
0008 # http://www.boost.org/LICENSE_1_0.txt)
0009 #
0010 ###############################################################################
0011 colormsg(_HIBLUE_ "Configuring SOCI backend libraries:")
0012 
0013 # First, we'll investigate what can be found from database engines
0014 foreach(dep ${SOCI_BACKENDS_DB_DEPENDENCIES})
0015         string(TOUPPER ${dep} depUP)
0016         if (WITH_${depUP})
0017                 find_package(${dep})
0018         endif()
0019         if(${dep}_FOUND OR ${depUP}_FOUND)
0020                 set(${depUP}_FOUND ON)
0021         else()
0022                 set(${depUP}_FOUND OFF)
0023         endif()
0024         set(SOCI_HAVE_${depUP} OFF CACHE INTERNAL "${depUP} backend")
0025 endforeach()
0026 
0027 # get all files in backends
0028 file(GLOB backend_dirs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *)
0029 
0030 # empty backend always on by default
0031 option(SOCI_EMPTY "Build empty backend" ON)
0032 if(SOCI_EMPTY)
0033         set(WITH_EMPTY ON)
0034         set(EMPTY_FOUND ON)
0035 endif()
0036 
0037 # enable only found backends
0038 foreach(dir ${backend_dirs})
0039         if(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${dir})
0040                 if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${dir}/CMakeLists.txt)
0041                         string(TOUPPER ${dir} dirUP)
0042                         if(${dirUP}_FOUND AND WITH_${dirUP})
0043                                 add_subdirectory(${dir})
0044                                 set(SOCI_HAVE_${dirUP} ON CACHE INTERNAL "${dirUP} backend")
0045                         endif()
0046                 endif()
0047         endif()
0048 endforeach()
0049 
0050 message(STATUS "")