Skip to content

Commit

Permalink
set up ctest
Browse files Browse the repository at this point in the history
  • Loading branch information
moribellamy committed Nov 17, 2023
1 parent 305162c commit 40ae07d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-S ${{ github.workspace }}
Expand Down
4 changes: 0 additions & 4 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
cmake_minimum_required(VERSION 3.26)
project(mousewallet C)
enable_testing()

set(CMAKE_C_STANDARD 90)
set(CMAKE_C_EXTENSIONS OFF)
Expand All @@ -10,7 +11,10 @@ if (NOT CMAKE_BUILD_TYPE)
endif ()

# Configure external deps
set(BUILD_SHARED_LIBS OFF) # static linkage
set(BUILD_SHARED_LIBS OFF)
set(SECP256K1_BUILD_TESTS OFF)
set(SECP256K1_BUILD_EXHAUSTIVE_TESTS OFF)
set(SECP256K1_BUILD_CTIME_TESTS OFF)
add_subdirectory("vendor/secp256k1")
add_library(argparse STATIC vendor/argparse/argparse.c)
add_library(sha3 STATIC vendor/SHA3IUF/sha3.c)
Expand All @@ -27,3 +31,5 @@ target_link_libraries(mousewallet PRIVATE argparse lib)
# Test
add_executable(test_mousewallet src/tests.c)
target_link_libraries(test_mousewallet PRIVATE lib)

add_test(NAME MousewalletTest COMMAND test_mousewallet)

0 comments on commit 40ae07d

Please sign in to comment.