Merge branch 'master' of gitlab.iut-clermont.uca.fr:maribemont/projet-tut

availableIslands
thmaillarb 4 years ago
commit 2c3f27890c

17
.gitignore vendored

@ -51,3 +51,20 @@ modules.order
Module.symvers
Mkfile.old
dkms.conf
### CMake ###
CMakeLists.txt.user
CMakeCache.txt
CMakeFiles
CMakeScripts
Testing
Makefile
cmake_install.cmake
install_manifest.txt
compile_commands.json
CTestTestfile.cmake
_deps
### CMake Patch ###
# External projects
*-prefix/

@ -0,0 +1,18 @@
cmake_minimum_required(VERSION 3.13)
SET(ProjetName Pontu)
#SET(TestTargetName )
project(${ProjetName})
file(GLOB_RECURSE MY_SOURCES CONFIGURE_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/src/*.c)
add_executable(${ProjetName} ${MY_SOURCES})
SET(WarningGCC -Wall -Wextra -pedantic -Wconversion -std=c17 -D_REENTRANT)
target_compile_options(${ProjetName} PRIVATE ${WarningGCC} -Og -fdiagnostics-color=always)
target_link_libraries(${ProjetName} SDL2)
target_include_directories(${ProjetName} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include /usr/include/SDL2)

@ -10,7 +10,7 @@
#define PSEUDO_LENMAX 50
#include <SDL_pixels.h>
#include <SDL2/SDL_pixels.h>
#include <string.h>
/**

@ -0,0 +1,5 @@
int main() {
return 0;
}
Loading…
Cancel
Save