From a6f19781d71ebedeada4deefd6eeefcfa1bdce5e Mon Sep 17 00:00:00 2001 From: Antonin Descampe Date: Wed, 13 Apr 2011 15:24:36 +0000 Subject: renamed and reorganized "jp3d" directory to "openjpeg3d". Is now a standalone directory, with independent cmake files. Done as it uses its own version of the openjpeg library and does not depend on the one currently developped. Will be removed from the trunk and stored in a branch. --- CMake/CheckHaveGetopt.cmake | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 CMake/CheckHaveGetopt.cmake (limited to 'CMake/CheckHaveGetopt.cmake') diff --git a/CMake/CheckHaveGetopt.cmake b/CMake/CheckHaveGetopt.cmake new file mode 100644 index 00000000..c0fd5dcf --- /dev/null +++ b/CMake/CheckHaveGetopt.cmake @@ -0,0 +1,15 @@ +# Check if getopt is present: +INCLUDE (${CMAKE_ROOT}/Modules/CheckIncludeFile.cmake) +SET(DONT_HAVE_GETOPT 1) +IF(UNIX) #I am pretty sure only *nix sys have this anyway + CHECK_INCLUDE_FILE("getopt.h" CMAKE_HAVE_GETOPT_H) + # Seems like we need the contrary: + IF(CMAKE_HAVE_GETOPT_H) + SET(DONT_HAVE_GETOPT 0) + ENDIF(CMAKE_HAVE_GETOPT_H) +ENDIF(UNIX) + +IF(DONT_HAVE_GETOPT) + ADD_DEFINITIONS(-DDONT_HAVE_GETOPT) +ENDIF(DONT_HAVE_GETOPT) + -- cgit v1.2.3