Initial Commit
This commit is contained in:
34
cpp/CMakeLists.txt
Normal file
34
cpp/CMakeLists.txt
Normal file
@@ -0,0 +1,34 @@
|
||||
# Almost all CMake files should start with this
|
||||
# You should always specify a range with the newest
|
||||
# and oldest tested versions of CMake. This will ensure
|
||||
# you pick up the best policies.
|
||||
cmake_minimum_required(VERSION 3.15...4.0)
|
||||
|
||||
# This is your project statement. You should always list languages;
|
||||
# Listing the version is nice here since it sets lots of useful variables
|
||||
project(
|
||||
ssg
|
||||
VERSION 1.0
|
||||
LANGUAGES CXX)
|
||||
|
||||
# If you set any CMAKE_ variables, that can go here.
|
||||
# (But usually don't do this, except maybe for C++ standard)
|
||||
|
||||
# Find packages go here.
|
||||
|
||||
# You should usually split this into folders, but this is a simple example
|
||||
|
||||
# This is a "default" library, and will match the *** variable setting.
|
||||
# Other common choices are STATIC, SHARED, and MODULE
|
||||
# Including header files here helps IDEs but is not required.
|
||||
# Output libname matches target name, with the usual extensions on your system
|
||||
# add_library(MyLibExample simple_lib.cpp simple_lib.hpp)
|
||||
|
||||
# Link each target with other targets or add options, etc.
|
||||
|
||||
# Adding something we can run - Output name matches target name
|
||||
add_executable(ssg ssg.cpp)
|
||||
|
||||
# Make sure you link your targets with this command. It can also link libraries and
|
||||
# even flags, so linking a target that does not exist will not give a configure-time error.
|
||||
target_link_libraries(ssg PRIVATE)
|
||||
13
cpp/ssg.cpp
Normal file
13
cpp/ssg.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
// Necessary header files for input output functions
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
// main() function: where the execution of
|
||||
// C++ program begins
|
||||
int main() {
|
||||
|
||||
// This statement prints "Hello World"
|
||||
cout << "Hello World";
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user