Minor fix
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# CMake sdl project - IDE usage
|
||||
# CMake project - IDE usage
|
||||
|
||||
There is many IDEs that support CMake projects. It could be natively or via plugins.<br>
|
||||
This is a short tutorial on how we can use some IDEs to open a CMake project on linux:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018 Amine Ben Hassouna <amine.benhassouna@gmail.com>
|
||||
* Copyright (c) 2018, 2019 Amine Ben Hassouna <amine.benhassouna@gmail.com>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any
|
||||
@@ -31,9 +31,9 @@
|
||||
#ifndef GAME_H
|
||||
#define GAME_H
|
||||
|
||||
#include <SDL2/SDL.h>
|
||||
#include <SDL2/SDL2_framerate.h>
|
||||
#include <SDL2/SDL2_gfxPrimitives.h>
|
||||
#include <SDL.h>
|
||||
#include <SDL2_framerate.h>
|
||||
#include <SDL2_gfxPrimitives.h>
|
||||
|
||||
#include "grid.h"
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018 Amine Ben Hassouna <amine.benhassouna@gmail.com>
|
||||
* Copyright (c) 2018, 2019 Amine Ben Hassouna <amine.benhassouna@gmail.com>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any
|
||||
@@ -34,7 +34,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include <SDL2/SDL.h>
|
||||
#include <SDL.h>
|
||||
|
||||
#include "utils.h"
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018 Amine Ben Hassouna <amine.benhassouna@gmail.com>
|
||||
* Copyright (c) 2018, 2019 Amine Ben Hassouna <amine.benhassouna@gmail.com>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include <SDL2/SDL.h>
|
||||
#include <SDL.h>
|
||||
|
||||
|
||||
// Define MAX and MIN macros
|
||||
|
||||
@@ -87,9 +87,9 @@ echo
|
||||
echo -e "\e[31mDo you confirm your modifications ? [y/N]\e[0m"
|
||||
read RENAME_PROJECT
|
||||
if [ -n "$RENAME_PROJECT" ] && [ "$(echo "$RENAME_PROJECT" | tr a-z A-Z)" = "Y" ]; then
|
||||
sed -i "s/Basic C SDL2 project/${PROJECT_NAME}/g" README.md rename_project.sh
|
||||
sed -i "s/basic-c-sdl-project/${PROJECT_EXECUTABLE_NAME}/g" README.md IDE_USAGE.md CMakeLists.txt rename_project.sh
|
||||
sed -i "s;https://gitlab.com/aminosbh/basic-c-sdl-project.git;${PROJECT_GIT_REPO};g" README.md rename_project.sh
|
||||
sed -i "s/Basic C SDL2 game/${PROJECT_NAME}/g" README.md rename_project.sh
|
||||
sed -i "s/basic-c-sdl-game/${PROJECT_EXECUTABLE_NAME}/g" README.md IDE_USAGE.md CMakeLists.txt rename_project.sh
|
||||
sed -i "s;https://gitlab.com/aminosbh/basic-c-sdl-game.git;${PROJECT_GIT_REPO};g" README.md rename_project.sh
|
||||
echo -e "\e[32mThe project was successfully renamed\e[0m"
|
||||
else
|
||||
echo -e "\e[33mOperation aborted\e[0m"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018 Amine Ben Hassouna <amine.benhassouna@gmail.com>
|
||||
* Copyright (c) 2018, 2019 Amine Ben Hassouna <amine.benhassouna@gmail.com>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018 Amine Ben Hassouna <amine.benhassouna@gmail.com>
|
||||
* Copyright (c) 2018, 2019 Amine Ben Hassouna <amine.benhassouna@gmail.com>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018 Amine Ben Hassouna <amine.benhassouna@gmail.com>
|
||||
* Copyright (c) 2018, 2019 Amine Ben Hassouna <amine.benhassouna@gmail.com>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any
|
||||
|
||||
Reference in New Issue
Block a user