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/src/CMakeLists.txt | |
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 '')
-rw-r--r-- | dev/MinGfx/src/CMakeLists.txt | 214 |
1 files changed, 107 insertions, 107 deletions
diff --git a/dev/MinGfx/src/CMakeLists.txt b/dev/MinGfx/src/CMakeLists.txt index ff8225b..9d438ea 100644 --- a/dev/MinGfx/src/CMakeLists.txt +++ b/dev/MinGfx/src/CMakeLists.txt @@ -1,107 +1,107 @@ -# This file is part of the MinGfx cmake build system. -# See the main MinGfx/CMakeLists.txt file for details. - - -set(HEADERFILES - src/aabb.h - src/bvh.h - src/color.h - src/craft_cam.h - src/default_shader.h - src/gfxmath.h - src/graphics_app.h - src/matrix4.h - src/mesh.h - src/mingfx.h - src/mingfx_config.h - src/opengl_headers.h - src/platform.h - src/point2.h - src/point3.h - src/quaternion.h - src/quick_shapes.h - src/ray.h - src/shader_program.h - src/text_shader.h - src/texture2d.h - src/unicam.h - src/vector2.h - src/vector3.h -) - -set(SOURCEFILES - src/aabb.cc - src/bvh.cc - src/color.cc - src/craft_cam.cc - src/default_shader.cc - src/gfxmath.cc - src/graphics_app.cc - src/matrix4.cc - src/mesh.cc - src/platform.cc - src/point2.cc - src/point3.cc - src/quaternion.cc - src/quick_shapes.cc - src/ray.cc - src/shader_program.cc - src/text_shader.cc - src/texture2d.cc - src/unicam.cc - src/vector2.cc - src/vector3.cc -) - -set(EXTRAFILES - src/mingfx_config.h.in -) - -set(SHADERFILES - src/shaders/default.frag - src/shaders/default.vert - src/shaders/fullscreen.frag - src/shaders/fullscreen.vert - src/shaders/text.frag - src/shaders/text.vert -) - -set_source_files_properties(${EXTRAFILES} PROPERTIES HEADER_FILE_ONLY TRUE) -set_source_files_properties(${SHADERFILES} PROPERTIES HEADER_FILE_ONLY TRUE) - -source_group("Header Files" FILES ${HEADERFILES}) -source_group("Source Files" FILES ${SOURCEFILES}) -source_group("Shaders" FILES ${SHADERFILES}) - -#add_library(MinGfx SHARED ${HEADERFILES} ${SOURCEFILES} ${EXTRAFILES} ${SHADERFILES}) - -add_library(MinGfx ${HEADERFILES} ${SOURCEFILES} ${EXTRAFILES} ${SHADERFILES}) - - -# Using target_include_directories() rather than just include_directories() is -# critical in order to support generating a MinGfxConfig.cmake file. It supports -# generator expressions, so we can point to two different include dirs depending -# on whether building or using the installed version. -target_include_directories(MinGfx PUBLIC - $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src> # for headers when building - $<INSTALL_INTERFACE:${INSTALL_INCLUDE_DEST}> # for client in install mode -) - -# Add external dependency on NanoGUI -include(AutoBuildNanoGUI) -AutoBuild_use_package_NanoGUI(MinGfx PUBLIC) - -# Add external dependency on OpenGL -include(AutoBuildOpenGL) -AutoBuild_use_package_OpenGL(MinGfx PUBLIC) - - -install(TARGETS MinGfx EXPORT MinGfxTargets COMPONENT CoreLib - LIBRARY DESTINATION "${INSTALL_LIB_DEST}" - ARCHIVE DESTINATION "${INSTALL_LIB_DEST}" - RUNTIME DESTINATION "${INSTALL_BIN_DEST}" -) - -install(FILES ${HEADERFILES} DESTINATION "${INSTALL_INCLUDE_DEST}" COMPONENT CoreLib) -install(FILES ${SHADERFILES} DESTINATION "${INSTALL_SHADERS_DEST}" COMPONENT CoreLib) - +# This file is part of the MinGfx cmake build system.
+# See the main MinGfx/CMakeLists.txt file for details.
+
+
+set(HEADERFILES
+ src/aabb.h
+ src/bvh.h
+ src/color.h
+ src/craft_cam.h
+ src/default_shader.h
+ src/gfxmath.h
+ src/graphics_app.h
+ src/matrix4.h
+ src/mesh.h
+ src/mingfx.h
+ src/mingfx_config.h
+ src/opengl_headers.h
+ src/platform.h
+ src/point2.h
+ src/point3.h
+ src/quaternion.h
+ src/quick_shapes.h
+ src/ray.h
+ src/shader_program.h
+ src/text_shader.h
+ src/texture2d.h
+ src/unicam.h
+ src/vector2.h
+ src/vector3.h
+)
+
+set(SOURCEFILES
+ src/aabb.cc
+ src/bvh.cc
+ src/color.cc
+ src/craft_cam.cc
+ src/default_shader.cc
+ src/gfxmath.cc
+ src/graphics_app.cc
+ src/matrix4.cc
+ src/mesh.cc
+ src/platform.cc
+ src/point2.cc
+ src/point3.cc
+ src/quaternion.cc
+ src/quick_shapes.cc
+ src/ray.cc
+ src/shader_program.cc
+ src/text_shader.cc
+ src/texture2d.cc
+ src/unicam.cc
+ src/vector2.cc
+ src/vector3.cc
+)
+
+set(EXTRAFILES
+ src/mingfx_config.h.in
+)
+
+set(SHADERFILES
+ src/shaders/default.frag
+ src/shaders/default.vert
+ src/shaders/fullscreen.frag
+ src/shaders/fullscreen.vert
+ src/shaders/text.frag
+ src/shaders/text.vert
+)
+
+set_source_files_properties(${EXTRAFILES} PROPERTIES HEADER_FILE_ONLY TRUE)
+set_source_files_properties(${SHADERFILES} PROPERTIES HEADER_FILE_ONLY TRUE)
+
+source_group("Header Files" FILES ${HEADERFILES})
+source_group("Source Files" FILES ${SOURCEFILES})
+source_group("Shaders" FILES ${SHADERFILES})
+
+#add_library(MinGfx SHARED ${HEADERFILES} ${SOURCEFILES} ${EXTRAFILES} ${SHADERFILES})
+
+add_library(MinGfx ${HEADERFILES} ${SOURCEFILES} ${EXTRAFILES} ${SHADERFILES})
+
+
+# Using target_include_directories() rather than just include_directories() is
+# critical in order to support generating a MinGfxConfig.cmake file. It supports
+# generator expressions, so we can point to two different include dirs depending
+# on whether building or using the installed version.
+target_include_directories(MinGfx PUBLIC
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src> # for headers when building
+ $<INSTALL_INTERFACE:${INSTALL_INCLUDE_DEST}> # for client in install mode
+)
+
+# Add external dependency on NanoGUI
+include(AutoBuildNanoGUI)
+AutoBuild_use_package_NanoGUI(MinGfx PUBLIC)
+
+# Add external dependency on OpenGL
+include(AutoBuildOpenGL)
+AutoBuild_use_package_OpenGL(MinGfx PUBLIC)
+
+
+install(TARGETS MinGfx EXPORT MinGfxTargets COMPONENT CoreLib
+ LIBRARY DESTINATION "${INSTALL_LIB_DEST}"
+ ARCHIVE DESTINATION "${INSTALL_LIB_DEST}"
+ RUNTIME DESTINATION "${INSTALL_BIN_DEST}"
+)
+
+install(FILES ${HEADERFILES} DESTINATION "${INSTALL_INCLUDE_DEST}" COMPONENT CoreLib)
+install(FILES ${SHADERFILES} DESTINATION "${INSTALL_SHADERS_DEST}" COMPONENT CoreLib)
+
|