You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
457 B
21 lines
457 B
10 years ago
|
|
||
|
enable_language(C)
|
||
|
|
||
|
add_library(empty SHARED empty.c)
|
||
|
|
||
7 years ago
|
get_property(_isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
|
||
|
if(_isMultiConfig)
|
||
10 years ago
|
list(GET CMAKE_CONFIGURATION_TYPES 0 FIRST_CONFIG)
|
||
|
set(GENERATE_CONDITION CONDITION $<CONFIG:${FIRST_CONFIG}>)
|
||
|
endif()
|
||
|
|
||
|
file(GENERATE
|
||
|
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/test.txt"
|
||
|
CONTENT
|
||
|
[[$<TARGET_PDB_FILE:empty>
|
||
|
$<TARGET_PDB_FILE_NAME:empty>
|
||
|
$<TARGET_PDB_FILE_DIR:empty>
|
||
|
]]
|
||
|
${GENERATE_CONDITION}
|
||
|
)
|