i dont like cmake

This commit is contained in:
Alfie King 2024-10-23 13:54:46 +01:00
parent d24dce7ffe
commit 11ef7f988d
3 changed files with 7 additions and 9 deletions

View File

@ -1,6 +0,0 @@
cmake_minimum_required(VERSION 3.5)
find_program(CMAKE_C_COMPILER NAMES $ENV{CC} gcc PATHS ENV PATH NO_DEFAULT_PATH)
find_program(CMAKE_CXX_COMPILER NAMES $ENV{CXX} g++ PATHS ENV PATH NO_DEFAULT_PATH)
project(owo)
add_executable(owo src/main.cpp)
target_link_libraries(owo)

View File

@ -12,8 +12,7 @@ md5sums=('SKIP')
build() {
cd "$srcdir/term-owo-cpp"
cmake . -B build
cd build && make
make dirs build_unix
}
package() {

View File

@ -29,6 +29,11 @@ make_deb:
mv build/owo_deb.deb build/owo.deb
rm -rf build/owo_deb
build_all: build_unix build_win make_deb
make_arch:
mkdir build/owo_arch
cp PKGBUILD build/owo_arch
makepkg -D build/owo_arch
build_all: build_unix build_win make_deb make_arch
.PHONY: all dirs clean build_all build_unix build_win