mirror of
https://github.com/reactos/reactos.git
synced 2024-11-05 06:09:58 +00:00
174808a463
This allows linking to libraries with "-lfoo". svn path=/branches/cmake-bringup/; revision=48796
21 lines
731 B
CMake
21 lines
731 B
CMake
|
|
set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES> -L${REACTOS_BINARY_DIR}/lib/3rdparty/mingw")
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|
|
|
add_definitions(-D__WINESRC__)
|
|
add_definitions(-DCRTDLL)
|
|
|
|
spec2def(msvcrt40 ${CMAKE_CURRENT_SOURCE_DIR}/msvcrt40.spec ${CMAKE_CURRENT_BINARY_DIR}/msvcrt40.def)
|
|
|
|
add_library(msvcrt40 SHARED msvcrt40.c)
|
|
|
|
set_target_properties(msvcrt40 PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
|
|
|
|
target_link_libraries(msvcrt40
|
|
${CMAKE_CURRENT_BINARY_DIR}/msvcrt40.def
|
|
wine
|
|
mingw_common
|
|
-lmsvcrt)
|
|
|
|
add_dependencies(msvcrt40 msvcrt40_def psdk)
|