Created
December 5, 2013 10:55
-
-
Save ianliu/7803482 to your computer and use it in GitHub Desktop.
A simple Makefile for cmake builds!
This file contains hidden or 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
| all clean: build build-opt | |
| @$(MAKE) -s -C build $@ | |
| @$(MAKE) -s -C build-opt $@ | |
| build: | |
| mkdir -p $@ ; cd $@ && \ | |
| cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=Yes \ | |
| -DCMAKE_BUILD_TYPE=Debug .. | |
| build-opt: | |
| mkdir -p $@ ; cd $@ && \ | |
| cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=Yes \ | |
| -DCMAKE_BUILD_TYPE=Release .. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment