Commit 36b3d169 authored by Zhiping Jiang (蒋志平)'s avatar Zhiping Jiang (蒋志平) 💬

add test target

parent 2fa0a97b
Pipeline #37708541 failed with stage
in 1 minute and 5 seconds
......@@ -10,4 +10,7 @@ set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
file(GLOB EnhancedConsoleText_Source src/*.*)
add_library(EnhancedConsoleText SHARED ${EnhancedConsoleText_Source})
add_library(EnhancedConsoleText SHARED ${EnhancedConsoleText_Source} src/CodingStyle.hxx)
add_executable(EnhancedConsoleText_test test/test.cxx)
target_link_libraries(EnhancedConsoleText_test EnhancedConsoleText)
\ No newline at end of file
//
// Created by csi on 11/24/18.
//
#include <iostream>
#include "../src/CodingStyle.hxx"
int main() {
EnhancedConsoleText::lineWidth = 120;
EnhancedConsoleText::println("Bold Green Centered Title with Red background", FontEffect::Bold, LineAlignment::Center, FrontColor::Green, BackgroundColor::Red);
EnhancedConsoleText::CodingStyle::normalTextPrintln("EnhancedConsoleText::CodingStyle::normalTextPrintln");
EnhancedConsoleText::CodingStyle::cyanNormalTextPrintln("EnhancedConsoleText::CodingStyle::cyanNormalTextPrintln");
EnhancedConsoleText::CodingStyle::greenNormalTextPrintln("EnhancedConsoleText::CodingStyle::greenNormalTextPrintln");
EnhancedConsoleText::CodingStyle::redNormalTextPrintln("EnhancedConsoleText::CodingStyle::redNormalTextPrintln");
EnhancedConsoleText::CodingStyle::yellowNormalTextPrintln("EnhancedConsoleText::CodingStyle::yellowNormalTextPrintln");
EnhancedConsoleText::CodingStyle::magentaNormalTextPrintln("EnhancedConsoleText::CodingStyle::magentaNormalTextPrintln");
EnhancedConsoleText::CodingStyle::blueNormalTextPrintln("EnhancedConsoleText::CodingStyle::blueNormalTextPrintln");
EnhancedConsoleText::CodingStyle::normalBoldTextPrintln("EnhancedConsoleText::CodingStyle::normalBoldTextPrintln");
EnhancedConsoleText::CodingStyle::cyanBoldTextPrintln("EnhancedConsoleText::CodingStyle::cyanBoldTextPrintln");
EnhancedConsoleText::CodingStyle::greenBoldTextPrintln("EnhancedConsoleText::CodingStyle::greenBoldTextPrintln");
EnhancedConsoleText::CodingStyle::redBoldTextPrintln("EnhancedConsoleText::CodingStyle::redBoldTextPrintln");
EnhancedConsoleText::CodingStyle::yellowBoldTextPrintln("EnhancedConsoleText::CodingStyle::yellowBoldTextPrintln");
EnhancedConsoleText::CodingStyle::magentaBoldTextPrintln("EnhancedConsoleText::CodingStyle::magentaBoldTextPrintln");
EnhancedConsoleText::CodingStyle::blueBoldTextPrintln("EnhancedConsoleText::CodingStyle::blueBoldTextPrintln");
EnhancedConsoleText::CodingStyle::normalCenteredTextPrintln("EnhancedConsoleText::CodingStyle::normalCenteredTextPrintln");
EnhancedConsoleText::CodingStyle::cyanCenteredTextPrintln("EnhancedConsoleText::CodingStyle::cyanCenteredTextPrintln");
EnhancedConsoleText::CodingStyle::greenCenteredTextPrintln("EnhancedConsoleText::CodingStyle::greenCenteredTextPrintln");
EnhancedConsoleText::CodingStyle::redCenteredTextPrintln("EnhancedConsoleText::CodingStyle::redCenteredTextPrintln");
EnhancedConsoleText::CodingStyle::yellowCenteredTextPrintln("EnhancedConsoleText::CodingStyle::yellowCenteredTextPrintln");
EnhancedConsoleText::CodingStyle::magentaCenteredTextPrintln("EnhancedConsoleText::CodingStyle::magentaCenteredTextPrintln");
EnhancedConsoleText::CodingStyle::blueCenteredTextPrintln("EnhancedConsoleText::CodingStyle::blueCenteredTextPrintln");
EnhancedConsoleText::CodingStyle::normalCenteredBoldTextPrintln("EnhancedConsoleText::CodingStyle::normalCenteredBoldTextPrintln");
EnhancedConsoleText::CodingStyle::cyanCenteredBoldTextPrintln("EnhancedConsoleText::CodingStyle::cyanCenteredBoldTextPrintln");
EnhancedConsoleText::CodingStyle::greenCenteredBoldTextPrintln("EnhancedConsoleText::CodingStyle::greenCenteredBoldTextPrintln");
EnhancedConsoleText::CodingStyle::redCenteredBoldTextPrintln("EnhancedConsoleText::CodingStyle::redCenteredBoldTextPrintln");
EnhancedConsoleText::CodingStyle::yellowCenteredBoldTextPrintln("EnhancedConsoleText::CodingStyle::yellowCenteredBoldTextPrintln");
EnhancedConsoleText::CodingStyle::magentaCenteredBoldTextPrintln("EnhancedConsoleText::CodingStyle::magentaCenteredBoldTextPrintln");
EnhancedConsoleText::CodingStyle::blueCenteredBoldTextPrintln("EnhancedConsoleText::CodingStyle::blueCenteredBoldTextPrintln");
return 0;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment