blob: 5fd6db4e02f9cc0f0b1534f8bd352e7e7f80ff71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
include(CheckFunctionExists)
include(CheckIncludeFile)
check_include_file(dirent.h HAVE_DIRENT_H)
check_function_exists(glob HAVE_GLOB)
if(NOT HAVE_GLOB)
set(SOURCES "${SOURCES}"
"${CMAKE_CURRENT_SOURCE_DIR}/glob.c"
"${CMAKE_SOURCE_DIR}/include/compat/glob.h"
PARENT_SCOPE)
endif()
|