5 # Find the GNUstep libobjc2 shared library.
7 set(gnustep_install_dir "")
10 set(gnustep_lib lib/libobjc.so)
11 set(gnustep_header include/objc/runtime.h)
13 if (EXISTS "${GNUstepObjC_DIR}/${gnustep_lib}" AND
14 EXISTS "${GNUstepObjC_DIR}/${gnustep_header}")
15 set(gnustep_install_dir ${GNUstepObjC_DIR})
18 set(gnustep_install_dir)
19 find_path(gnustep_install_dir NAMES lib/libobjc.so include/objc/runtime.h)
21 if (gnustep_install_dir)
22 set(GNUstepObjC_FOUND TRUE)
25 set(gnustep_lib lib/objc.dll)
26 set(gnustep_header include/objc/runtime.h)
28 set(gnustep_install_dir ${GNUstepObjC_DIR})
30 set(gnustep_install_dir "C:/Program Files (x86)/libobjc")
32 if (EXISTS "${gnustep_install_dir}/${gnustep_lib}" AND
33 EXISTS "${gnustep_install_dir}/${gnustep_header}")
34 set(GNUstepObjC_FOUND TRUE)
38 if (GNUstepObjC_FOUND)
39 set(GNUstepObjC_DIR ${gnustep_install_dir})
40 message(STATUS "Found GNUstep ObjC runtime: ${GNUstepObjC_DIR}/${gnustep_lib}")