diff options
author | saurabhb17 | 2020-02-26 16:04:40 +0530 |
---|---|---|
committer | saurabhb17 | 2020-02-26 16:04:40 +0530 |
commit | 039ac92480a09266146fc5b0c9ec67a32a2565ad (patch) | |
tree | 7b6cef031a580680690a0f32410db940f7e7d7d5 /CMakeModules/FindGdiPlus.cmake | |
parent | aa35045840b78d3f48212db45da59a2e5c69b223 (diff) | |
download | KiCad-eSim-039ac92480a09266146fc5b0c9ec67a32a2565ad.tar.gz KiCad-eSim-039ac92480a09266146fc5b0c9ec67a32a2565ad.tar.bz2 KiCad-eSim-039ac92480a09266146fc5b0c9ec67a32a2565ad.zip |
Added 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) |