From fd28196d775ebf93e8ba7a3c4f17886422c16ef3 Mon Sep 17 00:00:00 2001 From: Trygve Date: Sat, 6 Apr 2024 13:32:44 +0200 Subject: [PATCH] Moved code into src --- CMakeLists.txt | 11 ++++++----- HeightMap.cpp => src/HeightMap.cpp | 0 HeightMap.hh => src/HeightMap.hh | 0 main.cpp => src/main.cpp | 0 4 files changed, 6 insertions(+), 5 deletions(-) rename HeightMap.cpp => src/HeightMap.cpp (100%) rename HeightMap.hh => src/HeightMap.hh (100%) rename main.cpp => src/main.cpp (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 04cbee1..6e5868b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,12 +1,13 @@ -project(inf205 CXX) +project( + INF205 + LANGUAGES CXX) cmake_minimum_required(VERSION 3.0) find_package(GDAL CONFIG REQUIRED) -set(EXAMPLE_NAME marching_squares) -add_executable(${EXAMPLE_NAME} - main.cpp HeightMap.cpp +add_executable(${PROJECT_NAME} + src/HeightMap.cpp src/main.cpp ) -target_link_libraries(${EXAMPLE_NAME} GDAL::GDAL) \ No newline at end of file +target_link_libraries(${PROJECT_NAME} GDAL::GDAL) \ No newline at end of file diff --git a/HeightMap.cpp b/src/HeightMap.cpp similarity index 100% rename from HeightMap.cpp rename to src/HeightMap.cpp diff --git a/HeightMap.hh b/src/HeightMap.hh similarity index 100% rename from HeightMap.hh rename to src/HeightMap.hh diff --git a/main.cpp b/src/main.cpp similarity index 100% rename from main.cpp rename to src/main.cpp