mirror of
https://github.com/vanilla-wiiu/vanilla.git
synced 2026-10-28 09:43:51 +00:00
move cli test app to different folder
This commit is contained in:
1 parent
dc890eff29
commit
89be691b5b
4 files changed
+30
-9
No files matched your search
@@ -11,4 +11,5 @@ SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
|
||||
|
||||
add_subdirectory(lib)
|
||||
add_subdirectory(pipe)
|
||||
add_subdirectory(cli)
|
||||
add_subdirectory(app)
|
||||
@@ -0,0 +1,13 @@
|
||||
add_executable(vanilla-cli
|
||||
main.c
|
||||
)
|
||||
|
||||
target_link_libraries(vanilla-cli PRIVATE
|
||||
vanilla
|
||||
)
|
||||
|
||||
target_include_directories(vanilla-cli PRIVATE
|
||||
"${CMAKE_SOURCE_DIR}/lib"
|
||||
)
|
||||
|
||||
install(TARGETS vanilla-cli)
|
||||
@@ -1,3 +1,18 @@
|
||||
/**
|
||||
* This is a simple test app that can be used to inspect base functionality.
|
||||
*
|
||||
* Valid commands are:
|
||||
* "SYNC <wireless-interface> <code>"
|
||||
* "CONNECT <wireless-interface>"
|
||||
* "EXIT"
|
||||
*
|
||||
* The sync code is a 4-digit number derived from the card suits shown by the console:
|
||||
*
|
||||
* ♠ (spade) = 0 ♥ (heart) = 1 ♦ (diamond) = 2 ♣ (clover) = 3
|
||||
*
|
||||
* Example: ♣♠♥♦ (clover, spade, heart, diamond) would equal 3012
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
+1
-9
@@ -11,14 +11,6 @@ add_library(vanilla SHARED
|
||||
wpa.c
|
||||
)
|
||||
|
||||
add_executable(vanilla-cli
|
||||
main.c
|
||||
)
|
||||
|
||||
target_link_libraries(vanilla-cli PRIVATE
|
||||
vanilla
|
||||
)
|
||||
|
||||
target_include_directories(vanilla PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/hostap/src/common
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/hostap/src/utils
|
||||
@@ -76,5 +68,5 @@ target_link_libraries(vanilla PRIVATE
|
||||
# COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/hostap/wpa_supplicant/wpa_supplicant" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/wpa_supplicant_drc"
|
||||
#)
|
||||
|
||||
install(TARGETS vanilla vanilla-cli)
|
||||
install(TARGETS vanilla)
|
||||
install(IMPORTED_RUNTIME_ARTIFACTS wpa_client wpa_supplicant)
|
||||
Reference in new issue
Block a user