| OLD | NEW |
| 1 cmake_minimum_required(VERSION 2.8) | 1 cmake_minimum_required(VERSION 2.8) |
| 2 | 2 |
| 3 # CMakeLists for libyuv | 3 # CMakeLists for libyuv |
| 4 # Originally created for "roxlu build system" to compile libyuv on windows | 4 # Originally created for "roxlu build system" to compile libyuv on windows |
| 5 # Run with -DTEST=ON to build unit tests | 5 # Run with -DTEST=ON to build unit tests |
| 6 option(TEST "Built unit tests" OFF) | 6 option(TEST "Built unit tests" OFF) |
| 7 | 7 |
| 8 set(ly_base_dir ${CMAKE_CURRENT_LIST_DIR}) | 8 set(ly_base_dir ${CMAKE_CURRENT_LIST_DIR}) |
| 9 set(ly_src_dir ${ly_base_dir}/source/) | 9 set(ly_src_dir ${ly_base_dir}/source/) |
| 10 set(ly_inc_dir ${ly_base_dir}/include) | 10 set(ly_inc_dir ${ly_base_dir}/include) |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 ${ly_base_dir}/unit_test/convert_test.cc | 63 ${ly_base_dir}/unit_test/convert_test.cc |
| 64 ${ly_base_dir}/unit_test/cpu_test.cc | 64 ${ly_base_dir}/unit_test/cpu_test.cc |
| 65 ${ly_base_dir}/unit_test/math_test.cc | 65 ${ly_base_dir}/unit_test/math_test.cc |
| 66 ${ly_base_dir}/unit_test/planar_test.cc | 66 ${ly_base_dir}/unit_test/planar_test.cc |
| 67 ${ly_base_dir}/unit_test/rotate_argb_test.cc | 67 ${ly_base_dir}/unit_test/rotate_argb_test.cc |
| 68 ${ly_base_dir}/unit_test/rotate_test.cc | 68 ${ly_base_dir}/unit_test/rotate_test.cc |
| 69 ${ly_base_dir}/unit_test/scale_argb_test.cc | 69 ${ly_base_dir}/unit_test/scale_argb_test.cc |
| 70 ${ly_base_dir}/unit_test/scale_test.cc | 70 ${ly_base_dir}/unit_test/scale_test.cc |
| 71 ${ly_base_dir}/unit_test/unit_test.cc | 71 ${ly_base_dir}/unit_test/unit_test.cc |
| 72 ${ly_base_dir}/unit_test/video_common_test.cc | 72 ${ly_base_dir}/unit_test/video_common_test.cc |
| 73 ${ly_base_dir}/unit_test/version_test.cc | |
| 74 ) | 73 ) |
| 75 | 74 |
| 76 set(ly_header_files | 75 set(ly_header_files |
| 77 ${ly_inc_dir}/libyuv/basic_types.h | 76 ${ly_inc_dir}/libyuv/basic_types.h |
| 78 ${ly_inc_dir}/libyuv/compare.h | 77 ${ly_inc_dir}/libyuv/compare.h |
| 79 ${ly_inc_dir}/libyuv/convert.h | 78 ${ly_inc_dir}/libyuv/convert.h |
| 80 ${ly_inc_dir}/libyuv/convert_argb.h | 79 ${ly_inc_dir}/libyuv/convert_argb.h |
| 81 ${ly_inc_dir}/libyuv/convert_from.h | 80 ${ly_inc_dir}/libyuv/convert_from.h |
| 82 ${ly_inc_dir}/libyuv/convert_from_argb.h | 81 ${ly_inc_dir}/libyuv/convert_from_argb.h |
| 83 ${ly_inc_dir}/libyuv/cpu_id.h | 82 ${ly_inc_dir}/libyuv/cpu_id.h |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 endif() | 129 endif() |
| 131 endif() | 130 endif() |
| 132 | 131 |
| 133 if(NACL AND NACL_LIBC STREQUAL "newlib") | 132 if(NACL AND NACL_LIBC STREQUAL "newlib") |
| 134 target_link_libraries(libyuv_unittest glibc-compat) | 133 target_link_libraries(libyuv_unittest glibc-compat) |
| 135 endif() | 134 endif() |
| 136 | 135 |
| 137 install(TARGETS ${ly_lib_name} DESTINATION lib) | 136 install(TARGETS ${ly_lib_name} DESTINATION lib) |
| 138 install(FILES ${ly_header_files} DESTINATION include/libyuv) | 137 install(FILES ${ly_header_files} DESTINATION include/libyuv) |
| 139 install(FILES ${ly_inc_dir}/libyuv.h DESTINATION include/) | 138 install(FILES ${ly_inc_dir}/libyuv.h DESTINATION include/) |
| OLD | NEW |