mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Add `__create_def` coverage for: - missing nm tools - generator selection - single- and multi-object inputs - object paths containing spaces - mixed object and definition inputs - nm symbol classification
12 lines
407 B
CMake
12 lines
407 B
CMake
enable_language(C)
|
|
|
|
set(CMAKE_NM "C:/cmake-nm-test/tool-nm.exe")
|
|
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/platform-toolset.txt"
|
|
"${CMAKE_VS_PLATFORM_TOOLSET}")
|
|
|
|
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/AutoExportNm.c"
|
|
"void auto_export_nm(void) {}\n")
|
|
add_library(AutoExportNm SHARED
|
|
"${CMAKE_CURRENT_BINARY_DIR}/AutoExportNm.c")
|
|
set_property(TARGET AutoExportNm PROPERTY WINDOWS_EXPORT_ALL_SYMBOLS ON)
|