[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
certi CMakeLists.txt
From: |
certi-cvs |
Subject: |
certi CMakeLists.txt |
Date: |
Thu, 14 Feb 2008 12:32:24 +0000 |
CVSROOT: /sources/certi
Module name: certi
Changes by: Eric NOULARD <erk> 08/02/14 12:32:24
Modified files:
. : CMakeLists.txt
Log message:
Add a switch in order to be able to FORCE billard
compilation with NO X11 usage
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/CMakeLists.txt?cvsroot=certi&r1=1.32&r2=1.33
Patches:
Index: CMakeLists.txt
===================================================================
RCS file: /sources/certi/certi/CMakeLists.txt,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -b -r1.32 -r1.33
--- CMakeLists.txt 11 Feb 2008 14:46:43 -0000 1.32
+++ CMakeLists.txt 14 Feb 2008 12:32:24 -0000 1.33
@@ -22,6 +22,9 @@
OPTION(BUILD_API_DOC
"Build doxygen documentation" OFF)
+OPTION(FORCE_NO_X11
+ "Force not to use X11 (i.e. no Billard GUI)" OFF)
+
SET(CMAKE_BUILD_TYPE "Debug")
# Force CMAKE_COMPILER_IS_GNUCC even if gcc used with ccache
@@ -169,9 +172,13 @@
ENDIF (LIBXML2_FOUND)
################ X11 install Check ####################
-FIND_PACKAGE(X11)
+IF (NOT FORCE_NO_X11)
+ FIND_PACKAGE(X11)
+ELSE(NOT FORCE_NO_X11)
+ MESSAGE(STATUS "FORCE_NO_X11 OPTION has been set: Billard Test
Application will not have GUI.")
+ SET(X11_FOUND 0)
+ENDIF(NOT FORCE_NO_X11)
IF (X11_FOUND)
-
FIND_FILE(HAVE_X11_BITMAPS_CNTR_PTR
NAMES cntr_ptr
PATH_SUFFIXES X11/bitmaps