Archived
1
Fork 0
This repository has been archived on 2025-04-09. You can view files and clone it, but cannot push or open issues or pull requests.
compress/wavelet/CMakeLists.txt
2021-04-21 14:18:43 +02:00

16 lines
419 B
CMake

if(EnableBSP)
file(GLOB sources *.cpp)
file(GLOB headers *.hpp)
else()
set(sources jcmp.cpp jcmp_image_test.cpp)
endif()
find_package(PNG REQUIRED)
include_directories(SYSTEM ${PNG_INCLUDE_DIRS})
set(libs ${libs} ${PNG_LIBRARIES})
foreach(source ${sources})
get_filename_component(exec ${source} NAME_WE)
add_executable(${exec} ${source} ${headers})
target_link_libraries(${exec} ${libs})
endforeach()