CMakeLists.txt 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # WinPR: Windows Portable Runtime
  2. # libwinpr-rpc cmake build script
  3. #
  4. # Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
  5. #
  6. # Licensed under the Apache License, Version 2.0 (the "License");
  7. # you may not use this file except in compliance with the License.
  8. # You may obtain a copy of the License at
  9. #
  10. # http://www.apache.org/licenses/LICENSE-2.0
  11. #
  12. # Unless required by applicable law or agreed to in writing, software
  13. # distributed under the License is distributed on an "AS IS" BASIS,
  14. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. # See the License for the specific language governing permissions and
  16. # limitations under the License.
  17. winpr_module_add(
  18. rpc.c
  19. ndr.c
  20. ndr_array.c
  21. ndr_array.h
  22. ndr_context.c
  23. ndr_context.h
  24. ndr_correlation.c
  25. ndr_correlation.h
  26. ndr_pointer.c
  27. ndr_pointer.h
  28. ndr_private.c
  29. ndr_private.h
  30. ndr_simple.c
  31. ndr_simple.h
  32. ndr_string.c
  33. ndr_string.h
  34. ndr_structure.c
  35. ndr_structure.h
  36. ndr_union.c
  37. ndr_union.h
  38. midl.c)
  39. if(OPENSSL_FOUND)
  40. winpr_include_directory_add(${OPENSSL_INCLUDE_DIR})
  41. winpr_library_add_private(${OPENSSL_LIBRARIES})
  42. endif()
  43. if(WIN32)
  44. winpr_library_add_public(ws2_32 rpcrt4)
  45. endif()