HPUX support.

This commit is contained in:
Berk Geveci 2001-11-05 13:24:44 -05:00
parent 9190e57e3d
commit b22e2de8e5
9 changed files with 30 additions and 12 deletions

View File

@ -3,14 +3,18 @@
#
FIND_PATH(CURSES_INCLUDE_PATH curses.h
/usr/local/include
/usr/include
/usr/local/include /usr/include
)
FIND_LIBRARY(CURSES_LIBRARY curses
PATHS /usr/lib /usr/local/lib
PATHS /usr/local/lib /usr/lib
)
FIND_LIBRARY(CURSES_EXTRA_LIBRARY cur_colr
PATHS /usr/local/lib /usr/lib
)
FIND_LIBRARY(FORM_LIBRARY form
PATHS /usr/lib /usr/local/lib
PATHS /usr/local/lib /usr/lib
)

View File

@ -17,6 +17,11 @@ SOURCE_FILES( CURSES_SRCS
INCLUDE_DIRECTORIES(${CURSES_INCLUDE_PATH})
INCLUDE_DIRECTORIES(${CMake_SOURCE_DIR}/Source/CursesDialog/form/)
LINK_LIBRARIES(${CURSES_LIBRARY})
IF(CURSES_EXTRA_LIBRARY)
LINK_LIBRARIES(${CURSES_EXTRA_LIBRARY})
ENDIF(CURSES_EXTRA_LIBRARY)
LINK_LIBRARIES(cmForm)
ADD_EXECUTABLE(ccurses CURSES_SRCS)

View File

@ -1,8 +1,7 @@
#ifndef __cmCursesForm_h
#define __cmCursesForm_h
#include <curses.h>
#include <form.h>
#include "cmCursesStandardIncludes.h"
class cmCursesForm
{

View File

@ -2,8 +2,7 @@
#define __cmCursesLabelWidget_h
#include "cmCursesWidget.h"
#include <curses.h>
#include <form.h>
#include "cmCursesStandardIncludes.h"
class cmCursesLabelWidget : public cmCursesWidget

View File

@ -3,8 +3,7 @@
#include "../cmStandardIncludes.h"
#include "cmCursesForm.h"
#include <curses.h>
#include <form.h>
#include "cmCursesStandardIncludes.h"
class cmCursesCacheEntryComposite;

View File

@ -0,0 +1,7 @@
#ifdef __hpux
#define _XOPEN_SOURCE_EXTENDED
#define _BOOL_DEFINED
#endif /* __hpux */
#include <curses.h>
#include <form.h>

View File

@ -2,8 +2,7 @@
#define __cmCursesWidget_h
#include "../cmCacheManager.h"
#include <curses.h>
#include <form.h>
#include "cmCursesStandardIncludes.h"
class cmCursesWidget
{

View File

@ -29,6 +29,9 @@
/****************************************************************************
* Author: Juergen Pfeifer <juergen.pfeifer@gmx.net> 1995,1997 *
****************************************************************************/
#ifdef __hpux
#define _XOPEN_SOURCE_EXTENDED
#endif /* __hpux */
#include "form.priv.h"
MODULE_ID("$Id$")

View File

@ -35,6 +35,9 @@
* Routines to handle external names of menu requests *
***************************************************************************/
#ifdef __hpux
#define _XOPEN_SOURCE_EXTENDED
#endif /* __hpux */
#include "form.priv.h"
MODULE_ID("$Id$")