2019-07-01 06:40:51 -04:00
|
|
|
# - Try to find StringVariable include dirs and libraries
|
|
|
|
#
|
|
|
|
# Usage of this module as follows:
|
|
|
|
#
|
|
|
|
# find_package(StringVariable)
|
|
|
|
#
|
|
|
|
# Variables used by this module, they can change the default behaviour and need
|
|
|
|
# to be set before calling find_package:
|
|
|
|
#
|
|
|
|
# StringVariable_ROOT_DIR Set this variable to the root installation of
|
|
|
|
# StringVariable if the module has problems finding the
|
|
|
|
# proper installation path.
|
|
|
|
#
|
|
|
|
# Variables defined by this module:
|
|
|
|
#
|
|
|
|
# StringVariable_FOUND System has StringVariable, include and library dirs found
|
|
|
|
# StringVariable_INCLUDE_DIR The StringVariable include directories.
|
|
|
|
# StringVariable_LIBRARIES_STATIC The StringVariable libraries.
|
|
|
|
# StringVariable_LIBRARIES_SHARED The StringVariable libraries.
|
|
|
|
|
2019-07-01 20:23:51 -04:00
|
|
|
include(tearoot-helper)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
|
2019-07-01 06:40:51 -04:00
|
|
|
find_path(StringVariable_ROOT_DIR
|
|
|
|
NAMES include/StringVariable.h CMakeLists.txt
|
2019-07-01 20:23:51 -04:00
|
|
|
HINTS ${StringVariable_ROOT_DIR} ${StringVariable_ROOT_DIR}/${BUILD_OUTPUT}
|
2019-07-01 06:40:51 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
find_path(StringVariable_INCLUDE_DIR
|
|
|
|
NAMES StringVariable.h
|
2019-07-01 20:23:51 -04:00
|
|
|
HINTS ${StringVariable_ROOT_DIR} ${StringVariable_ROOT_DIR}/include/
|
2019-07-01 06:40:51 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
find_library(StringVariable_LIBRARIES_STATIC
|
2019-07-03 07:27:12 -04:00
|
|
|
NAMES StringVariablesStatic.lib libStringVariablesStatic.a StringVariablesStatic.a
|
2019-07-01 20:23:51 -04:00
|
|
|
HINTS ${StringVariable_ROOT_DIR} ${StringVariable_ROOT_DIR}/lib
|
2019-07-01 06:40:51 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
find_library(StringVariable_LIBRARIES_SHARED
|
2019-07-03 07:27:12 -04:00
|
|
|
NAMES StringVariable.dll libStringVariable.so StringVariable.so
|
2019-07-01 20:23:51 -04:00
|
|
|
HINTS ${StringVariable_ROOT_DIR} ${StringVariable_ROOT_DIR}/lib
|
2019-07-01 06:40:51 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
find_package_handle_standard_args(StringVariable DEFAULT_MSG
|
|
|
|
StringVariable_INCLUDE_DIR
|
|
|
|
)
|
|
|
|
|
|
|
|
mark_as_advanced(
|
|
|
|
StringVariable_ROOT_DIR
|
|
|
|
StringVariable_INCLUDE_DIR
|
|
|
|
StringVariable_LIBRARIES_STATIC
|
|
|
|
StringVariable_LIBRARIES_SHARED
|
|
|
|
)
|