Move getopt out of the frontend, because it's used in the backend's test, too

This commit is contained in:
Schaich
2021-03-30 19:00:24 +09:00
parent 779a318c93
commit 88bbeb862b
7 changed files with 19 additions and 8 deletions

View File

@ -29,6 +29,7 @@ option(ZINT_USE_QT "Build with QT support" ON)
include(SetPaths.cmake)
include(CheckCXXCompilerFlag)
include(CheckFunctionExists)
check_cxx_compiler_flag("-Wall" CXX_COMPILER_FLAG_WALL)
if(CXX_COMPILER_FLAG_WALL)
@ -89,6 +90,11 @@ IF(APPLE)
ENDIF (UNIVERSAL)
ENDIF(APPLE)
check_function_exists(getopt HAVE_GETOPT)
if(NOT HAVE_GETOPT)
add_subdirectory(getopt)
endif(NOT HAVE_GETOPT)
add_subdirectory(backend)
add_subdirectory(frontend)