-ADD_TYPELIB(jsglobal jsglobal.idl)
+add_typelib(jsglobal jsglobal.idl)
add_dependencies(jsglobal stdole2)
remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(
-D__WINESRC__
+ -D_USE_MATH_DEFINES
-D_DLL
-D__USE_CRTIMP)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-add_library(jscript SHARED
+spec2def(jscript.dll jscript.spec)
+
+list(APPEND SOURCE
activex.c
date.c
dispex.c
function.c
global.c
rsrc.rc
- jscript.def)
+ ${CMAKE_CURRENT_BINARY_DIR}/jscript.def)
-if(NOT MSVC)
- set_source_files_properties(jscript.def PROPERTIES EXTERNAL_OBJECT TRUE)
-endif()
+add_library(jscript SHARED ${SOURCE})
set_module_type(jscript win32dll)