From c18481228a6b8bce714f92c16abecbcdf40a0aeb Mon Sep 17 00:00:00 2001 From: TriantaTV Date: Thu, 31 Aug 2023 18:55:36 -0500 Subject: [PATCH] Initial CMake stuff --- CMakeLists.txt | 14 ++++++++++++++ src/CMakeLists.txt | 5 +++++ src/main.cpp | 6 ++++++ 3 files changed, 25 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 src/CMakeLists.txt create mode 100644 src/main.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..e9dd0d7 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,14 @@ +cmake_minimum_required(VERSION 3.10) + +project( + search-algorithms + LANGUAGES CXX) + +set(CMAKE_CXX_STANDARD 11 CACHE STRING "The C++ standard to use") +set(CMAKE_CXX_STANDARD_REQUIRED ON) +set(CMAKE_CXX_EXTENSIONS OFF) +set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) + +include_directories(${search-algorithms_SOURCE_DIR}/src) + +add_subdirectory(src) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..237ded7 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,5 @@ +add_executable(search-algorithms + ./main.cpp +) + +target_include_directories(search-algorithms PUBLIC ${CMAKE_CURRENT_LIST_DIR}) diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..8077094 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,6 @@ +#include + +int main () { + std::cout << "Hello world" << std::endl; + return 0; +}