mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00

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
20 lines
470 B
CMake
20 lines
470 B
CMake
|
|
|
|
|
|
add_definitions(-DUNICODE -D_UNICODE)
|
|
|
|
spec2def(powrprof ${CMAKE_CURRENT_SOURCE_DIR}/powrprof.spec ${CMAKE_CURRENT_BINARY_DIR}/powrprof.def)
|
|
|
|
add_library(powrprof SHARED powrprof.c powrprof.rc)
|
|
|
|
set_target_properties(powrprof PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
|
|
|
|
target_link_libraries(powrprof
|
|
${CMAKE_CURRENT_BINARY_DIR}/powrprof.def
|
|
wine
|
|
-ladvapi32
|
|
-luser32
|
|
-lcomctl32
|
|
mingw_common)
|
|
|
|
add_dependencies(powrprof powrprof_def psdk)
|