Run cmake-init and setup flake.nix and default.nix

This commit is contained in:
2023-08-15 15:58:43 +03:00
parent 40684d900b
commit 5745001064
35 changed files with 1562 additions and 1 deletions

28
cmake/dev-mode.cmake Normal file
View File

@@ -0,0 +1,28 @@
include(cmake/folders.cmake)
include(CTest)
if(BUILD_TESTING)
add_subdirectory(test)
endif()
add_custom_target(
run-exe
COMMAND ec-controller_exe
VERBATIM
)
add_dependencies(run-exe ec-controller_exe)
option(BUILD_MCSS_DOCS "Build documentation using Doxygen and m.css" OFF)
if(BUILD_MCSS_DOCS)
include(cmake/docs.cmake)
endif()
option(ENABLE_COVERAGE "Enable coverage support separate from CTest's" OFF)
if(ENABLE_COVERAGE)
include(cmake/coverage.cmake)
endif()
include(cmake/lint-targets.cmake)
include(cmake/spell-targets.cmake)
add_folders(Project)