Skip to content

Commit

Permalink
Added
Browse files Browse the repository at this point in the history
  • Loading branch information
nanda-gopal-sb committed Nov 15, 2024
1 parent 23ebdae commit 4561fdb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.28)
project(CMakeSFMLProject LANGUAGES CXX)
project(memory-match LANGUAGES CXX)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
option(BUILD_SHARED_LIBS "Build shared libraries" OFF)
Expand Down
3 changes: 2 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#include <SFML/Graphics.hpp>

#include "print.cpp"
int main()
{
Print print;
auto window = sf::RenderWindow({1920u, 1080u}, "CMake SFML Project");
window.setFramerateLimit(144);

Expand Down
9 changes: 9 additions & 0 deletions src/print.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include <iostream>
class Print
{
public:
Print()
{
std::cout << "Hello" << "\n";
}
};

0 comments on commit 4561fdb

Please sign in to comment.