-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
43 lines (35 loc) · 1.31 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
cmake_minimum_required(VERSION 3.22)
project(oledgui)
include_directories(src)
# To make clangd happy
# SET(CMAKE_CXX_FLAGS "-std=c++20 -Werror -fconcepts-diagnostics-depth=10 -ftemplate-backtrace-limit=0 -Wno-format-security")
SET(CMAKE_CXX_FLAGS "-std=c++20 -Werror -fconcepts-diagnostics-depth=0 -ftemplate-backtrace-limit=0 -Wno-format-security")
# add_executable("ncurses" test/component/ncurses.cc )
# target_link_libraries("ncurses" ncursesw)
add_executable("regression"
test/regression/regression.cc
test/regression/inputApi.cc
test/regression/textWidget.cc
test/regression/cellPhone.cc
test/regression/layout.cc
test/regression/number.cc
test/regression/progress.cc
test/regression/styles.cc
)
target_link_libraries("regression" ncursesw)
add_executable("demo" test/demo/demo.cc )
target_link_libraries("demo" ncursesw)
# add_executable("terminal" test/component/terminal.cc )
find_package(Catch2 2 REQUIRED)
add_executable("unitTest"
test/unit/test.cc
test/unit/catch2Main.cc
)
target_link_libraries("unitTest" ncursesw Catch2::Catch2)
# include(CTest)
# include(Catch)
# catch_discover_tests("unitTest")
enable_testing()
add_test(NAME unitTest COMMAND $<TARGET_FILE:unitTest>)
add_executable("benchmark" test/benchmark/benchmark.cc)
target_link_libraries("benchmark" ncursesw)