mirror of
https://github.com/liudf0716/apfree_wifidog.git
synced 2025-01-08 11:57:37 +08:00
Update CMakeLists.txt
This commit is contained in:
parent
596694576e
commit
9acb6951bd
@ -22,10 +22,14 @@ set(src_apfreewifidog
|
||||
wd_client.c
|
||||
wd_util.c
|
||||
mqtt_thread.c
|
||||
)
|
||||
|
||||
if(AW_WEBSSH)
|
||||
set(src_webssh
|
||||
ws_thread.c
|
||||
ssh_client.c
|
||||
)
|
||||
|
||||
endif()
|
||||
|
||||
set(src_wdctlx wdctl.c util.c debug.c)
|
||||
|
||||
@ -48,7 +52,7 @@ set(fw3_libs
|
||||
iptext4
|
||||
xtables)
|
||||
|
||||
if(APFREE_WIFIDOG_DEBUG)
|
||||
if(AW_DEBUG)
|
||||
message("Building debug")
|
||||
ADD_DEFINITIONS(-ggdb -Wall --std=gnu99 -Wmissing-declarations)
|
||||
else()
|
||||
@ -57,7 +61,11 @@ else()
|
||||
endif()
|
||||
|
||||
add_executable(wdctlx ${src_wdctlx})
|
||||
add_executable(wifidogx ${src_apfreewifidog})
|
||||
#if(AW_WEBSSH)
|
||||
add_executable(wifidogx ${src_apfreewifidog} ${src_webssh})
|
||||
else()
|
||||
add_executable(wifidogx ${src_apfreewifidog})
|
||||
endif()
|
||||
target_link_libraries(wifidogx ${libs} ${fw3_libs} ${CURL_LIBRARIES})
|
||||
|
||||
install(TARGETS wifidogx wdctlx
|
||||
|
Loading…
Reference in New Issue
Block a user