You need to create a CMake-based build configuration for a project that uses the SOCI library with support for an Oracle database backend. The build should be configured to include the necessary flags to enable Oracle support while disabling Boost dependencies.
Expected Inputs:
CMake Options:
SOCI_DEFAULT_CMAKE_OPTIONS: Should contain default options required for the SOCI build.
Additional options:
-DWITH_BOOST=OFF: Disable Boost support.
-DSOCI_ORACLE=ON: Enable Oracle backend support.
-DSOCI_ORACLE_TEST_CONNSTR=STRING="service=XE user=travis password=travis": Connection string for Oracle database.
Source Code Requirements:
Implement any necessary source files and headers that integrate SOCI with Oracle.
Environment Setup:
Ensure that the Oracle client and SOCI library are available and configured correctly in the build environment.
Expected Outputs:
A successful build of the SOCI library with Oracle support enabled.
All tests related to the Oracle backend should pass without errors.
File Locations and Naming:
Place your implementation files in the /app/ directory, ensuring they adhere to the project structure required for CMake.
The main CMakeLists.txt file should also be located in /app/, and it should be configured correctly to include necessary source files and dependencies.
Make sure to validate your implementation by running the provided test script after building to ensure all tests pass.
Tests
The following test script will be used to verify your solution: