diff options
author | Brad King <brad.king@kitware.com> | 2019-02-12 13:24:03 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-02-12 13:24:11 (GMT) |
commit | f0a57d42a2b0309c14615b7a9572f611ddda435e (patch) | |
tree | 90e1b4ac204b1e14768dd670ea5e7840913377cb /Modules | |
parent | 64ae72c52ac44984c9d5a23b19f4bd9dc9a68fdf (diff) | |
parent | 6725975bd8c47c7817a286ada9eadb9b0fbf324c (diff) | |
download | CMake-f0a57d42a2b0309c14615b7a9572f611ddda435e.zip CMake-f0a57d42a2b0309c14615b7a9572f611ddda435e.tar.gz CMake-f0a57d42a2b0309c14615b7a9572f611ddda435e.tar.bz2 |
Merge topic 'FindOctave-interp-target'
6725975bd8 FindOctave: Add target for octinterp
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2931
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindOctave.cmake | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Modules/FindOctave.cmake b/Modules/FindOctave.cmake index 8ae6a47..8110ff1 100644 --- a/Modules/FindOctave.cmake +++ b/Modules/FindOctave.cmake @@ -15,7 +15,10 @@ This module defines the following :prop_tgt:`IMPORTED` targets: ``Octave::Interpreter`` Octave interpreter (the main program) ``Octave::Octave`` - include directories and libraries + include directories and the octave library +``Octave::Octinterp`` + include directories and the octinterp library including the dependency on + Octave::Octave If no ``COMPONENTS`` are specified, ``Interpreter`` is assumed. @@ -144,6 +147,15 @@ if(Octave_Development_FOUND) ) endif() + if(NOT TARGET Octave::Octinterp) + add_library(Octave::Octinterp UNKNOWN IMPORTED) + set_target_properties(Octave::Octinterp PROPERTIES + IMPORTED_LOCATION ${Octave_INTERP_LIBRARY} + INTERFACE_INCLUDE_DIRECTORIES ${Octave_INCLUDE_DIR}) + target_link_libraries(Octave::Octinterp INTERFACE + Octave::Octave) + endif() + endif() |