xref: /reactos/dll/win32/vbscript/CMakeLists.txt (revision 0623a6f8)
1
2add_definitions(-D__WINESRC__)
3include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
4spec2def(vbscript.dll vbscript.spec)
5
6list(APPEND SOURCE
7    compile.c
8    global.c
9    interp.c
10    lex.c
11    parser.tab.c
12    regexp.c
13    utils.c
14    vbdisp.c
15    vbregexp.c
16    vbscript.c
17    vbscript_main.c
18    precomp.h)
19
20list(APPEND vbscript_rc_deps
21    ${CMAKE_CURRENT_SOURCE_DIR}/vbscript_classes.rgs
22    ${CMAKE_CURRENT_SOURCE_DIR}/vbsglobal.rgs
23    ${CMAKE_CURRENT_SOURCE_DIR}/vbsregexp10.rgs
24    ${CMAKE_CURRENT_SOURCE_DIR}/vbsregexp55.rgs
25    ${CMAKE_CURRENT_BINARY_DIR}/vbsglobal.tlb
26    ${CMAKE_CURRENT_BINARY_DIR}/vbsregexp10.tlb
27    ${CMAKE_CURRENT_BINARY_DIR}/vbsregexp55.tlb)
28
29set_source_files_properties(vbscript.rc PROPERTIES OBJECT_DEPENDS "${vbscript_rc_deps}")
30add_idl_headers(vbscript_idlheader vbscript_classes.idl vbsglobal.idl vbsregexp55.idl)
31add_typelib(vbsglobal.idl vbsregexp10.idl vbsregexp55.idl)
32
33add_library(vbscript SHARED
34    ${SOURCE}
35    vbscript.rc
36    ${CMAKE_CURRENT_BINARY_DIR}/vbscript.def)
37
38set_module_type(vbscript win32dll)
39target_link_libraries(vbscript uuid wine)
40add_importlibs(vbscript oleaut32 ole32 user32 msvcrt kernel32 ntdll)
41add_dependencies(vbscript vbscript_idlheader stdole2)
42add_pch(vbscript precomp.h SOURCE)
43add_cd_file(TARGET vbscript DESTINATION reactos/system32 FOR all)
44