mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 06:15:52 +00:00
[CMAKE]
- 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
This commit is contained in:
parent
ddc4718357
commit
4ee1da42f1
365 changed files with 1420 additions and 1703 deletions
|
@ -1,14 +1,13 @@
|
|||
|
||||
set_unicode()
|
||||
|
||||
add_library(kbsdll SHARED kbsdll.c kbsdll.rc)
|
||||
add_library(kbsdll SHARED kbsdll.c kbsdll.rc ${CMAKE_CURRENT_BINARY_DIR}/kbsdll.def)
|
||||
|
||||
spec2def(kbsdll ${CMAKE_CURRENT_SOURCE_DIR}/kbsdll.spec ${CMAKE_CURRENT_BINARY_DIR}/kbsdll.def)
|
||||
spec2def(kbsdll.dll kbsdll.spec)
|
||||
|
||||
target_link_libraries(kbsdll ${CMAKE_CURRENT_BINARY_DIR}/kbsdll.def)
|
||||
target_link_libraries(kbsdll)
|
||||
|
||||
set_module_type(kbsdll win32dll)
|
||||
add_importlibs(kbsdll user32 comctl32 kernel32)
|
||||
|
||||
add_dependencies(kbsdll kbsdll_def)
|
||||
add_cab_target(kbsdll 1)
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
|
||||
spec2def(clb ${CMAKE_CURRENT_SOURCE_DIR}/clb.spec ${CMAKE_CURRENT_BINARY_DIR}/clb.def)
|
||||
spec2def(clb.dll clb.spec)
|
||||
|
||||
set_unicode()
|
||||
set_rc_compiler()
|
||||
|
||||
add_library(clb SHARED
|
||||
clb.c
|
||||
clb.rc)
|
||||
clb.rc
|
||||
${CMAKE_CURRENT_BINARY_DIR}/clb.def)
|
||||
|
||||
set_module_type(clb win32dll)
|
||||
|
||||
target_link_libraries(clb ${CMAKE_CURRENT_BINARY_DIR}/clb.def)
|
||||
add_dependencies(clb clb_def)
|
||||
|
||||
add_importlibs(clb user32 gdi32 comctl32 kernel32 ntdll)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue