18 lines
581 B
CMake
18 lines
581 B
CMake
# Parent project does not export its library target, so this CML implicitly
|
|
# depends on being added from it, i.e. the testing is done only from the build
|
|
# tree and is not feasible from an install location
|
|
|
|
project(ec-controllerTests LANGUAGES CXX)
|
|
|
|
# ---- Tests ----
|
|
|
|
add_executable(ec-controller_test source/ec-controller_test.cpp)
|
|
target_link_libraries(ec-controller_test PRIVATE ec-controller_lib)
|
|
target_compile_features(ec-controller_test PRIVATE cxx_std_20)
|
|
|
|
add_test(NAME ec-controller_test COMMAND ec-controller_test)
|
|
|
|
# ---- End-of-file commands ----
|
|
|
|
add_folders(Test)
|