mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
#219 frontend cmake: compile bundled getopt if not available, props Schaich Alonso
This commit is contained in:
parent
ed3cc51a46
commit
045c0bae56
@ -2,8 +2,16 @@
|
||||
|
||||
project(zint_frontend)
|
||||
|
||||
include(CheckFunctionExists)
|
||||
|
||||
check_function_exists(getopt HAVE_GETOPT)
|
||||
|
||||
set(zint_frontend_SRCS main.c)
|
||||
|
||||
if(NOT HAVE_GETOPT)
|
||||
set(zint_frontend_SRCS ${zint_frontend_SRCS} getopt.c getopt1.c)
|
||||
endif(NOT HAVE_GETOPT)
|
||||
|
||||
include_directories(BEFORE "${CMAKE_SOURCE_DIR}/backend")
|
||||
|
||||
add_executable(zint_frontend ${zint_frontend_SRCS})
|
||||
|
Loading…
Reference in New Issue
Block a user