Skip to content

Instantly share code, notes, and snippets.

@Kairo-Dai
Last active August 28, 2020 07:20
Show Gist options
  • Save Kairo-Dai/f66195edb2afd8f279e811604b2c7db1 to your computer and use it in GitHub Desktop.
Save Kairo-Dai/f66195edb2afd8f279e811604b2c7db1 to your computer and use it in GitHub Desktop.
cmake测试表达式
add_custom_command(TARGET ${LIBNAME} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory ${DEPS_DIR}/ ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$<$<CONFIG:Release>:Release>$<$<CONFIG:Debug>:Debug>/FolderName
)
如下测试表达式的结果是:somethingtext
#$<1:somethingtext>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment