diff options
| author | Weicao-CatilGrass <1992414357@qq.com> | 2026-03-09 14:48:15 +0800 |
|---|---|---|
| committer | Weicao-CatilGrass <1992414357@qq.com> | 2026-03-09 14:53:36 +0800 |
| commit | 239cd62103d617f0b2a9d58527843417a0db6ab4 (patch) | |
| tree | 2566d5ce8a5bfae7b92e7c83c011655753b83a0e /gui/win32/CMakeLists.txt | |
| parent | e02921ae75d41253406834bd7e214c3c8dec6f9b (diff) | |
Add Win32 GUI for butck_gui.exe
Diffstat (limited to 'gui/win32/CMakeLists.txt')
| -rw-r--r-- | gui/win32/CMakeLists.txt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gui/win32/CMakeLists.txt b/gui/win32/CMakeLists.txt new file mode 100644 index 0000000..2fc5f79 --- /dev/null +++ b/gui/win32/CMakeLists.txt @@ -0,0 +1,30 @@ +cmake_minimum_required(VERSION 3.10) +project(butck_gui VERSION 1.0.0 LANGUAGES C RC) + +set(CMAKE_C_STANDARD 11) +set(CMAKE_C_STANDARD_REQUIRED ON) + +enable_language(RC) + +add_executable(butck_gui WIN32 + src/main.c + src/butck_gui.rc +) + +if(WIN32) + target_compile_definitions(butck_gui PRIVATE + UNICODE + _UNICODE + _WIN32_WINNT=0x0A00 + ) + + target_link_libraries(butck_gui + user32 + gdi32 + comctl32 + ) +endif() + +set_target_properties(butck_gui PROPERTIES + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin +) |
