CMakeLists.txt + rm Makefile
This commit is contained in:
1 parent
7dbb3977df
commit
370e01bd67
2 files changed
+8
-29
No files matched your search
+8
-4
@@ -1,12 +1,16 @@
|
||||
#version minimale de cmake nécessaire
|
||||
cmake_minimum_required(VERSION 2.6)
|
||||
|
||||
#nom du projet
|
||||
project ()
|
||||
project (game_text)
|
||||
|
||||
#positionne la variable
|
||||
set(CMAKE_C_FLAGS "-std=c99 -g -Wall")
|
||||
|
||||
#définit le nom du programme ainsi que
|
||||
#ses sources
|
||||
add_executable()
|
||||
add_executable(game_text game_text.c)
|
||||
|
||||
#les dépendances sont calculées automatiquement
|
||||
target_link_libraries()
|
||||
add_library ()
|
||||
target_link_libraries(game_text libgame)
|
||||
add_library (libgame game.o game_aux.c)
|
||||
Reference in new issue
Block a user