initial project setup
This commit is contained in:
commit
8b42c13bc6
|
@ -0,0 +1,4 @@
|
|||
cmake-build-*/
|
||||
build/
|
||||
.idea/
|
||||
.vs/
|
|
@ -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)
|
||||
|
|
@ -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