reactos/modules/rosapps/lib/vfdlib/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

38 lines
943 B
CMake

set_cpp(WITH_RUNTIME WITH_EXCEPTIONS WITH_STL)
spec2def(vfd.dll vfdlib.spec ADD_IMPORTLIB)
add_message_headers(ANSI vfdmsg_lib.mc)
list(APPEND SOURCE
vfdctl.c
vfdfat.c
vfdguiopen.c
vfdguisave.c
vfdguitip.c
vfdguiut.c
vfdlib.c
vfdshcfact.cpp
vfdshext.cpp
vfdshmenu.cpp
vfdshprop.cpp
vfdshutil.cpp
vfdzip.c)
if(DBG)
add_definitions(-D_DEBUG)
endif()
add_library(vfd MODULE
${SOURCE}
vfdlib.rc
${CMAKE_CURRENT_BINARY_DIR}/vfd.def)
include_directories(${REACTOS_SOURCE_DIR}/modules/rosapps/include/vfd
${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib)
set_module_type(vfd win32dll ENTRYPOINT DllMain 12)
target_link_libraries(vfd zlib_solo uuid)
add_importlibs(vfd advapi32 user32 gdi32 shell32 comdlg32 comctl32 ole32 version psapi msvcrt kernel32 ntdll)
add_dependencies(vfd vfdmsg_lib)
add_cd_file(TARGET vfd DESTINATION reactos/system32 FOR all)