File tree Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 22
33Good examples: < https://github.com/ttroy50/cmake-examples >
44
5+ 1 . [ hello] ( hello/ )
561 . [ multi_executable] ( multi_executable/ )
671 . [ multi_file] ( multi_file/ )
781 . [ multi_file_recursive] ( multi_file_recursive/ )
Original file line number Diff line number Diff line change 1+ cmake_minimum_required (VERSION 3.0)
2+ project (ProjectName)
3+ add_executable (main main.c)
Original file line number Diff line number Diff line change 1+ #include <stdio.h>
2+ #include <stdlib.h>
3+
4+ int main (void ) {
5+ puts (__FILE__ );
6+ return EXIT_SUCCESS ;
7+ }
Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION _3.0)
1+ project (ProjectName)
2+ cmake_minimum_required (VERSION 3.0)
23file (GLOB SOURCES RELATIVE ${CMAKE_SOURCE_DIR} "*.c" )
34add_executable (main ${SOURCES} )
You can’t perform that action at this time.
0 commit comments