[CMAKE] Some options are only supported by GCC, don't use them for clang
[reactos.git] / modules / rosapps / templates / dialog / CMakeLists.txt
1
2 list(APPEND SOURCE
3 dialog.c
4 memdlg.c
5 page1.c
6 page2.c
7 page3.c
8 trace.c)
9
10 add_executable(template_dialog ${SOURCE} dialog.rc)
11 set_module_type(template_dialog win32cui)
12 if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
13 target_compile_options(template_dialog PRIVATE -Wno-unused-but-set-variable)
14 endif()
15 add_importlibs(template_dialog user32 gdi32 comctl32 msvcrt kernel32 ntdll)
16 add_cd_file(TARGET template_dialog DESTINATION reactos/system32 FOR all)