Skip to content

Instantly share code, notes, and snippets.

@galexite
Created October 9, 2019 12:12
Show Gist options
  • Select an option

  • Save galexite/b5dec4d4e96aa74e3fdfbd02c7c9e6c3 to your computer and use it in GitHub Desktop.

Select an option

Save galexite/b5dec4d4e96aa74e3fdfbd02c7c9e6c3 to your computer and use it in GitHub Desktop.
include(FindPackageHandleStandardArgs)
find_path(WTL_INCLUDE_DIR
NAMES
atlapp.h
atlcrack.h
atlctrls.h
atlctrlw.h
atlctrlx.h
atlddx.h
atldlgs.h
atldwm.h
atlfind.h
atlframe.h
atlgdi.h
atlmisc.h
atlprint.h
atlres.h
atlribbon.h
atlscrl.h
atlsplit.h
atltheme.h
atluser.h
atlwinx.h
HINTS
"${WTL_LOCATION}/include/wtl"
"$ENV{WTL_LOCATION}/include/wtl"
DOC
"The directory containing WTL header files."
)
find_package_handle_standard_args(WTL DEFAULT_MSG
WTL_INCLUDE_DIR
)
if (WTL_FOUND)
add_library(WTL INTERFACE)
target_include_directories(WTL INTERFACE "${WTL_INCLUDE_DIR}")
endif()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment