Initial CMake stuff

This commit is contained in:
TriantaTV 2023-08-31 18:55:36 -05:00
parent 63b8c9d465
commit c18481228a
3 changed files with 25 additions and 0 deletions

14
CMakeLists.txt Normal file
View File

@ -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)

5
src/CMakeLists.txt Normal file
View File

@ -0,0 +1,5 @@
add_executable(search-algorithms
./main.cpp
)
target_include_directories(search-algorithms PUBLIC ${CMAKE_CURRENT_LIST_DIR})

6
src/main.cpp Normal file
View File

@ -0,0 +1,6 @@
#include <iostream>
int main () {
std::cout << "Hello world" << std::endl;
return 0;
}