diff options
author | Matth?us G. Chajdas <dev@anteru.net> | 2019-11-10 13:56:53 +0100 |
---|---|---|
committer | Matth?us G. Chajdas <dev@anteru.net> | 2019-11-10 13:56:53 +0100 |
commit | 1dd3124a9770e11b6684e5dd1e6bc15a0aa3bc67 (patch) | |
tree | 87a171383266dd1f64196589af081bc2f8e497c3 /tests/examplefiles/main.cmake | |
parent | f1c080e184dc1bbc36eaa7cd729ff3a499de568a (diff) | |
download | pygments-master.tar.gz |
Diffstat (limited to 'tests/examplefiles/main.cmake')
-rw-r--r-- | tests/examplefiles/main.cmake | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/tests/examplefiles/main.cmake b/tests/examplefiles/main.cmake deleted file mode 100644 index 6dfcab10..00000000 --- a/tests/examplefiles/main.cmake +++ /dev/null @@ -1,45 +0,0 @@ -CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR) - -SET( SOURCES back.c io.c main.c ) -SET( PATH $ENV{PATH} ) -MESSAGE( ${SOURCES} ) # three arguments, prints "back.cio.cmain.c" -MESSAGE( "${SOURCES}" ) # one argument, prints "back.c;io.c;main.c" -MESSAGE( "" ) # one argument, prints "" an empty line -MESSAGE( "${EMPTY_STRING}" ) # one argument, prints "" an empty line -MESSAGE( ${EMPTY_STRING} ) # zero arguments, causes CMake Error - # "MESSAGE called with incorrect number of arguments" -MESSAGE( \\\"\ \(\)\#\$\^ ) # this message contains literal characters - -MESSAGE( "This is practice." ) # prints "This is practice." -MESSAGE( "This;is;practice." ) # prints "This;is;practice." -MESSAGE( "Hi. ) MESSAGE( x )" ) # prints "Hi. ) MESSAGE( x )" - -MESSAGE( "Welc"ome ) # rule 1 -MESSAGE( Welc"ome" ) # rule 3 -MESSAGE( Welc"ome)" ) # rule 2 -MESSAGE( ""Thanks ) # rule 1 -MESSAGE( Thanks"" ) # rule 3 - -SET( x y A B C ) # stores "y;A;B;C" in x (without quote) -SET( ${x} ) # => SET( y;A;B;C ) => SET( y A B C) -MESSAGE( ${y} ) # prints "ABC" to stdout (without quotes) -SET( y x ) # stores "x" in y (without quotes) -SET( ${y} y = x ) # => SET( x y ) -MESSAGE( "\${x} = '${x}'" ) # prints "${x} = 'y;=;x'" to stdout (without quotes) -SET( y ${x} ) # => SET( y y = x ) => stores "y;=;x" in y (without quotes) -MESSAGE( ${y} ) # prints "y=x" to stdout (without quotes) - -SET( x a b c ) # stores "a;b;c" in x (without quotes) -SET( y "a b c" ) # stores "a b c" in y (without quotes) -MESSAGE( a b c ) # prints "abc" to stdout (without quotes) -MESSAGE( ${x} ) # prints "abc" to stdout (without quotes) -MESSAGE("${x}") # prints "a;b;c" to stdout (without quotes) -MESSAGE( ${y} ) # prints "a b c" to stdout (without quotes) -MESSAGE("${y}") # prints "a b c" to stdout (without quotes) - -# This is a comment. -COMMAND( arguments go here ) -ANOTHER_COMMAND() # this command has no arguments -YET_ANOTHER_COMMAND( these - arguments are spread # another comment - over several lines ) |