From 8b42c13bc6f729b94042a5721876523a1663c418 Mon Sep 17 00:00:00 2001 From: Julian Hinxlage Date: Tue, 15 Oct 2019 14:00:06 +0200 Subject: [PATCH] initial project setup --- .gitignore | 4 ++++ CMakeLists.txt | 15 +++++++++++++++ src/main.cpp | 9 +++++++++ 3 files changed, 28 insertions(+) create mode 100644 .gitignore create mode 100644 CMakeLists.txt create mode 100644 src/main.cpp diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4d92641 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +cmake-build-*/ +build/ +.idea/ +.vs/ diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..bfe6883 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,15 @@ +cmake_minimum_required(VERSION 3.0) +project(TextRenderer) +set(CMAKE_CXX_STANDARD 14) + +file(GLOB_RECURSE SOURCES src/*.cpp) +file(GLOB_RECURSE HEADERS src/*.h) +include_directories(src) + +set(LIB_PATH "${CMAKE_SOURCE_DIR}/../library/build") + +include_directories(${LIB_PATH}/include) +add_executable(TextRenderer ${SOURCES} ${HEADERS}) + +target_link_libraries(TextRenderer ${LIB_PATH}/lib/liblibrary.a) + diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..227cd45 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,9 @@ +#include + +#include "add.h" + +int main() { + std::cout << "Hello, World!" << std::endl; + std::cout << add(6,7) << std::endl; + return 0; +} \ No newline at end of file