diff --git a/CMakeLists.txt b/CMakeLists.txt index 0cf460b..3736801 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/src/main.cpp b/src/main.cpp index f41c87f..996cbdb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,7 +1,8 @@ #include - +#include "print.cpp" int main() { + Print print; auto window = sf::RenderWindow({1920u, 1080u}, "CMake SFML Project"); window.setFramerateLimit(144); diff --git a/src/print.cpp b/src/print.cpp new file mode 100644 index 0000000..5f54b41 --- /dev/null +++ b/src/print.cpp @@ -0,0 +1,9 @@ +#include +class Print +{ +public: + Print() + { + std::cout << "Hello" << "\n"; + } +}; \ No newline at end of file