-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move conanfile and cmakefile to tests and example subdirectories
- Loading branch information
Showing
7 changed files
with
57 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
If: | ||
PathMatch: blinker.h | ||
|
||
CompileFlags: | ||
Add: [-std=c++17] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,11 @@ | ||
defalut: build | ||
|
||
install-release: | ||
conan install . --output-folder=build --build=missing -s build_type=Release | ||
|
||
install-debug: | ||
conan install . --output-folder=build --build=missing -s build_type=Debug | ||
|
||
cmake-build-release: | ||
cd build && cmake .. \ | ||
-DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake \ | ||
cmake: | ||
cmake -S . -B build \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_EXPORT_COMPILE_COMMANDS=1 | ||
|
||
cmake-build-test: | ||
cd build && cmake .. \ | ||
-DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake \ | ||
-DCMAKE_BUILD_TYPE=Debug \ | ||
-DCMAKE_EXPORT_COMPILE_COMMANDS=1 \ | ||
-DBLINKER_TEST=1 | ||
|
||
build: cmake-build | ||
cd build && make | ||
|
||
build-example: | ||
cd build/example && make | ||
|
||
build-test: | ||
cd build/tests && make | ||
|
||
run-example: build-example | ||
./build/example/blinker_example | ||
|
||
run-tests: build-test | ||
ctest --test-dir ./build/tests --output-on-failure | ||
|
||
clean: | ||
make -C build clean | ||
|
||
lint: | ||
cppcheck *.h --enable=warning,style,performance,portability --inline-suppr --language=c++ | ||
|
||
.PHONY: build build-test | ||
.PHONY: build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
defalut: build | ||
|
||
cmake: | ||
cmake -S . -B build \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_EXPORT_COMPILE_COMMANDS=1 | ||
|
||
build: cmake | ||
cd build && make | ||
|
||
run: | ||
./build/blinker_example | ||
|
||
clean: | ||
make -C build clean | ||
|
||
.PHONY: build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
defalut: build | ||
|
||
install: | ||
conan install . --output-folder=build --build=missing -s compiler.cppstd=20 -s build_type=Release | ||
|
||
cmake: | ||
cd build && cmake .. \ | ||
-DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_EXPORT_COMPILE_COMMANDS=1 | ||
|
||
build: cmake | ||
cd build && make | ||
|
||
run: | ||
ctest --test-dir ./build --output-on-failure | ||
|
||
clean: | ||
make -C build clean | ||
|
||
.PHONY: build |
File renamed without changes.