File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # ######################################################################################################################
2+ # Copyright (C) 2026 Advanced Micro Devices, Inc.
3+ # ######################################################################################################################
4+
5+ if (WIN32 )
6+ configure_dir (${TEST_DIR} /versionresource TARGETS all BUILD_DIR_VAR BUILD_DIR )
7+ test_expect_file (${BUILD_DIR} /mylib_version.rc )
8+ test_expect_file (${BUILD_DIR} /myapp_version.rc )
9+ endif ()
Original file line number Diff line number Diff line change 1+ # ######################################################################################################################
2+ # Copyright (C) 2026 Advanced Micro Devices, Inc.
3+ # ######################################################################################################################
4+
5+ cmake_minimum_required (VERSION 3.5...3.31.0 )
6+ project (versionresource VERSION 1.2.3 LANGUAGES CXX )
7+
8+ find_package (ROCmCMakeBuildTools )
9+
10+ include (ROCMSetupVersion )
11+
12+ add_library (mylib SHARED mylib.cpp )
13+ rocm_add_version_resource (mylib "MyLib" "Test version resource library" )
14+
15+ add_executable (myapp myapp.cpp )
16+ target_link_libraries (myapp mylib )
17+ rocm_add_version_resource (myapp "MyApp" "Test version resource application" )
Original file line number Diff line number Diff line change 1+ // Copyright (C) 2026 Advanced Micro Devices, Inc.
2+
3+ #ifdef _WIN32
4+ __declspec (dllimport)
5+ #endif
6+ void mylib_func ();
7+
8+ int main () {
9+ mylib_func ();
10+ return 0 ;
11+ }
Original file line number Diff line number Diff line change 1+ // Copyright (C) 2026 Advanced Micro Devices, Inc.
2+
3+ #ifdef _WIN32
4+ __declspec (dllexport)
5+ #endif
6+ void mylib_func () {}
You can’t perform that action at this time.
0 commit comments