Weitere ähnliche Inhalte
Ähnlich wie Cross Platform Make (20)
Mehr von Tatsumi Naganuma (10)
Kürzlich hochgeladen (10)
Cross Platform Make
- 6. Hello World (Unix)
$ vi hello.c
#include <stdio.h>
int main(void) { printf("Hello, world!n"); }
$ gcc hello.c -o hello
$ ./hello
Hello, world!
- 7. make Hello World
$ ls
Makefile hello.c
$ make
gcc hello.c -o hello
$ ls
Makefile hello.c hello
- 10. で、
● Borland C++ は?
● MinGW は?
● Visual Studio 2008 は?
● Visual Studio 2005 は?
● Visual Studio .NET 2003 は?
● Visual Studio .NET は?
● Visual Studio 6.0 は?
● Mac は?
- 14. CMake 概要
CMakeLists.txt
Unix Makefile
MinGW Makefile
NMake Makefile
Visual Studio (.prj)
CMake Eclipse (.project)
- 34. よく使う変数
● CMAKE_SOURCE_DIR
● CMAKE_CURRENT_SOURCE_DIR
● CMAKE_BINARY_DIR
● CMAKE_C_FLAGS
● CMAKE_CXX_FLAGS
http://www.cmake.org/cmake/help/cmake-2-8-docs.
html#section_Commands
- 35. よく使うコマンド
● ADD_EXECUTABLE / ADD_LIBRARY
● MESSAGE
● INCLUDE_DIRECTORIES
● TARGET_LINK_LIBRARY
http://www.cmake.org/Wiki/CMake_Useful_Variables