You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 4 година
123456789101112131415161718192021
  1. cmake_minimum_required (VERSION 3.0.0)
  2. list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
  3. project (aptdec)
  4. add_executable(aptdec main.c color.c dsp.c filter.c image.c median.c pngio.c reg.c)
  5. # Math
  6. target_link_libraries(aptdec PRIVATE m)
  7. # PNG
  8. if(WIN32 AND NOT MINGW)
  9. find_package(PNG CONFIG REQUIRED)
  10. else()
  11. find_package(PNG REQUIRED)
  12. endif()
  13. target_link_libraries(aptdec PRIVATE PNG::PNG)
  14. # SndFile
  15. find_package(LibSndFile REQUIRED)
  16. target_link_libraries(aptdec PRIVATE ${LIBSNDFILE_LIBRARY})