commit 8b42c13bc6f729b94042a5721876523a1663c418 Author: Julian Hinxlage Date: Tue Oct 15 14:00:06 2019 +0200 initial project setup 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