certi-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[certi-cvs] certi/RTIA CMakeLists.txt


From: CERTI CVS commits
Subject: [certi-cvs] certi/RTIA CMakeLists.txt
Date: Wed, 04 Sep 2013 07:52:30 +0000

CVSROOT:        /sources/certi
Module name:    certi
Changes by:     Eric NOULARD <erk>      13/09/04 07:52:30

Modified files:
        RTIA           : CMakeLists.txt 

Log message:
        Add custom target for easing the regeneration of RTIA command line 
handling

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/RTIA/CMakeLists.txt?cvsroot=certi&r1=1.10&r2=1.11

Patches:
Index: CMakeLists.txt
===================================================================
RCS file: /sources/certi/certi/RTIA/CMakeLists.txt,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- CMakeLists.txt      18 Dec 2011 16:02:23 -0000      1.10
+++ CMakeLists.txt      4 Sep 2013 07:52:30 -0000       1.11
@@ -2,6 +2,17 @@
 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/libCERTI)
 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/libRTI)
 
+find_program(GENGETOPT_PROGRAM NAMES gengetopt)
+if (GENGETOPT_PROGRAM)
+   set(GGOFILE ${CMAKE_CURRENT_SOURCE_DIR}/RTIA.ggo)
+   add_custom_target(GenRTIACmdline
+                    COMMAND ${GENGETOPT_PROGRAM} --no-handle-error 
--show-required -i ${GGOFILE}
+                    DEPENDS ${GGOFILE}
+                    WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+                    COMMENT "Regenerate RTIA command line C files -- (from 
${GGOFILE})"
+                    )
+endif(GENGETOPT_PROGRAM)
+
 SET(rtia_SRCS
   Communications.cc Communications.hh
   DataDistribution.cc DataDistribution.hh



reply via email to

[Prev in Thread] Current Thread [Next in Thread]