diff options
author | Matt Strapp <matt@mattstrapp.net> | 2021-09-20 18:15:14 -0500 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2021-09-20 18:15:14 -0500 |
commit | 342403a02f8063903d0f38327430721d4d0ae331 (patch) | |
tree | 29d020a27bc16939c568dd4b29166566d1c0e658 /dev/MinGfx/tests/blank_window | |
parent | Fix parenthesis (diff) | |
download | csci4611-submission-p1.0.tar csci4611-submission-p1.0.tar.gz csci4611-submission-p1.0.tar.bz2 csci4611-submission-p1.0.tar.lz csci4611-submission-p1.0.tar.xz csci4611-submission-p1.0.tar.zst csci4611-submission-p1.0.zip |
do ass1submission-p1.0
Diffstat (limited to 'dev/MinGfx/tests/blank_window')
-rw-r--r-- | dev/MinGfx/tests/blank_window/CMakeLists.txt | 82 | ||||
-rw-r--r-- | dev/MinGfx/tests/blank_window/main.cc | 50 |
2 files changed, 66 insertions, 66 deletions
diff --git a/dev/MinGfx/tests/blank_window/CMakeLists.txt b/dev/MinGfx/tests/blank_window/CMakeLists.txt index 2081638..b502ddb 100644 --- a/dev/MinGfx/tests/blank_window/CMakeLists.txt +++ b/dev/MinGfx/tests/blank_window/CMakeLists.txt @@ -1,41 +1,41 @@ -# This file is part of the MinGfx cmake build system. -# See the main MinGfx/CMakeLists.txt file for details. - -project(mingfx-test-blank-window) - - -# Source: -set (SOURCEFILES - main.cc -) -set (HEADERFILES -) -set (CONFIGFILES -) - - -# Define the target -add_executable(${PROJECT_NAME} ${HEADERFILES} ${SOURCEFILES}) - - -# Add dependency on libMinGfx: -target_include_directories(${PROJECT_NAME} PUBLIC ../../src) -target_link_libraries(${PROJECT_NAME} PUBLIC MinGfx) - -# Add external dependency on NanoGUI -include(AutoBuildNanoGUI) -AutoBuild_use_package_NanoGUI(${PROJECT_NAME} PUBLIC) - - - -# Installation: -install(TARGETS ${PROJECT_NAME} - RUNTIME DESTINATION ${INSTALL_BIN_DEST} - COMPONENT Tests) - - -# For better organization when using an IDE with folder structures: -set_property(TARGET ${PROJECT_NAME} PROPERTY FOLDER "Tests") -source_group("Header Files" FILES ${HEADERFILES}) -set_source_files_properties(${CONFIGFILES} PROPERTIES HEADER_FILE_ONLY TRUE) -source_group("Config Files" FILES ${CONFIGFILES}) +# This file is part of the MinGfx cmake build system.
+# See the main MinGfx/CMakeLists.txt file for details.
+
+project(mingfx-test-blank-window)
+
+
+# Source:
+set (SOURCEFILES
+ main.cc
+)
+set (HEADERFILES
+)
+set (CONFIGFILES
+)
+
+
+# Define the target
+add_executable(${PROJECT_NAME} ${HEADERFILES} ${SOURCEFILES})
+
+
+# Add dependency on libMinGfx:
+target_include_directories(${PROJECT_NAME} PUBLIC ../../src)
+target_link_libraries(${PROJECT_NAME} PUBLIC MinGfx)
+
+# Add external dependency on NanoGUI
+include(AutoBuildNanoGUI)
+AutoBuild_use_package_NanoGUI(${PROJECT_NAME} PUBLIC)
+
+
+
+# Installation:
+install(TARGETS ${PROJECT_NAME}
+ RUNTIME DESTINATION ${INSTALL_BIN_DEST}
+ COMPONENT Tests)
+
+
+# For better organization when using an IDE with folder structures:
+set_property(TARGET ${PROJECT_NAME} PROPERTY FOLDER "Tests")
+source_group("Header Files" FILES ${HEADERFILES})
+set_source_files_properties(${CONFIGFILES} PROPERTIES HEADER_FILE_ONLY TRUE)
+source_group("Config Files" FILES ${CONFIGFILES})
diff --git a/dev/MinGfx/tests/blank_window/main.cc b/dev/MinGfx/tests/blank_window/main.cc index da81ccb..371b209 100644 --- a/dev/MinGfx/tests/blank_window/main.cc +++ b/dev/MinGfx/tests/blank_window/main.cc @@ -1,25 +1,25 @@ -/* - This file is part of the MinGfx Project. - - Copyright (c) 2017,2018 Regents of the University of Minnesota. - All Rights Reserved. - - Original Author(s) of this File: - Dan Keefe, 2018, University of Minnesota - - Author(s) of Significant Updates/Modifications to the File: - ... - */ - -// The GraphicsApp base class can also run as its own app, but it just displays a blank screen - -#include <mingfx.h> -using namespace mingfx; - -int main(int argc, char **argv) { - - GraphicsApp *app = new GraphicsApp(1024, 768, "A Blank Window!"); - app->Run(); - - return 0; -} +/*
+ This file is part of the MinGfx Project.
+
+ Copyright (c) 2017,2018 Regents of the University of Minnesota.
+ All Rights Reserved.
+
+ Original Author(s) of this File:
+ Dan Keefe, 2018, University of Minnesota
+
+ Author(s) of Significant Updates/Modifications to the File:
+ ...
+ */
+
+// The GraphicsApp base class can also run as its own app, but it just displays a blank screen
+
+#include <mingfx.h>
+using namespace mingfx;
+
+int main(int argc, char **argv) {
+
+ GraphicsApp *app = new GraphicsApp(1024, 768, "A Blank Window!");
+ app->Run();
+
+ return 0;
+}
|