diff options
Diffstat (limited to 'cmake/modules/FindATK.cmake')
-rw-r--r-- | cmake/modules/FindATK.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cmake/modules/FindATK.cmake b/cmake/modules/FindATK.cmake new file mode 100644 index 0000000..e2ae906 --- /dev/null +++ b/cmake/modules/FindATK.cmake @@ -0,0 +1,11 @@ +FILE(TO_CMAKE_PATH "$ENV{ATK_DIR}" TRY1_DIR) +FILE(TO_CMAKE_PATH "${ATK_DIR}" TRY2_DIR) +FILE(GLOB ATK_DIR ${TRY1_DIR} ${TRY2_DIR}) + +FIND_PATH(ATK_INCLUDE_DIR atk/atk.h + PATHS ${ATK_DIR}/include /usr/local/include /usr/include + ENV INCLUDE DOC "Directory containing atk/atk.h include file") + +IF (ATK_INCLUDE_DIR) + SET(ATK_FOUND TRUE) +ENDIF (ATK_INCLUDE_DIR) |