Files
Chuck Atkins 03e56cd338 Tests: Add cases covering nm handling for WINDOWS_EXPORT_ALL_SYMBOLS
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
2026-08-05 10:58:08 -04:00

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)