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