PageRenderTime 42ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/llkdu/CMakeLists.txt

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 65 lines | 45 code | 13 blank | 7 comment | 2 complexity | 5456549c2b4af529a4b40e9e459a9c3c MD5 | raw file
Possible License(s): LGPL-2.1
  1. # -*- cmake -*-
  2. project(llkdu)
  3. # Visual Studio 2005 has a dumb bug that causes it to fail compilation
  4. # of KDU if building with both optimisation and /WS (treat warnings as
  5. # errors), even when the specific warnings that make it croak are
  6. # disabled.
  7. #set(VS_DISABLE_FATAL_WARNINGS ON)
  8. include(00-Common)
  9. include(LLCommon)
  10. include(LLImage)
  11. include(LLKDU)
  12. include(LLMath)
  13. include_directories(
  14. ${LLCOMMON_INCLUDE_DIRS}
  15. ${LLIMAGE_INCLUDE_DIRS}
  16. ${KDU_INCLUDE_DIR}
  17. ${LLKDU_INCLUDE_DIRS}
  18. ${LLMATH_INCLUDE_DIRS}
  19. )
  20. set(llkdu_SOURCE_FILES
  21. llimagej2ckdu.cpp
  22. llkdumem.cpp
  23. )
  24. set(llkdu_HEADER_FILES
  25. CMakeLists.txt
  26. llimagej2ckdu.h
  27. llkdumem.h
  28. )
  29. set_source_files_properties(${llkdu_HEADER_FILES}
  30. PROPERTIES HEADER_FILE_ONLY TRUE)
  31. list(APPEND llkdu_SOURCE_FILES ${llkdu_HEADER_FILES})
  32. if (USE_KDU)
  33. add_library (${LLKDU_LIBRARIES} ${llkdu_SOURCE_FILES})
  34. # Add tests
  35. if (LL_TESTS)
  36. include(LLAddBuildTest)
  37. include(Tut)
  38. SET(llkdu_TEST_SOURCE_FILES
  39. llimagej2ckdu.cpp
  40. )
  41. SET(llkdu_test_additional_HEADER_FILES
  42. llimagej2ckdu.h
  43. llkdumem.h
  44. lltut.h
  45. )
  46. SET(llkdu_test_additional_INCLUDE_DIRS
  47. ${KDU_INCLUDE_DIR}
  48. ${LLKDU_INCLUDE_DIRS}
  49. )
  50. LL_ADD_PROJECT_UNIT_TESTS(llkdu "${llkdu_TEST_SOURCE_FILES}")
  51. endif (LL_TESTS)
  52. endif (USE_KDU)