[CMAKE]
[reactos.git] / dll / directx / ksproxy / CMakeLists.txt
1
2 spec2def(ksproxy.ax ksproxy.spec)
3
4 add_definitions(
5 -D_DLL -D__USE_CRTIMP
6 -DNATIVE_CPP_INCLUDE=${REACTOS_SOURCE_DIR}/include/c++
7 -DNATIVE_C_INCLUDE=${REACTOS_SOURCE_DIR}/include/crt)
8
9 include_directories(BEFORE ${REACTOS_SOURCE_DIR}/include/c++/stlport)
10
11 add_library(ksproxy SHARED
12 allocator.cpp
13 basicaudio.cpp
14 classfactory.cpp
15 clockforward.cpp
16 cvpconfig.cpp
17 cvpvbiconfig.cpp
18 datatype.cpp
19 enum_mediatypes.cpp
20 enumpins.cpp
21 input_pin.cpp
22 interface.cpp
23 ksproxy.cpp
24 ksproxy.rc
25 mediasample.cpp
26 node.cpp
27 output_pin.cpp
28 proxy.cpp
29 qualityforward.cpp
30 ${CMAKE_CURRENT_BINARY_DIR}/ksproxy.def)
31
32 set_entrypoint(ksproxy 0)
33 set_target_properties(ksproxy PROPERTIES SUFFIX ".ax")
34 if(MSVC)
35 set_target_properties(ksproxy PROPERTIES COMPILE_FLAGS "/GR-")
36 else()
37 #FIXME : can't build if this is enabled, check if this is needed
38 #set_target_properties(ksproxy PROPERTIES COMPILE_FLAGS "-fno-exceptions -fno-rtti")
39 target_link_libraries(ksproxy -lsupc++ -lgcc -lmingw32 -lcoldname)
40 endif(MSVC)
41
42 target_link_libraries(ksproxy stlport strmiids)
43
44 add_importlibs(ksproxy
45 advapi32
46 ole32
47 setupapi
48 ksuser
49 msvcrt
50 kernel32
51 ntdll)
52
53 add_dependencies(ksproxy psdk)
54
55 add_cd_file(TARGET ksproxy DESTINATION reactos/system32 FOR all)