CMAKE_MINIMUM_REQUIRED(VERSION 2.6) SET(fw_name "mm-utility") PROJECT(${fw_name}) SET(INC_DIR common/include ) INSTALL( DIRECTORY ${INC_DIR}/ DESTINATION include/mmf FILES_MATCHING PATTERN "*_debug.h" EXCLUDE PATTERN "*_internal.h" EXCLUDE PATTERN "*_private.h" EXCLUDE PATTERN "${INC_DIR}/*.h" ) ADD_SUBDIRECTORY(common) ADD_SUBDIRECTORY(bmp) ADD_SUBDIRECTORY(gif) ADD_SUBDIRECTORY(imgcv) ADD_SUBDIRECTORY(imgp) ADD_SUBDIRECTORY(jpeg) ADD_SUBDIRECTORY(png) ADD_SUBDIRECTORY(magick) IF(UNIX) ADD_CUSTOM_TARGET (distclean @echo cleaning for source distribution) ADD_CUSTOM_COMMAND( DEPENDS clean COMMENT "distribution clean" COMMAND find ARGS . -not -name config.cmake -and \( -name tester.c -or -name Testing -or -name CMakeFiles -or -name cmake.depends -or -name cmake.check_depends -or -name CMakeCache.txt -or -name cmake.check_cache -or -name *.cmake -or -name Makefile -or -name core -or -name core.* -or -name gmon.out -or -name install_manifest.txt -or -name *.pc -or -name *~ \) | grep -v TC | xargs rm -rf TARGET distclean VERBATIM ) ENDIF(UNIX)