From 294f0d7c208fc0a0d520340b130f9029d51f77e9 Mon Sep 17 00:00:00 2001 From: Leonetienne Date: Sat, 12 Feb 2022 03:30:54 +0100 Subject: Simpwified megacute buiwd pwocess --- CMakeLists.txt | 20 ++++++++++++++++---- StringTools | 2 +- main.cpp | 2 +- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1bf1f1d..d54dec2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,10 +1,22 @@ cmake_minimum_required(VERSION 3.16) project(Uwwwu) +# Set C++ standard set(CMAKE_CXX_STANDARD 17) -include_directories(StringTools/StringTools) -link_directories(StringTools/StringTools/StringTools/) +# Add build dependency for StringTools +add_subdirectory(StringTools/src/StringTools StringTools/src/StringTools/cmake-build-release) -add_executable(Uwwwu main.cpp) -target_link_libraries(Uwwwu Stringtools) +# Add StringTools src dir to include dir list +include_directories(StringTools/src/StringTools) + +# Add StringTools build dir to library repository list +link_directories(StringTools/src/StringTools/cmake-build-release) + +# Add absolutely kawaii sources to Uwwwu <3 +add_executable(Uwwwu + main.cpp +) + +# Link StringTools library +target_link_libraries(Uwwwu StringTools) diff --git a/StringTools b/StringTools index f4e36ec..a8b8d55 160000 --- a/StringTools +++ b/StringTools @@ -1 +1 @@ -Subproject commit f4e36ec9af5002eaa51c742faa10e4cbc7d66de0 +Subproject commit a8b8d557692823931bb41dcd55627080f55b6099 diff --git a/main.cpp b/main.cpp index a58ebd3..fe48cd4 100644 --- a/main.cpp +++ b/main.cpp @@ -1,5 +1,5 @@ #include -#include +#include #include #include #include -- cgit v1.2.3 From 719051affc9dcf477e1e919f681538246ca0d1b1 Mon Sep 17 00:00:00 2001 From: Leonetienne Date: Sat, 12 Feb 2022 03:42:43 +0100 Subject: Added buiwd instwuctions to readme --- readme.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/readme.md b/readme.md index e3ef340..6381484 100644 --- a/readme.md +++ b/readme.md @@ -6,4 +6,23 @@ So i made twis. You can eitwer compiwe it yoursewf, or downwoad eitwer twe debian, or macos buiwd fwom twe [weweases tab](https://github.com/Leonetienne/UwwwuPP/releases). It shouwd compiwe on evewy pwatform twat suwpports cmake. +## Compiwe instwuctions +To do so, make suwe you haf cmake instawwed. +Clown twis repositowy, and instal al dependencies via: +``` +$ git submodule update --init --recursive +``` + +If it won't pul, you might haf to switch twe submoduwes remotes out for tweir https-vawiants. Twey awe git@ by defauwt. +Twen <3 al you haf to do is to start twe mega ct3.14 buiwd: +``` +$ cmake . && make +``` + +Lastwy, vewify twat your buiwd works +``` +$ ./Uwwwu Hi, thanks for checking by! +Hiiiiiii, you're twe best :33 xoxo for checking by! +``` + :33333 enyoi <3 -- cgit v1.2.3