mirror of
https://github.com/reactos/reactos.git
synced 2024-10-02 15:34:13 +00:00
01a4049405
- unify spec2def and add_importlib_target, thanks to cmake_parse_arguments. - also generate stub files only when necessary. - better precompiled header support, commented out as it wasn't tested on any other machine than mine, and it depends on cmake features which don't exist yet. For now only for gcc toolchain svn path=/trunk/; revision=52460
21 lines
452 B
CMake
21 lines
452 B
CMake
|
|
set_unicode()
|
|
|
|
spec2def(ntlanman.dll ntlanman.spec GENERATE_STUBS)
|
|
|
|
list(APPEND SOURCE
|
|
ntlanman.c
|
|
ntlanman.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/ntlanman_stubs.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/ntlanman.def)
|
|
|
|
add_library(ntlanman SHARED ${SOURCE})
|
|
|
|
set_module_type(ntlanman win32dll)
|
|
|
|
target_link_libraries(ntlanman wine)
|
|
|
|
add_importlibs(ntlanman netapi32 msvcrt kernel32 ntdll)
|
|
|
|
add_cd_file(TARGET ntlanman DESTINATION reactos/system32 FOR all)
|