17 lines
393 B
CMake
17 lines
393 B
CMake
#version minimale de cmake nécessaire
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
#nom du projet
|
|
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(game_text game_text.c)
|
|
|
|
#les dépendances sont calculées automatiquement
|
|
target_link_libraries(game_text game)
|
|
add_library (game game.o game_aux.c)
|