initial project setup

This commit is contained in:
Julian Hinxlage 2019-10-15 14:00:06 +02:00
commit 8b42c13bc6
3 changed files with 28 additions and 0 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
cmake-build-*/
build/
.idea/
.vs/

15
CMakeLists.txt Normal file
View File

@ -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)

9
src/main.cpp Normal file
View File

@ -0,0 +1,9 @@
#include <iostream>
#include "add.h"
int main() {
std::cout << "Hello, World!" << std::endl;
std::cout << add(6,7) << std::endl;
return 0;
}