... | ... | @@ -19,7 +19,6 @@ |
|
|
# OCTAVE_PATCH_VERSION - patch version
|
|
|
# OCTAVE_OCT_FILE_DIR - object files that will be dynamically loaded
|
|
|
# OCTAVE_OCT_LIB_DIR - oct libraries
|
|
|
# OCTAVE_ROOT_DIR - octave prefix
|
|
|
#
|
|
|
# The macro octave_add_oct allows to create compiled modules.
|
|
|
# octave_add_oct ( target_name
|
... | ... | @@ -28,12 +27,6 @@ |
|
|
# [EXTENSION ext]
|
|
|
# )
|
|
|
#
|
|
|
# To install it, you can the use the variable OCTAVE_OCT_FILE_DIR as follow:
|
|
|
# file ( RELATIVE_PATH PKG_OCTAVE_OCT_FILE_DIR ${OCTAVE_ROOT_DIR} ${OCTAVE_OCT_FILE_DIR} )
|
|
|
# install (
|
|
|
# TARGETS target_name
|
|
|
# DESTINATION ${PKG_OCTAVE_OCT_FILE_DIR}
|
|
|
# )
|
|
|
|
|
|
#=============================================================================
|
|
|
# Copyright 2013, Julien Schueller
|
... | ... | @@ -70,10 +63,6 @@ |
|
|
|
|
|
if ( OCTAVE_CONFIG_EXECUTABLE )
|
|
|
|
|
|
execute_process ( COMMAND ${OCTAVE_CONFIG_EXECUTABLE} -p PREFIX
|
|
|
OUTPUT_VARIABLE OCTAVE_ROOT_DIR
|
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE )
|
|
|
|
|
|
execute_process ( COMMAND ${OCTAVE_CONFIG_EXECUTABLE} -p BINDIR
|
|
|
OUTPUT_VARIABLE OCTAVE_BIN_PATHS
|
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE )
|
... | ... | @@ -125,7 +114,9 @@ |
|
|
|
|
|
set ( OCTAVE_LIBRARIES ${OCTAVE_OCTINTERP_LIBRARY} )
|
|
|
list ( APPEND OCTAVE_LIBRARIES ${OCTAVE_OCTAVE_LIBRARY} )
|
|
|
list ( APPEND OCTAVE_LIBRARIES ${OCTAVE_CRUFT_LIBRARY} )
|
|
|
if ( ${OCTAVE_CRUFT_LIBRARY} )
|
|
|
list ( APPEND OCTAVE_LIBRARIES ${OCTAVE_CRUFT_LIBRARY} )
|
|
|
endif ()
|
|
|
|
|
|
find_path ( OCTAVE_INCLUDE_DIR
|
|
|
NAMES mex.h
|
... | ... | @@ -168,9 +159,9 @@ |
|
|
# handle REQUIRED and QUIET options
|
|
|
include ( FindPackageHandleStandardArgs )
|
|
|
if ( CMAKE_VERSION LESS 2.8.3 )
|
|
|
find_package_handle_standard_args ( Octave DEFAULT_MSG OCTAVE_EXECUTABLE OCTAVE_ROOT_DIR OCTAVE_INCLUDE_DIRS OCTAVE_LIBRARIES OCTAVE_VERSION_STRING )
|
|
|
find_package_handle_standard_args ( Octave DEFAULT_MSG OCTAVE_EXECUTABLE OCTAVE_INCLUDE_DIRS OCTAVE_LIBRARIES OCTAVE_VERSION_STRING )
|
|
|
else ()
|
|
|
find_package_handle_standard_args ( Octave REQUIRED_VARS OCTAVE_EXECUTABLE OCTAVE_ROOT_DIR OCTAVE_INCLUDE_DIRS OCTAVE_LIBRARIES VERSION_VAR OCTAVE_VERSION_STRING )
|
|
|
find_package_handle_standard_args ( Octave REQUIRED_VARS OCTAVE_EXECUTABLE OCTAVE_INCLUDE_DIRS OCTAVE_LIBRARIES VERSION_VAR OCTAVE_VERSION_STRING )
|
|
|
endif ()
|
|
|
|
|
|
mark_as_advanced (
|
... | ... | @@ -182,7 +173,6 @@ |
|
|
OCTAVE_LIBRARIES
|
|
|
OCTAVE_INCLUDE_DIR
|
|
|
OCTAVE_INCLUDE_DIRS
|
|
|
OCTAVE_ROOT_DIR
|
|
|
OCTAVE_VERSION_STRING
|
|
|
OCTAVE_MAJOR_VERSION
|
|
|
OCTAVE_MINOR_VERSION
|
... | ... | |