Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
Add cmake test and finish the project
Browse files Browse the repository at this point in the history
Signed-off-by: Eason Lu <[email protected]>
  • Loading branch information
aelnosu committed Feb 11, 2024
1 parent 1a88b0c commit 7aa618b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
cmake_minimum_required(VERSION 3.27)
project(Randp)

include(CTest)
enable_testing()

set(CMAKE_CXX_STANDARD 23)

add_executable(Randp main.cpp
binTree.cpp
binTree.h
randArray.cpp
randArray.h)

add_test(NAME Randp1 COMMAND Randp 1)
add_test(NAME Randp10 COMMAND Randp 10)
add_test(NAME Randp100 COMMAND Randp 100)
add_test(NAME Randp1000 COMMAND Randp 1000)
add_test(NAME Randp10000 COMMAND Randp 10000)

0 comments on commit 7aa618b

Please sign in to comment.