ab8d104426a1a3da86a71f485e866cf5810a4c95
[reactos.git] / base / applications / cmdutils / cscript / CMakeLists.txt
1
2 add_definitions(-DCSCRIPT_BUILD)
3 set(wscript_folder ${REACTOS_SOURCE_DIR}/base/applications/cmdutils/wscript)
4 include_directories(${wscript_folder})
5
6 list(APPEND SOURCE
7 ${wscript_folder}/arguments.c
8 ${wscript_folder}/host.c
9 ${wscript_folder}/main.c
10 ${wscript_folder}/wscript.h)
11
12 add_executable(cscript ${SOURCE} rsrc.rc)
13 add_idl_headers(cscript_idlheader ihost.idl)
14 add_typelib(ihost.idl)
15 set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/ihost.tlb)
16 target_link_libraries(cscript uuid wine)
17 set_module_type(cscript win32cui UNICODE)
18 add_importlibs(cscript shell32 oleaut32 ole32 advapi32 user32 msvcrt kernel32 ntdll)
19 add_dependencies(cscript stdole2 cscript_idlheader)
20 add_pch(cscript ${wscript_folder}/wscript.h SOURCE)
21 add_cd_file(TARGET cscript DESTINATION reactos/system32 FOR all)