Skip to content

Commit

Permalink
wolfssh template cmake & sdkconfig.default updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gojimmypi committed Dec 29, 2023
1 parent ad63566 commit e84cd85
Show file tree
Hide file tree
Showing 5 changed files with 290 additions and 124 deletions.
17 changes: 16 additions & 1 deletion ide/Espressif/ESP-IDF/examples/wolfssh_template/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,19 +1,34 @@
# wolfSSL Espressif Example Project CMakeLists.txt
# v1.0
#
# The following lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.16)

# enable wolfssl user_settings.h project-wide
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DWOLFSSL_USER_SETTINGS")
set(WOLFSSL_USER_SETTINGS ON)


set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DWOLFSSH_TERM")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDEBUG_WOLFSSH")

# The wolfSSL CMake file should be able to find the source code.
# Otherwise, assign an environment variable or set it here:
#
# set(WOLFSSL_ROOT "~/workspace/wolfssl-other-source")
# set(WOLFSSH_ROOT "~/workspace/wolfssh-other-source")
# set(WOLFSSL_ROOT "C:/workspace/wolfssl-master")

# Optional WOLFSSL_CMAKE_SYSTEM_NAME detection to find
# USE_MY_PRIVATE_CONFIG path for my_private_config.h
#
# Expected path varies:
#
# WSL: /mnt/c/workspace
# Linux: ~/workspace
# Windows: C:\workspace
#
if(WIN32)
# Windows-specific configuration here
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DWOLFSSL_CMAKE_SYSTEM_NAME_WINDOWS")
Expand Down
Loading

0 comments on commit e84cd85

Please sign in to comment.