From 0d891b48748103ed6271a43cf5e8924ed2fed222 Mon Sep 17 00:00:00 2001 From: a dinosaur Date: Sun, 10 Mar 2024 16:30:51 +1100 Subject: [PATCH] windows --- CMakeLists.txt | 10 +++++----- Lesson10.cpp | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4e96107..1fcfcb4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,15 +1,15 @@ cmake_minimum_required(VERSION "3.5" FATAL_ERROR) project(Lesson10 LANGUAGES CXX) -set(CMAKE_CXX_STANDARD 98) - find_package(SDL3 REQUIRED CONFIG) find_package(OpenGL REQUIRED) add_executable(Lesson10 Lesson10.cpp) -set_property(TARGET Lesson10 PROPERTY CXX_STANDARD 98) -target_link_libraries(Lesson10 SDL3::SDL3 OpenGL::GL) -target_compile_options(Lesson10 PRIVATE -Wall -Wextra -pedantic) +set_target_properties(Lesson10 PROPERTIES + CXX_STANDARD 98 + WIN32_EXECUTABLE ON) +target_link_libraries(Lesson10 SDL3::SDL3 OpenGL::GL OpenGL::GLU) +target_compile_options(Lesson10 PRIVATE $<$:-Wall -Wextra -pedantic>) if (CMAKE_SYSTEM_NAME STREQUAL "Darwin") get_property(SDL3_IMPORTED_LOCATION TARGET SDL3::SDL3 PROPERTY IMPORTED_LOCATION) diff --git a/Lesson10.cpp b/Lesson10.cpp index ef944dc..6078e6f 100644 --- a/Lesson10.cpp +++ b/Lesson10.cpp @@ -8,6 +8,7 @@ #include // Math Library Header File #include // Header File For Standard Input/Output +#include #include #include #include // Header File For The OpenGL32 Library