mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00

- rewrite spec2def macro because 1. cmake gracefully handles def files as source files 2. cmake gracefully handles autogenerated files as source 3. it did not take into account the fact that all shared libraries haven't the .dll extension svn path=/branches/cmake-bringup/; revision=49358
28 lines
532 B
CMake
28 lines
532 B
CMake
|
|
set_unicode()
|
|
|
|
add_definitions(-DSUPPORT_UXTHEME)
|
|
|
|
list(APPEND SOURCE
|
|
aclui.c
|
|
checklist.c
|
|
guid.c
|
|
misc.c
|
|
sidcache.c
|
|
aclui.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/aclui.def)
|
|
|
|
spec2def(aclui.dll aclui.spec)
|
|
|
|
add_library(aclui SHARED
|
|
${CMAKE_CURRENT_BINARY_DIR}/aclui_precomp.h.gch
|
|
${SOURCE})
|
|
|
|
set_module_type(aclui win32dll)
|
|
|
|
|
|
add_importlibs(aclui user32 gdi32 comctl32 ole32 oleaut32 advapi32 uxtheme kernel32 ntdll)
|
|
|
|
add_pch(aclui ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
|
|
|
|
add_cab_target(aclui 1)
|