PageRenderTime 32ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/llxml/CMakeLists.txt

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 69 lines | 46 code | 15 blank | 8 comment | 1 complexity | 05e946c64262aadeb40ba47213740883 MD5 | raw file
Possible License(s): LGPL-2.1
  1. # -*- cmake -*-
  2. project(llxml)
  3. include(00-Common)
  4. include(LLCommon)
  5. include(LLMath)
  6. include(LLVFS)
  7. include(LLXML)
  8. include_directories(
  9. ${LLCOMMON_INCLUDE_DIRS}
  10. ${LLMATH_INCLUDE_DIRS}
  11. ${LLVFS_INCLUDE_DIRS}
  12. )
  13. set(llxml_SOURCE_FILES
  14. llcontrol.cpp
  15. llxmlnode.cpp
  16. llxmlparser.cpp
  17. llxmltree.cpp
  18. )
  19. set(llxml_HEADER_FILES
  20. CMakeLists.txt
  21. llcontrol.h
  22. llcontrolgroupreader.h
  23. llxmlnode.h
  24. llxmlparser.h
  25. llxmltree.h
  26. )
  27. set_source_files_properties(${llxml_HEADER_FILES}
  28. PROPERTIES HEADER_FILE_ONLY TRUE)
  29. list(APPEND llxml_SOURCE_FILES ${llxml_HEADER_FILES})
  30. add_library (llxml ${llxml_SOURCE_FILES})
  31. # Libraries on which this library depends, needed for Linux builds
  32. # Sort by high-level to low-level
  33. target_link_libraries( llxml
  34. llvfs
  35. llmath
  36. ${EXPAT_LIBRARIES}
  37. )
  38. # tests
  39. if (LL_TESTS)
  40. # unit tests
  41. SET(llxml_TEST_SOURCE_FILES
  42. # none yet!
  43. )
  44. LL_ADD_PROJECT_UNIT_TESTS(llxml "${llxml_TEST_SOURCE_FILES}")
  45. # integration tests
  46. # set(TEST_DEBUG on)
  47. set(test_libs
  48. ${LLXML_LIBRARIES}
  49. ${WINDOWS_LIBRARIES}
  50. ${LLMATH_LIBRARIES}
  51. ${LLCOMMON_LIBRARIES}
  52. )
  53. LL_ADD_INTEGRATION_TEST(llcontrol "" "${test_libs}")
  54. endif (LL_TESTS)