2013-06-28 16:49:24 +04:00
|
|
|
|
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/check-common.cmake)
|
|
|
|
|
|
|
|
check(test_version_greater_1 "0")
|
|
|
|
check(test_version_greater_2 "1")
|
|
|
|
check(test_version_less_1 "0")
|
|
|
|
check(test_version_less_2 "1")
|
|
|
|
check(test_version_equal_1 "0")
|
|
|
|
check(test_version_equal_2 "1")
|
2013-07-15 20:33:49 +04:00
|
|
|
|
|
|
|
foreach(c debug release relwithdebinfo minsizerel)
|
|
|
|
if(config AND NOT config STREQUAL NoConfig)
|
|
|
|
if(NOT "${test_imported_${c}}" MATCHES "^;/imported2/include$"
|
|
|
|
AND NOT "${test_imported_${c}}" MATCHES "^/imported1/include;$")
|
|
|
|
message(SEND_ERROR "test_imported_${c} is not correct: ${test_imported_${c}}")
|
|
|
|
endif()
|
|
|
|
else()
|
|
|
|
if(NOT "${test_imported_${c}}" MATCHES "^;$")
|
|
|
|
message(SEND_ERROR "test_imported_${c} is not an empty list: ${test_imported_${c}}")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
endforeach()
|
2013-07-12 11:14:31 +04:00
|
|
|
|
|
|
|
check(test_alias_file_exe "1")
|
|
|
|
check(test_alias_file_lib "1")
|
|
|
|
check(test_alias_target_name "1")
|
2013-08-13 15:32:27 +04:00
|
|
|
check(test_early_termination_1 "$<:")
|
|
|
|
check(test_early_termination_2 "$<:,")
|
2013-08-27 12:57:16 +04:00
|
|
|
check(test_platform_id "${system_name}")
|
|
|
|
foreach(system Linux Windows Darwin)
|
|
|
|
if(system_name STREQUAL system)
|
|
|
|
check(test_platform_id_${system} 1)
|
|
|
|
else()
|
|
|
|
check(test_platform_id_${system} 0)
|
|
|
|
endif()
|
|
|
|
endforeach()
|
2013-11-21 00:40:29 +04:00
|
|
|
check(lower_case "mixed")
|
|
|
|
check(upper_case "MIXED")
|
|
|
|
check(make_c_identifier "_4foo__bar__")
|