[VFD] Build with debug information on debug builds
[reactos.git] / modules / rosapps / lib / vfdlib / CMakeLists.txt
1 set_cpp(WITH_RUNTIME WITH_EXCEPTIONS WITH_STL)
2
3 spec2def(vfd.dll vfdlib.spec ADD_IMPORTLIB)
4
5 add_message_headers(ANSI vfdmsg_lib.mc)
6
7 list(APPEND SOURCE
8 vfdctl.c
9 vfdfat.c
10 vfdguiopen.c
11 vfdguisave.c
12 vfdguitip.c
13 vfdguiut.c
14 vfdlib.c
15 vfdshcfact.cpp
16 vfdshext.cpp
17 vfdshmenu.cpp
18 vfdshprop.cpp
19 vfdshutil.cpp
20 vfdzip.c)
21
22 if(DBG)
23 add_definitions(-D_DEBUG)
24 endif()
25
26 add_library(vfd SHARED
27 ${SOURCE}
28 vfdlib.rc
29 ${CMAKE_CURRENT_BINARY_DIR}/vfdlib.def)
30
31 include_directories(${REACTOS_SOURCE_DIR}/modules/rosapps/include/vfd
32 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib)
33 set_module_type(vfd win32dll ENTRYPOINT DllMain 12)
34 target_link_libraries(vfd zlib_solo uuid)
35 add_importlibs(vfd advapi32 user32 gdi32 shell32 comdlg32 comctl32 ole32 version psapi msvcrt kernel32 ntdll)
36 add_dependencies(vfd vfdmsg_lib)
37 add_cd_file(TARGET vfd DESTINATION reactos/system32 FOR all)