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/cmake/Modules/FindNanoGUI.cmake | |
parent | Fix parenthesis (diff) | |
download | csci4611-342403a02f8063903d0f38327430721d4d0ae331.tar csci4611-342403a02f8063903d0f38327430721d4d0ae331.tar.gz csci4611-342403a02f8063903d0f38327430721d4d0ae331.tar.bz2 csci4611-342403a02f8063903d0f38327430721d4d0ae331.tar.lz csci4611-342403a02f8063903d0f38327430721d4d0ae331.tar.xz csci4611-342403a02f8063903d0f38327430721d4d0ae331.tar.zst csci4611-342403a02f8063903d0f38327430721d4d0ae331.zip |
do ass1submission-p1.0
Diffstat (limited to 'dev/MinGfx/cmake/Modules/FindNanoGUI.cmake')
-rw-r--r-- | dev/MinGfx/cmake/Modules/FindNanoGUI.cmake | 124 |
1 files changed, 62 insertions, 62 deletions
diff --git a/dev/MinGfx/cmake/Modules/FindNanoGUI.cmake b/dev/MinGfx/cmake/Modules/FindNanoGUI.cmake index 1c27135..84eefd8 100644 --- a/dev/MinGfx/cmake/Modules/FindNanoGUI.cmake +++ b/dev/MinGfx/cmake/Modules/FindNanoGUI.cmake @@ -1,62 +1,62 @@ - - -find_path(NANOGUI_INCLUDE_DIR - nanogui/nanogui.h - HINTS - ${CMAKE_INSTALL_PREFIX}/include - ${CMAKE_INSTALL_PREFIX}/include/nanogui - $ENV{NANOGUI_ROOT}/include - $ENV{NANOGUI_ROOT}/include/nanogui - /usr/local/include - /usr/local/include/nanogui -) - - -find_library(NANOGUI_OPT_LIBRARIES - NAMES - nanogui - HINTS - ${CMAKE_INSTALL_PREFIX}/lib - $ENV{NANOGUI_ROOT}/lib - /usr/local/lib -) - - -find_library(NANOGUI_DEBUG_LIBRARIES - NAMES - nanoguid - HINTS - ${CMAKE_INSTALL_PREFIX}/lib - $ENV{NANOGUI_ROOT}/lib - /usr/local/lib -) - -set(NANOGUI_INCLUDE_DIRS - ${NANOGUI_INCLUDE_DIR} - ${NANOGUI_INCLUDE_DIR}/nanovg -) - -unset(NANOGUI_LIBRARIES) -if (NANOGUI_OPT_LIBRARIES) - list(APPEND NANOGUI_LIBRARIES optimized ${NANOGUI_OPT_LIBRARIES}) -endif() - -if (NANOGUI_DEBUG_LIBRARIES) - list(APPEND NANOGUI_LIBRARIES debug ${NANOGUI_DEBUG_LIBRARIES}) -endif() - -include(FindPackageHandleStandardArgs) -find_package_handle_standard_args( - NanoGUI - DEFAULT_MSG - NANOGUI_INCLUDE_DIRS - NANOGUI_LIBRARIES -) - -mark_as_advanced( - NANOGUI_INCLUDE_DIR - NANOGUI_INCLUDE_DIRS - NANOGUI_OPT_LIBRARIES - NANOGUI_DEBUG_LIBRARIES - NANOGUI_LIBRARIES -) +
+
+find_path(NANOGUI_INCLUDE_DIR
+ nanogui/nanogui.h
+ HINTS
+ ${CMAKE_INSTALL_PREFIX}/include
+ ${CMAKE_INSTALL_PREFIX}/include/nanogui
+ $ENV{NANOGUI_ROOT}/include
+ $ENV{NANOGUI_ROOT}/include/nanogui
+ /usr/local/include
+ /usr/local/include/nanogui
+)
+
+
+find_library(NANOGUI_OPT_LIBRARIES
+ NAMES
+ nanogui
+ HINTS
+ ${CMAKE_INSTALL_PREFIX}/lib
+ $ENV{NANOGUI_ROOT}/lib
+ /usr/local/lib
+)
+
+
+find_library(NANOGUI_DEBUG_LIBRARIES
+ NAMES
+ nanoguid
+ HINTS
+ ${CMAKE_INSTALL_PREFIX}/lib
+ $ENV{NANOGUI_ROOT}/lib
+ /usr/local/lib
+)
+
+set(NANOGUI_INCLUDE_DIRS
+ ${NANOGUI_INCLUDE_DIR}
+ ${NANOGUI_INCLUDE_DIR}/nanovg
+)
+
+unset(NANOGUI_LIBRARIES)
+if (NANOGUI_OPT_LIBRARIES)
+ list(APPEND NANOGUI_LIBRARIES optimized ${NANOGUI_OPT_LIBRARIES})
+endif()
+
+if (NANOGUI_DEBUG_LIBRARIES)
+ list(APPEND NANOGUI_LIBRARIES debug ${NANOGUI_DEBUG_LIBRARIES})
+endif()
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(
+ NanoGUI
+ DEFAULT_MSG
+ NANOGUI_INCLUDE_DIRS
+ NANOGUI_LIBRARIES
+)
+
+mark_as_advanced(
+ NANOGUI_INCLUDE_DIR
+ NANOGUI_INCLUDE_DIRS
+ NANOGUI_OPT_LIBRARIES
+ NANOGUI_DEBUG_LIBRARIES
+ NANOGUI_LIBRARIES
+)
|