CMake project configuration for external projects
S-01730
As a ExSeisDat Developer I want to add a CMake project configuration script to make adding ExSeisDat to external (CMake-based) projects easier.
PreDev Notes:
A project configuration script can save information like the compiler and flags used during compilation, along with definitions used, libraries linked, and installation directories.
This information can then be accessed from a CMake script using the find_package
command.
See tutorials on making a projectconfig.cmake file:
Implementation Notes:
ADDME
System Test Changes:
ADDME
Bug Fixes:
ADDME
C++ API Changes:
ADDME
C API Changes:
ADDME
Success Criteria:
A CMake configure script for an external project using ExSeisDat can be written (assuming exseisdat is built and installed somewhere findable):
cmake_minimum_required(VERSION 3.5.2)
find_package(exseisdat REQUIRED)
add_executable(my_executable my_executable.cc)
target_link_libraries(my_executable exseisdat)
CREATED ON: 28/05/2018