Skip to content
Snippets Groups Projects
Makefile 547 B
Newer Older
  • Learn to ignore specific revisions
  • Konstantinos Sideris's avatar
    Konstantinos Sideris committed
    SRC := $(shell find include src -type f -type f \( -iname "*.cc" -o -iname "*.h" \))
    
    
    	@cmake -DBUILD_TESTS=OFF -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=Debug
    
    	@cmake --build build
    
    	@cmake -DBUILD_TESTS=OFF -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo
    
    	@cmake --build build
    
    run:
    	@./build/nheko
    
    Konstantinos Sideris's avatar
    Konstantinos Sideris committed
    lint:
    	@clang-format -i $(SRC)
    
    
    test:
    
    	@cmake -DBUILD_TESTS=ON -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo
    
    	@cmake --build build
    	@cd build && GTEST_COLOR=1 ctest --verbose
    
    
    clean:
    	rm -rf build
    
    .PHONY: build