Prusa-Firmware/CMakeLists.txt

25 lines
593 B
CMake
Raw Permalink Normal View History

2018-11-27 17:00:20 +00:00
cmake_minimum_required(VERSION 3.1)
set (CMAKE_CXX_STANDARD 11)
project(cmake_test)
# Prepare "Catch" library for other executables
set(CATCH_INCLUDE_DIR Catch2)
add_library(Catch INTERFACE)
target_include_directories(Catch INTERFACE ${CATCH_INCLUDE_DIR})
# Make test executable
set(TEST_SOURCES
Tests/tests.cpp
Tests/Example_test.cpp
2018-06-11 20:50:52 +00:00
Tests/Timer_test.cpp
2019-01-04 18:34:42 +00:00
Tests/AutoDeplete_test.cpp
2019-07-15 17:34:12 +00:00
Tests/PrusaStatistics_test.cpp
2018-06-11 20:50:52 +00:00
Firmware/Timer.cpp
2019-01-04 18:34:42 +00:00
Firmware/AutoDeplete.cpp
)
add_executable(tests ${TEST_SOURCES})
2018-06-11 20:50:52 +00:00
target_include_directories(tests PRIVATE Tests)
target_link_libraries(tests Catch)