mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Move getopt out of the frontend, because it's used in the backend's test, too
This commit is contained in:
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user