CMakeLists.txt 440 B

123456789101112131415161718192021
  1. project(liblcms2 C)
  2. #
  3. include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include")
  4. #
  5. file(GLOB SRCS src/*.c)
  6. file(GLOB HDRS include/*.h)
  7. #
  8. set(LIBTARGET "lcms2")
  9. #
  10. add_library(${LIBTARGET} STATIC ${SRCS} ${HDRS})
  11. #
  12. if(MSVC)
  13. set_target_properties(${LIBTARGET} PROPERTIES PREFIX "lib")
  14. endif(MSVC)
  15. #
  16. set_target_properties(${LIBTARGET}
  17. PROPERTIES
  18. OUTPUT_NAME "${LIBTARGET}"
  19. ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/thirdparty/lib)
  20. #