Commit inicial

parents
Showing with 27 additions and 0 deletions
cmake_minimum_required(VERSION 3.27)
project(pr01)
set(CMAKE_CXX_STANDARD 17)
file( GLOB MY_FILES *.cpp )
add_executable( ${PROJECT_NAME} ${MY_FILES} )
#include <iostream>
int main() {
std::cout << "Hello world!" << std::endl;
}
#!/bin/bash
die() {
exit 1
}
PROJECT_NAME=pr01
cmake -B build/ .
cd build
make || die
cp ${PROJECT_NAME} ..
cd ..
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment