cmakelists_lcms.txt 995 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. project(lcms2)
  2. cmake_minimum_required(VERSION 2.8)
  3. include_directories(include)
  4. set(HEADERS
  5. include/lcms2.h
  6. include/lcms2_plugin.h
  7. )
  8. set(SOURCES
  9. src/cmscam02.c
  10. src/cmscgats.c
  11. src/cmscnvrt.c
  12. src/cmserr.c
  13. src/cmsgamma.c
  14. src/cmsgmt.c
  15. src/cmsintrp.c
  16. src/cmsio0.c
  17. src/cmsio1.c
  18. src/cmslut.c
  19. src/cmsmd5.c
  20. src/cmsmtrx.c
  21. src/cmsnamed.c
  22. src/cmsopt.c
  23. src/cmspack.c
  24. src/cmspcs.c
  25. src/cmsplugin.c
  26. src/cmsps2.c
  27. src/cmssamp.c
  28. src/cmssm.c
  29. src/cmstypes.c
  30. src/cmsvirt.c
  31. src/cmswtpnt.c
  32. src/cmsxform.c
  33. src/lcms2_internal.h
  34. )
  35. add_library(${PROJECT_NAME} STATIC ${HEADERS} ${SOURCES})
  36. set_target_properties(${PROJECT_NAME} PROPERTIES
  37. LIBRARY_OUTPUT_NAME "${PROJECT_NAME}"
  38. PUBLIC_HEADER "${HEADERS}"
  39. )
  40. install(TARGETS ${PROJECT_NAME}
  41. RUNTIME DESTINATION bin
  42. LIBRARY DESTINATION lib
  43. ARCHIVE DESTINATION lib
  44. PUBLIC_HEADER DESTINATION include
  45. )