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

0001 #
0002 # Copyright (C) 2021 Vadim Zeitlin
0003 # Distributed under the Boost Software License, Version 1.0.
0004 # (See accompanying file LICENSE_1_0.txt or copy at
0005 # http://www.boost.org/LICENSE_1_0.txt)
0006 #
0007 
0008 # This is a very simple example of using SOCI in a CMake-based project.
0009 
0010 cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
0011 
0012 project(SOCIExampleConnect)
0013 
0014 find_package(Soci REQUIRED)
0015 
0016 add_executable(connect connect.cpp)
0017 
0018 # Note that depending on the SOCI library automatically pulls in the required
0019 # SOCI compilation options too, i.e. there is no need to explicitly use
0020 # target_include_directories().
0021 #
0022 # Linking with just soci_core is enough when using shared libraries, as the
0023 # required backends will be loaded dynamically during run-time, but when using
0024 # static libraries you would need to link with all the soci_<backend> libraries
0025 # needed too.
0026 target_link_libraries(connect PRIVATE SOCI::soci_core)