diff options
author | unknown <paulx161@umn.edu> | 2021-02-03 14:22:28 -0600 |
---|---|---|
committer | unknown <paulx161@umn.edu> | 2021-02-03 14:22:28 -0600 |
commit | 9b83919815f6a6ce5d73da1c28483970d0ca5589 (patch) | |
tree | 4558864445dccc1605e5315e0bb11c46d2018da1 /dev/MinGfx/cmake/Modules/FindNanoGUI.cmake | |
parent | Added worksheet and support code for assignment 2 (diff) | |
download | csci4611-9b83919815f6a6ce5d73da1c28483970d0ca5589.tar csci4611-9b83919815f6a6ce5d73da1c28483970d0ca5589.tar.gz csci4611-9b83919815f6a6ce5d73da1c28483970d0ca5589.tar.bz2 csci4611-9b83919815f6a6ce5d73da1c28483970d0ca5589.tar.lz csci4611-9b83919815f6a6ce5d73da1c28483970d0ca5589.tar.xz csci4611-9b83919815f6a6ce5d73da1c28483970d0ca5589.tar.zst csci4611-9b83919815f6a6ce5d73da1c28483970d0ca5589.zip |
added dev/MinGfx/
Diffstat (limited to 'dev/MinGfx/cmake/Modules/FindNanoGUI.cmake')
-rw-r--r-- | dev/MinGfx/cmake/Modules/FindNanoGUI.cmake | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/dev/MinGfx/cmake/Modules/FindNanoGUI.cmake b/dev/MinGfx/cmake/Modules/FindNanoGUI.cmake new file mode 100644 index 0000000..1c27135 --- /dev/null +++ b/dev/MinGfx/cmake/Modules/FindNanoGUI.cmake @@ -0,0 +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 +) |