[CMAKE]
[reactos.git] / dll / win32 / mscms / CMakeLists.txt
1
2 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")
3
4 add_definitions(-D__WINESRC__)
5
6 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
7
8 spec2def(mscms ${CMAKE_CURRENT_SOURCE_DIR}/mscms.spec ${CMAKE_CURRENT_BINARY_DIR}/mscms.def)
9
10 add_library(mscms SHARED
11 handle.c
12 icc.c
13 mscms_main.c
14 profile.c
15 stub.c
16 transform.c
17 version.rc)
18
19 set_target_properties(mscms PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
20
21 target_link_libraries(mscms
22 ${CMAKE_CURRENT_BINARY_DIR}/mscms.def
23 wine
24 mingw_common)
25
26 add_dependencies(mscms mscms_def psdk)