GenEx: Test the use of generator expressions to generate lists.
We can't test this in the GeneratorExpression unit test because the ';' chars are processed specically by the CMake function argument parser.
This commit is contained in:
parent
e2d141d474
commit
145a4af8d3
|
@ -34,6 +34,15 @@ enum {
|
|||
#ifdef GE_NOT_DEFINED
|
||||
#error Expect not defined generator expression
|
||||
#endif
|
||||
|
||||
#ifndef ARGUMENT
|
||||
#error Expected define expanded from list
|
||||
#endif
|
||||
#ifndef LIST
|
||||
#error Expected define expanded from list
|
||||
#endif
|
||||
|
||||
// TEST_GENERATOR_EXPRESSIONS
|
||||
#endif
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
|
|
@ -12,4 +12,5 @@ set_property(TARGET target_prop_executable APPEND PROPERTY COMPILE_DEFINITIONS
|
|||
TEST_GENERATOR_EXPRESSIONS
|
||||
"$<1:CMAKE_IS_DECLARATIVE>"
|
||||
"$<0:GE_NOT_DEFINED>"
|
||||
"$<1:ARGUMENT;LIST>"
|
||||
)
|
||||
|
|
|
@ -15,6 +15,8 @@ create_header(baz)
|
|||
create_header(bang)
|
||||
create_header(bing)
|
||||
create_header(bung)
|
||||
create_header(arguments)
|
||||
create_header(list)
|
||||
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
|
@ -30,3 +32,5 @@ set_property(TARGET TargetIncludeDirectories APPEND PROPERTY
|
|||
include_directories("${CMAKE_CURRENT_BINARY_DIR}/baz")
|
||||
include_directories("$<1:${CMAKE_CURRENT_BINARY_DIR}/bung>")
|
||||
include_directories("sing$<1:/ting>")
|
||||
|
||||
include_directories("$<1:${CMAKE_CURRENT_BINARY_DIR}/arguments;${CMAKE_CURRENT_BINARY_DIR}/list>")
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
#include "bing.h"
|
||||
#include "bung.h"
|
||||
#include "ting.h"
|
||||
#include "arguments.h"
|
||||
#include "list.h"
|
||||
|
||||
int main(int, char**)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue