You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
808 B
40 lines
808 B
|
|
function(CHECK_DEFAULT result filename)
|
|
message("CHECK='${filename}'")
|
|
endfunction()
|
|
|
|
function(CHECK_OK result filename)
|
|
message("CHECK='${filename}'")
|
|
set(${result} TRUE PARENT_SCOPE)
|
|
endfunction()
|
|
|
|
function(CHECK_KO result filename)
|
|
message("CHECK='${filename}'")
|
|
set(${result} FALSE PARENT_SCOPE)
|
|
endfunction()
|
|
|
|
|
|
find_file(FILE
|
|
NAMES PrefixInPATH.h
|
|
HINTS ${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
VALIDATOR check_default
|
|
)
|
|
message(STATUS "FILE='${FILE}'")
|
|
unset(FILE CACHE)
|
|
|
|
find_file(FILE
|
|
NAMES PrefixInPATH.h
|
|
HINTS ${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
VALIDATOR check_ok
|
|
)
|
|
message(STATUS "FILE='${FILE}'")
|
|
unset(FILE CACHE)
|
|
|
|
find_file(FILE
|
|
NAMES PrefixInPATH.h
|
|
HINTS ${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
VALIDATOR check_ko
|
|
)
|
|
message(STATUS "FILE='${FILE}'")
|
|
unset(FILE CACHE)
|