Added SETUP_COMMANDLINE_APPLICATION and SETUP_COMMANDLINE_EXAMPLE macros

This commit is contained in:
Robert Osfield 2007-04-12 09:59:34 +00:00
parent 2187b061fc
commit ef84805d5a
3 changed files with 14 additions and 4 deletions

View File

@ -176,6 +176,11 @@ MACRO(SETUP_APPLICATION APPLICATION_NAME)
ENDMACRO(SETUP_APPLICATION) ENDMACRO(SETUP_APPLICATION)
MACRO(SETUP_COMMANDLINE_APPLICATION APPLICATION_NAME)
SETUP_APPLICATION(APPLICATION_NAME 1)
ENDMACRO(SETUP_COMMANDLINE_APPLICATION)
# Takes optional second argument (is_commandline_app?) in ARGV1 # Takes optional second argument (is_commandline_app?) in ARGV1
MACRO(SETUP_EXAMPLE EXAMPLE_NAME) MACRO(SETUP_EXAMPLE EXAMPLE_NAME)
@ -195,3 +200,8 @@ MACRO(SETUP_EXAMPLE EXAMPLE_NAME)
ENDMACRO(SETUP_EXAMPLE) ENDMACRO(SETUP_EXAMPLE)
MACRO(SETUP_COMMANDLINE_EXAMPLE EXAMPLE_NAME)
SETUP_EXAMPLE(EXAMPLE_NAME 1)
ENDMACRO(SETUP_COMMANDLINE_EXAMPLE)

View File

@ -3,5 +3,5 @@
SET(TARGET_SRC osgversion.cpp ) SET(TARGET_SRC osgversion.cpp )
#### end var setup ### #### end var setup ###
# The YES denotes commandline app
SETUP_APPLICATION(osgversion 1) SETUP_COMMANDLINE_APPLICATION(osgversion)

View File

@ -4,5 +4,5 @@
SET(TARGET_SRC UnitTestFramework.cpp UnitTests_osg.cpp osgunittests.cpp performance.cpp ) SET(TARGET_SRC UnitTestFramework.cpp UnitTests_osg.cpp osgunittests.cpp performance.cpp )
SET(TARGET_H UnitTestFramework.h performance.h ) SET(TARGET_H UnitTestFramework.h performance.h )
#### end var setup ### #### end var setup ###
# The 1 denotes commandline app (for TRUE)
SETUP_EXAMPLE(osgunittests 1) SETUP_COMMANDLINE_EXAMPLE(osgunittests)