mirror of
https://github.com/reactos/reactos.git
synced 2025-01-12 09:07:54 +00:00
c702cc0d5a
Generalize CMAKE_C_CREATE_SHARED_LIBRARY and remove per project instances. Thanks to Amine for regexxer tool discovery ;) svn path=/branches/cmake-bringup/; revision=48804
18 lines
436 B
CMake
18 lines
436 B
CMake
|
|
|
|
|
|
add_definitions(-DUNICODE -D_UNICODE)
|
|
|
|
spec2def(batt ${CMAKE_CURRENT_SOURCE_DIR}/batt.spec ${CMAKE_CURRENT_BINARY_DIR}/batt.def)
|
|
|
|
add_library(batt SHARED
|
|
${CMAKE_CURRENT_SOURCE_DIR}/batt.c
|
|
${CMAKE_CURRENT_SOURCE_DIR}/batt.rc)
|
|
|
|
set_target_properties(batt PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
|
|
|
|
target_link_libraries(batt
|
|
${CMAKE_CURRENT_BINARY_DIR}/batt.def
|
|
-lkernel32)
|
|
|
|
add_dependencies(batt batt_def psdk)
|