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.
|
- cmake_minimum_required (VERSION 3.0.0)
- list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
-
- project (aptdec)
-
- add_executable(aptdec main.c color.c dsp.c filter.c image.c median.c pngio.c reg.c)
-
- # Math
- target_link_libraries(aptdec PRIVATE m)
-
- # PNG
- if(WIN32 AND NOT MINGW)
- find_package(PNG CONFIG REQUIRED)
- else()
- find_package(PNG REQUIRED)
- endif()
- target_link_libraries(aptdec PRIVATE PNG::PNG)
-
- # SndFile
- find_package(LibSndFile REQUIRED)
- target_link_libraries(aptdec PRIVATE ${LIBSNDFILE_LIBRARY})
|