2002-01-20 05:24:55 +03:00
|
|
|
// Test SET, VARIABLE_REQUIRES
|
|
|
|
|
2001-08-23 21:57:45 +04:00
|
|
|
#cmakedefine ONE_VAR
|
2002-01-18 20:03:32 +03:00
|
|
|
#cmakedefine ONE_VAR_IS_DEFINED
|
2001-08-23 21:57:45 +04:00
|
|
|
#cmakedefine ZERO_VAR
|
2002-01-18 20:03:32 +03:00
|
|
|
|
2001-08-23 21:57:45 +04:00
|
|
|
#define STRING_VAR "${STRING_VAR}"
|
|
|
|
|
2002-01-20 05:24:55 +03:00
|
|
|
// Test FOREACH
|
|
|
|
|
2002-01-18 20:03:32 +03:00
|
|
|
#define FOREACH_VAR1 "${FOREACH_VAR1}"
|
|
|
|
#define FOREACH_VAR2 "${FOREACH_VAR2}"
|
2002-03-27 21:54:31 +03:00
|
|
|
#define FOREACH_CONCAT "${FOREACH_CONCAT}"
|
2002-01-18 20:03:32 +03:00
|
|
|
|
2002-01-20 05:24:55 +03:00
|
|
|
// Test FIND_FILE, FIND_PATH and various GET_FILENAME_COMPONENT combinations
|
|
|
|
|
2002-01-18 20:03:32 +03:00
|
|
|
#define FILENAME_VAR_PATH_NAME "${FILENAME_VAR_PATH_NAME}"
|
|
|
|
#define FILENAME_VAR_NAME "${FILENAME_VAR_NAME}"
|
|
|
|
#define FILENAME_VAR_EXT "${FILENAME_VAR_EXT}"
|
|
|
|
#define FILENAME_VAR_NAME_WE "${FILENAME_VAR_NAME_WE}"
|
|
|
|
|
|
|
|
#define PATH_VAR_NAME "${PATH_VAR_NAME}"
|
2001-08-23 21:57:45 +04:00
|
|
|
|
2002-01-20 05:24:55 +03:00
|
|
|
// Test LOAD_CACHE
|
2001-08-24 23:45:46 +04:00
|
|
|
|
2002-01-19 03:21:43 +03:00
|
|
|
#define CACHE_TEST_VAR1 "${CACHE_TEST_VAR1}"
|
|
|
|
#define CACHE_TEST_VAR2 "${CACHE_TEST_VAR2}"
|
|
|
|
#define CACHE_TEST_VAR3 "${CACHE_TEST_VAR3}"
|
2002-01-20 08:12:27 +03:00
|
|
|
#cmakedefine CACHE_TEST_VAR_EXCLUDED
|
|
|
|
#define CACHE_TEST_VAR_INTERNAL "${CACHE_TEST_VAR_INTERNAL}"
|
2002-01-19 03:21:43 +03:00
|
|
|
|
2002-01-20 05:24:55 +03:00
|
|
|
// Test internal CMake vars from C++ flags
|
2002-01-18 20:03:32 +03:00
|
|
|
|
2002-01-20 05:24:55 +03:00
|
|
|
#cmakedefine CMAKE_NO_STD_NAMESPACE
|
|
|
|
#cmakedefine CMAKE_NO_ANSI_STREAM_HEADERS
|
2002-06-21 17:00:51 +04:00
|
|
|
#cmakedefine CMAKE_NO_ANSI_STRING_STREAM
|
2002-01-20 05:24:55 +03:00
|
|
|
#cmakedefine CMAKE_NO_ANSI_FOR_SCOPE
|
2002-01-18 20:03:32 +03:00
|
|
|
|
2002-01-20 05:24:55 +03:00
|
|
|
// Needed to check for files
|
2002-01-18 20:03:32 +03:00
|
|
|
|
2002-01-20 05:24:55 +03:00
|
|
|
#define BINARY_DIR "${Complex_BINARY_DIR}"
|
2002-03-29 23:02:18 +03:00
|
|
|
|
|
|
|
// Test FIND_LIBRARY
|
|
|
|
|
|
|
|
#define FIND_DUMMY_LIB "${FIND_DUMMY_LIB}"
|
|
|
|
|
|
|
|
// Test SET_SOURCE_FILES_PROPERTIES
|
|
|
|
|
|
|
|
#cmakedefine FILE_HAS_ABSTRACT
|
|
|
|
#cmakedefine FILE_HAS_WRAP_EXCLUDE
|
|
|
|
#define FILE_COMPILE_FLAGS "${FILE_COMPILE_FLAGS}"
|
2002-04-01 23:58:21 +04:00
|
|
|
|
2002-04-30 22:01:07 +04:00
|
|
|
#define TEST_SEP "${TEST_SEP}"
|
|
|
|
|
2002-04-01 23:58:21 +04:00
|
|
|
// Test registry read
|
|
|
|
|
|
|
|
#if defined(_WIN32) && !defined(__CYGWIN__)
|
|
|
|
#define REGISTRY_TEST_PATH "${REGISTRY_TEST_PATH}"
|
|
|
|
#endif
|
2002-04-22 19:51:26 +04:00
|
|
|
|
|
|
|
// Test Remove command
|
|
|
|
#define REMOVE_STRING "${REMOVE_STRING}"
|
2002-07-17 01:42:56 +04:00
|
|
|
|
|
|
|
// Test IF inside FOREACH
|
|
|
|
#cmakedefine IF_INSIDE_FOREACH_THEN_EXECUTED
|
|
|
|
#cmakedefine IF_INSIDE_FOREACH_ELSE_EXECUTED
|
2002-10-09 23:54:34 +04:00
|
|
|
|
|
|
|
// Test SET CACHE FORCE
|
|
|
|
#cmakedefine FORCE_TEST
|