reactos/dll/win32/hnetcfg/CMakeLists.txt
Jérôme Gardou 23373acbb9 [CMAKE] Use modules instead of shared libraries
There is no need to compile our DLLs as shared libraries since we are
managing symbols exports and imports through spec files.

On my system, this reduces the configure-time by a factor of two.
2019-04-06 17:43:38 +02:00

35 lines
929 B
CMake

add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
spec2def(hnetcfg.dll hnetcfg.spec)
list(APPEND SOURCE
apps.c
hnetcfg.c
manager.c
policy.c
port.c
profile.c
service.c
precomp.h)
add_library(hnetcfg MODULE
${SOURCE}
hnetcfg.rc
${CMAKE_CURRENT_BINARY_DIR}/hnetcfg.def)
add_typelib(hnetcfg_tlb.idl)
list(APPEND hnetcfg_rc_deps
${CMAKE_CURRENT_SOURCE_DIR}/hnetcfg.rgs
${CMAKE_CURRENT_SOURCE_DIR}/hnetcfg_tlb.rgs
${CMAKE_CURRENT_BINARY_DIR}/hnetcfg_tlb.tlb)
set_source_files_properties(hnetcfg.rc PROPERTIES OBJECT_DEPENDS "${hnetcfg_rc_deps}")
set_module_type(hnetcfg win32dll)
add_dependencies(hnetcfg stdole2)
target_link_libraries(hnetcfg wine uuid)
add_importlibs(hnetcfg ole32 oleaut32 advapi32 msvcrt kernel32 ntdll)
add_pch(hnetcfg precomp.h SOURCE)
add_cd_file(TARGET hnetcfg DESTINATION reactos/system32 FOR all)