initial project setup
This commit is contained in:
commit
8b42c13bc6
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
cmake-build-*/
|
||||
build/
|
||||
.idea/
|
||||
.vs/
|
15
CMakeLists.txt
Normal file
15
CMakeLists.txt
Normal 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
9
src/main.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user