reactos/dll/directx/ksproxy/CMakeLists.txt
Jérôme Gardou 23373acbb9 [CMAKE] Use modules instead of shared libraries
There is no need to compile our DLLs as shared libraries since we are
managing symbols exports and imports through spec files.

On my system, this reduces the configure-time by a factor of two.
2019-04-06 17:43:38 +02:00

31 lines
788 B
CMake

set_cpp(WITH_STL)
spec2def(ksproxy.ax ksproxy.spec)
list(APPEND SOURCE
allocator.cpp
basicaudio.cpp
classfactory.cpp
clockforward.cpp
cvpconfig.cpp
cvpvbiconfig.cpp
datatype.cpp
enum_mediatypes.cpp
enumpins.cpp
input_pin.cpp
interface.cpp
ksproxy.cpp
mediasample.cpp
node.cpp
output_pin.cpp
proxy.cpp
qualityforward.cpp
${CMAKE_CURRENT_BINARY_DIR}/ksproxy.def)
add_library(ksproxy MODULE ${SOURCE} ksproxy.rc)
set_module_type(ksproxy win32dll)
set_target_properties(ksproxy PROPERTIES SUFFIX ".ax")
target_link_libraries(ksproxy strmiids)
add_importlibs(ksproxy advapi32 ole32 setupapi ksuser msvcrt kernel32 ntdll)
add_dependencies(ksproxy dxsdk)
add_cd_file(TARGET ksproxy DESTINATION reactos/system32 FOR all)