diff options
author | saurabhb17 | 2020-02-26 16:11:59 +0530 |
---|---|---|
committer | GitHub | 2020-02-26 16:11:59 +0530 |
commit | e255d0622297488c1c52755be670733418c994cf (patch) | |
tree | 1392c90227aeea231c1d86371131e04c40382918 /CMakeModules/FindGdiPlus.cmake | |
parent | 0db48f6533517ecebfd9f0693f89deca28408b76 (diff) | |
parent | c38609295ad4b617aef472b9c575aee18710a50f (diff) | |
download | KiCad-eSim-e255d0622297488c1c52755be670733418c994cf.tar.gz KiCad-eSim-e255d0622297488c1c52755be670733418c994cf.tar.bz2 KiCad-eSim-e255d0622297488c1c52755be670733418c994cf.zip |
Merge pull request #1 from saurabhb17/develop
Secondary files
Diffstat (limited to 'CMakeModules/FindGdiPlus.cmake')
-rw-r--r-- | CMakeModules/FindGdiPlus.cmake | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/CMakeModules/FindGdiPlus.cmake b/CMakeModules/FindGdiPlus.cmake new file mode 100644 index 0000000..cde55a3 --- /dev/null +++ b/CMakeModules/FindGdiPlus.cmake @@ -0,0 +1,22 @@ +# - Try to find Microsoft GDI+ build files. +# Once done this will define +# +# GDI_PLUS_FOUND - system has GDI+ +# GDI_PLUS_INCLUDE_DIR - the GDI+ include directory +# GDI_PLUS_LIBRARIES - Link these to use GDI+ + +if(GDI_PLUS_INCLUDE_DIR AND GDI_PLUS_LIBRARIES) + set(GDI_PLUS_FIND_QUIETLY TRUE) +endif(GDI_PLUS_INCLUDE_DIR AND GDI_PLUS_LIBRARIES) + +find_path(GDI_PLUS_INCLUDE_DIR GdiPlus.h ) + +find_library(GDI_PLUS_LIBRARIES gdiplus ) + +# handle the QUIETLY and REQUIRED arguments and set GDI_PLUS_FOUND to TRUE if +# all listed variables are TRUE +include(FindPackageHandleStandardArgs) + +find_package_handle_standard_args(GDI_PLUS DEFAULT_MSG GDI_PLUS_LIBRARIES GDI_PLUS_INCLUDE_DIR) + +mark_as_advanced(GDI_PLUS_INCLUDE_DIR GDI_PLUS_LIBRARIES) |