HPUX support.
This commit is contained in:
parent
9190e57e3d
commit
b22e2de8e5
|
@ -3,14 +3,18 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
FIND_PATH(CURSES_INCLUDE_PATH curses.h
|
FIND_PATH(CURSES_INCLUDE_PATH curses.h
|
||||||
/usr/local/include
|
/usr/local/include /usr/include
|
||||||
/usr/include
|
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_LIBRARY(CURSES_LIBRARY curses
|
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
|
FIND_LIBRARY(FORM_LIBRARY form
|
||||||
PATHS /usr/lib /usr/local/lib
|
PATHS /usr/local/lib /usr/lib
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,11 @@ SOURCE_FILES( CURSES_SRCS
|
||||||
INCLUDE_DIRECTORIES(${CURSES_INCLUDE_PATH})
|
INCLUDE_DIRECTORIES(${CURSES_INCLUDE_PATH})
|
||||||
INCLUDE_DIRECTORIES(${CMake_SOURCE_DIR}/Source/CursesDialog/form/)
|
INCLUDE_DIRECTORIES(${CMake_SOURCE_DIR}/Source/CursesDialog/form/)
|
||||||
LINK_LIBRARIES(${CURSES_LIBRARY})
|
LINK_LIBRARIES(${CURSES_LIBRARY})
|
||||||
|
|
||||||
|
IF(CURSES_EXTRA_LIBRARY)
|
||||||
|
LINK_LIBRARIES(${CURSES_EXTRA_LIBRARY})
|
||||||
|
ENDIF(CURSES_EXTRA_LIBRARY)
|
||||||
|
|
||||||
LINK_LIBRARIES(cmForm)
|
LINK_LIBRARIES(cmForm)
|
||||||
|
|
||||||
ADD_EXECUTABLE(ccurses CURSES_SRCS)
|
ADD_EXECUTABLE(ccurses CURSES_SRCS)
|
|
@ -1,8 +1,7 @@
|
||||||
#ifndef __cmCursesForm_h
|
#ifndef __cmCursesForm_h
|
||||||
#define __cmCursesForm_h
|
#define __cmCursesForm_h
|
||||||
|
|
||||||
#include <curses.h>
|
#include "cmCursesStandardIncludes.h"
|
||||||
#include <form.h>
|
|
||||||
|
|
||||||
class cmCursesForm
|
class cmCursesForm
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
#define __cmCursesLabelWidget_h
|
#define __cmCursesLabelWidget_h
|
||||||
|
|
||||||
#include "cmCursesWidget.h"
|
#include "cmCursesWidget.h"
|
||||||
#include <curses.h>
|
#include "cmCursesStandardIncludes.h"
|
||||||
#include <form.h>
|
|
||||||
|
|
||||||
|
|
||||||
class cmCursesLabelWidget : public cmCursesWidget
|
class cmCursesLabelWidget : public cmCursesWidget
|
||||||
|
|
|
@ -3,8 +3,7 @@
|
||||||
|
|
||||||
#include "../cmStandardIncludes.h"
|
#include "../cmStandardIncludes.h"
|
||||||
#include "cmCursesForm.h"
|
#include "cmCursesForm.h"
|
||||||
#include <curses.h>
|
#include "cmCursesStandardIncludes.h"
|
||||||
#include <form.h>
|
|
||||||
|
|
||||||
class cmCursesCacheEntryComposite;
|
class cmCursesCacheEntryComposite;
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
#ifdef __hpux
|
||||||
|
#define _XOPEN_SOURCE_EXTENDED
|
||||||
|
#define _BOOL_DEFINED
|
||||||
|
#endif /* __hpux */
|
||||||
|
|
||||||
|
#include <curses.h>
|
||||||
|
#include <form.h>
|
|
@ -2,8 +2,7 @@
|
||||||
#define __cmCursesWidget_h
|
#define __cmCursesWidget_h
|
||||||
|
|
||||||
#include "../cmCacheManager.h"
|
#include "../cmCacheManager.h"
|
||||||
#include <curses.h>
|
#include "cmCursesStandardIncludes.h"
|
||||||
#include <form.h>
|
|
||||||
|
|
||||||
class cmCursesWidget
|
class cmCursesWidget
|
||||||
{
|
{
|
||||||
|
|
|
@ -29,6 +29,9 @@
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Author: Juergen Pfeifer <juergen.pfeifer@gmx.net> 1995,1997 *
|
* Author: Juergen Pfeifer <juergen.pfeifer@gmx.net> 1995,1997 *
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
#ifdef __hpux
|
||||||
|
#define _XOPEN_SOURCE_EXTENDED
|
||||||
|
#endif /* __hpux */
|
||||||
#include "form.priv.h"
|
#include "form.priv.h"
|
||||||
|
|
||||||
MODULE_ID("$Id$")
|
MODULE_ID("$Id$")
|
||||||
|
|
|
@ -35,6 +35,9 @@
|
||||||
* Routines to handle external names of menu requests *
|
* Routines to handle external names of menu requests *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
#ifdef __hpux
|
||||||
|
#define _XOPEN_SOURCE_EXTENDED
|
||||||
|
#endif /* __hpux */
|
||||||
#include "form.priv.h"
|
#include "form.priv.h"
|
||||||
|
|
||||||
MODULE_ID("$Id$")
|
MODULE_ID("$Id$")
|
||||||
|
|
Loading…
Reference in New Issue