PageRenderTime 33ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/llimage/CMakeLists.txt

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 75 lines | 58 code | 13 blank | 4 comment | 1 complexity | 8919496b3a85511c22c7fcf919775594 MD5 | raw file
Possible License(s): LGPL-2.1
  1. # -*- cmake -*-
  2. project(llimage)
  3. include(00-Common)
  4. include(LLCommon)
  5. include(LLImage)
  6. include(LLMath)
  7. include(LLVFS)
  8. include(ZLIB)
  9. include(LLAddBuildTest)
  10. include(Tut)
  11. include_directories(
  12. ${LLCOMMON_INCLUDE_DIRS}
  13. ${LLMATH_INCLUDE_DIRS}
  14. ${LLVFS_INCLUDE_DIRS}
  15. ${PNG_INCLUDE_DIRS}
  16. ${ZLIB_INCLUDE_DIRS}
  17. )
  18. set(llimage_SOURCE_FILES
  19. llimagebmp.cpp
  20. llimage.cpp
  21. llimagedimensionsinfo.cpp
  22. llimagedxt.cpp
  23. llimagej2c.cpp
  24. llimagejpeg.cpp
  25. llimagepng.cpp
  26. llimagetga.cpp
  27. llimageworker.cpp
  28. llpngwrapper.cpp
  29. )
  30. set(llimage_HEADER_FILES
  31. CMakeLists.txt
  32. llimage.h
  33. llimagebmp.h
  34. llimagedimensionsinfo.h
  35. llimagedxt.h
  36. llimagej2c.h
  37. llimagejpeg.h
  38. llimagepng.h
  39. llimagetga.h
  40. llimageworker.h
  41. llmapimagetype.h
  42. llpngwrapper.h
  43. )
  44. set_source_files_properties(${llimage_HEADER_FILES}
  45. PROPERTIES HEADER_FILE_ONLY TRUE)
  46. list(APPEND llimage_SOURCE_FILES ${llimage_HEADER_FILES})
  47. add_library (llimage ${llimage_SOURCE_FILES})
  48. # Libraries on which this library depends, needed for Linux builds
  49. # Sort by high-level to low-level
  50. target_link_libraries(llimage
  51. llcommon
  52. ${JPEG_LIBRARIES}
  53. ${PNG_LIBRARIES}
  54. ${ZLIB_LIBRARIES}
  55. )
  56. # Add tests
  57. if (LL_TESTS)
  58. SET(llimage_TEST_SOURCE_FILES
  59. llimageworker.cpp
  60. )
  61. LL_ADD_PROJECT_UNIT_TESTS(llimage "${llimage_TEST_SOURCE_FILES}")
  62. endif (LL_TESTS)