CMakeLists.txt
上传用户:king477883
上传日期:2021-03-01
资源大小:9553k
文件大小:1k
源码类别:

游戏引擎

开发平台:

C++ Builder

  1. # -*- cmake -*-
  2. project(llimage)
  3. include(00-Common)
  4. include(LLAddBuildTest)
  5. include(LLCommon)
  6. include(LLImage)
  7. include(LLMath)
  8. include(LLVFS)
  9. include(ZLIB)
  10. include_directories(
  11.     ${LLCOMMON_INCLUDE_DIRS}
  12.     ${LLMATH_INCLUDE_DIRS}
  13.     ${LLVFS_INCLUDE_DIRS}
  14.     ${PNG_INCLUDE_DIRS}
  15.     ${ZLIB_INCLUDE_DIRS}
  16.     )
  17. set(llimage_SOURCE_FILES
  18.     llimagebmp.cpp
  19.     llimage.cpp
  20.     llimagedxt.cpp
  21.     llimagej2c.cpp
  22.     llimagejpeg.cpp
  23.     llimagepng.cpp
  24.     llimagetga.cpp
  25.     llimageworker.cpp
  26.     llpngwrapper.cpp
  27.     )
  28. set(llimage_HEADER_FILES
  29.     CMakeLists.txt
  30.     llimage.h
  31.     llimagebmp.h
  32.     llimagedxt.h
  33.     llimagej2c.h
  34.     llimagejpeg.h
  35.     llimagepng.h
  36.     llimagetga.h
  37.     llimageworker.h
  38.     llmapimagetype.h
  39.     llpngwrapper.h
  40.     )
  41. set_source_files_properties(${llimage_HEADER_FILES}
  42.                             PROPERTIES HEADER_FILE_ONLY TRUE)
  43. list(APPEND llimage_SOURCE_FILES ${llimage_HEADER_FILES})
  44. add_library (llimage ${llimage_SOURCE_FILES})
  45. # Libraries on which this library depends, needed for Linux builds
  46. # Sort by high-level to low-level
  47. target_link_libraries(llimage
  48.     llcommon
  49.     llimagej2coj        # *HACK: In theory a noop for KDU builds?
  50.     ${JPEG_LIBRARIES}
  51.     ${PNG_LIBRARIES}
  52.     ${ZLIB_LIBRARIES}
  53.     )
  54. # Add tests
  55. #ADD_BUILD_TEST(llimageworker llimage)