BASIS  version 1.2.3 (revision 2104)
Functions
CommonTools.cmake File Reference

Definition of common CMake functions. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

function basis_check_target_name (in TARGET_NAME)
 Checks whether a given name is a valid target name.
function basis_check_test_name (in TEST_NAME)
 Checks whether a given name is a valid test name.
function basis_configure_sources (in LIST_NAME, in ARGN)
 Configure .in source files.
function basis_dump_variables (in RESULT_FILE)
 Output current CMake variables to file.
macro basis_find_package (in PACKAGE, in ARGN)
 Find external software package or other project module.
macro basis_get_filename_component ()
 Alias for the overwritten get_filename_component() function.
function basis_get_fully_qualified_target_uid (in TARGET_UID, in TARGET_NAME)
 Get fully-qualified target name.
macro basis_get_fully_qualified_test_uid (in TEST_UID, in TEST_NAME)
 Get "global" test name, i.e., actual CTest test name.
function basis_get_project_property (in VARIABLE, in ARGN)
 Get project-global property value.
function basis_get_property (in VAR, in SCOPE, in ELEMENT, in ARGN)
 Get a property.
function basis_get_relative_path (in REL, in BASE, in PATH)
 Get path relative to a given base directory.
function basis_get_source_language (in LANGUAGE, in ARGN)
 Detect programming language of given source code files.
function basis_get_source_target_name (in TARGET_NAME, in SOURCE_FILE, in COMPONENT)
 Derive target name from source file name.
function basis_get_target_location (in VAR, in TARGET_NAME, in PART)
 Get location of build target output file.
function basis_get_target_name (in TARGET_NAME, in TARGET_UID)
 Get "local" target name, i.e., BASIS target name.
function basis_get_target_namespace (in TARGET_NS, in TARGET_UID)
 Get namespace of build target.
function basis_get_target_type (in TYPE, in TARGET_NAME)
 Get type name of target.
function basis_get_target_uid (in TARGET_UID, in TARGET_NAME)
 Get "global" target name, i.e., actual CMake target name.
macro basis_get_test_name (in TEST_NAME, in TEST_UID)
 Get "local" test name, i.e., BASIS test name.
macro basis_get_test_namespace (in TEST_NS, in TEST_UID)
 Get namespace of test.
macro basis_get_test_uid (in TEST_UID, in TEST_NAME)
 Get "global" test name, i.e., actual CTest test name.
function basis_list_to_delimited_string (in STR, in DELIM, in ARGN)
 Concatenates all list elements into a single delimited string.
macro basis_list_to_regex (in REGEX, in ARGN)
 Convert list into regular expression.
function basis_list_to_string (in STR, in ARGN)
 Concatenates all list elements into a single string.
macro basis_make_target_uid (in TARGET_UID, in TARGET_NAME)
 Make target UID from given target name.
macro basis_make_test_uid (in TEST_UID, in TEST_NAME)
 Make test UID from given test name.
function basis_normalize_name (in OUT, in STR)
 Convert string to lowercase only or mixed case.
function basis_process_generator_expressions (in ARGS, in ARGN)
 Process generator expressions in arguments.
macro basis_sanitize_for_regex (in OUT, in STR)
 Sanitize string variable for use in regular expression.
macro basis_set_if_empty (in VAR, in ARGN)
 Set value of variable only if variable is not set already.
macro basis_set_if_not_set (in VAR, in ARGN)
 Set value of variable only if variable is not defined yet.
function basis_set_or_update_cache (in VAR)
 Set variable.
function basis_set_project_property ()
 Set project-global property.
function basis_set_property (in SCOPE, in ARGN)
 Set a named property in a given scope.
function basis_set_script_path (in VAR, in PATH, in ARGV3)
 Set path relative to script file.
function basis_string_to_list (in LST, in STR)
 Splits a string at space characters into a list.
function basis_update_cache (in VAR)
 Update cache variable.
macro basis_use_package (in PACKAGE)
 Use found package.
function basis_version_numbers (in VERSION, in MAJOR, in MINOR, in PATCH)
 Extract version numbers from version string.
function get_filename_component (in ARGN)
 Fixes CMake's get_filename_component() command.

Detailed Description

Definition of common CMake functions.

Copyright (c) 2011, 2012 University of Pennsylvania. All rights reserved.
See https://www.cbica.upenn.edu/sbia/software/license.html or COPYING file.

Contact: SBIA Group <sbia-software at uphs.upenn.edu>

Definition in file CommonTools.cmake.