From fba58042c236d8ceec09c7310583797401eda0ab Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 22 Mar 2018 11:26:35 +0100 Subject: Test for Curses --- libcrystfel/CMakeLists.txt | 5 +++++ libcrystfel/src/integration.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'libcrystfel') diff --git a/libcrystfel/CMakeLists.txt b/libcrystfel/CMakeLists.txt index 9a05c1a0..5d0ee069 100644 --- a/libcrystfel/CMakeLists.txt +++ b/libcrystfel/CMakeLists.txt @@ -111,6 +111,11 @@ if (CBF_FOUND) target_link_libraries(${PROJECT_NAME} PRIVATE ${CBF_LIBRARIES}) endif (CBF_FOUND) +if (CURSES_FOUND) + target_include_directories(${PROJECT_NAME} PRIVATE ${CURSES_INCLUDE_DIRS}) + target_link_libraries(${PROJECT_NAME} PRIVATE ${CURSES_LIBRARIES}) +endif (CURSES_FOUND) + target_compile_options(${PROJECT_NAME} PRIVATE -Wall) install (TARGETS libcrystfel diff --git a/libcrystfel/src/integration.c b/libcrystfel/src/integration.c index c18ae110..d7a34954 100644 --- a/libcrystfel/src/integration.c +++ b/libcrystfel/src/integration.c @@ -39,7 +39,7 @@ #include #include -#ifdef HAVE_CURSES_COLOR +#ifdef HAVE_CURSES #include #endif @@ -177,7 +177,7 @@ static float boxi(struct intcontext *ic, struct peak_box *bx, int p, int q) } -#ifdef HAVE_CURSES_COLOR +#ifdef HAVE_CURSES static void colour_on(enum boxmask_val b) { switch ( b ) { @@ -225,7 +225,7 @@ static void colour_off(enum boxmask_val b) #endif -#ifdef HAVE_CURSES_COLOR +#ifdef HAVE_CURSES static void show_reference_profile(struct intcontext *ic, int i) { int q; @@ -254,7 +254,7 @@ static void show_reference_profile(struct intcontext *ic, int i) static void show_peak_box(struct intcontext *ic, struct peak_box *bx, pthread_mutex_t *term_lock) { -#ifdef HAVE_CURSES_COLOR +#ifdef HAVE_CURSES int q; signed int h, k, l; double fs, ss; -- cgit v1.2.3