-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Maintenance] Made easier to read; remove clutter
- Loading branch information
Showing
19 changed files
with
148 additions
and
314 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
cmake_minimum_required(VERSION 3.0.0) | ||
project(Ludo-The_Game VERSION 2.3.0) | ||
project(Ludo-The_Game VERSION 2.3.1) | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
|
||
file(GLOB SOURCES "src/*.cpp") | ||
add_executable(ludo main.cpp ${SOURCES}) | ||
|
||
set(CPACK_PROJECT_NAME ${PROJECT_NAME}) | ||
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION}) | ||
target_include_directories(ludo PRIVATE includes) | ||
target_include_directories(ludo PRIVATE .) | ||
|
||
find_package(Threads REQUIRED) | ||
target_link_libraries(ludo PRIVATE Threads::Threads) | ||
|
||
target_include_directories(ludo PRIVATE includes) | ||
target_include_directories(ludo PRIVATE .) | ||
# If you want, you can install the 'ludo' executable, just run 'cmake --install .' inside build directory | ||
install(TARGETS ludo DESTINATION bin COMPONENT binaries) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
pkgname=ludo-the-game-git | ||
pkgver=r135.b6c73fc | ||
pkgrel=1 | ||
pkgdesc="An implementation of the famous board game Ludo, using C++" | ||
arch=('x86_64') | ||
url="https://github.com/adi-g15/Ludo-The_Game" | ||
license=('MIT') | ||
depends=() | ||
makedepends=('git' 'cmake' 'gcc') | ||
provides=("${pkgname%-git}") | ||
conflicts=("${pkgname%-git}") | ||
source=('ludo-the-game::git+https://github.com/adi-g15/Ludo-The_Game') | ||
md5sums=('SKIP') | ||
|
||
pkgver() { | ||
cd "$srcdir/${pkgname%-git}" | ||
|
||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | ||
} | ||
|
||
build() { | ||
cd "$srcdir/${pkgname%-git}" | ||
mkdir -p build && cd build | ||
rm -f CMakeCache.txt | ||
cmake .. -DCMAKE_BUILD_TYPE=Release | ||
cmake --build . | ||
} | ||
|
||
package() { | ||
cd "$srcdir/${pkgname%-git}" | ||
cd build | ||
DESTDIR="$pkgdir/" cmake --install . | ||
} |
Oops, something went wrong.