| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 ${ly_src_dir}/row_msa.cc | 43 ${ly_src_dir}/row_msa.cc |
| 44 ${ly_src_dir}/row_neon.cc | 44 ${ly_src_dir}/row_neon.cc |
| 45 ${ly_src_dir}/row_neon64.cc | 45 ${ly_src_dir}/row_neon64.cc |
| 46 ${ly_src_dir}/row_gcc.cc | 46 ${ly_src_dir}/row_gcc.cc |
| 47 ${ly_src_dir}/row_win.cc | 47 ${ly_src_dir}/row_win.cc |
| 48 ${ly_src_dir}/scale.cc | 48 ${ly_src_dir}/scale.cc |
| 49 ${ly_src_dir}/scale_any.cc | 49 ${ly_src_dir}/scale_any.cc |
| 50 ${ly_src_dir}/scale_argb.cc | 50 ${ly_src_dir}/scale_argb.cc |
| 51 ${ly_src_dir}/scale_common.cc | 51 ${ly_src_dir}/scale_common.cc |
| 52 ${ly_src_dir}/scale_mips.cc | 52 ${ly_src_dir}/scale_mips.cc |
| 53 ${ly_src_dir}/scale_msa.cc |
| 53 ${ly_src_dir}/scale_neon.cc | 54 ${ly_src_dir}/scale_neon.cc |
| 54 ${ly_src_dir}/scale_neon64.cc | 55 ${ly_src_dir}/scale_neon64.cc |
| 55 ${ly_src_dir}/scale_gcc.cc | 56 ${ly_src_dir}/scale_gcc.cc |
| 56 ${ly_src_dir}/scale_win.cc | 57 ${ly_src_dir}/scale_win.cc |
| 57 ${ly_src_dir}/video_common.cc | 58 ${ly_src_dir}/video_common.cc |
| 58 ) | 59 ) |
| 59 | 60 |
| 60 set(ly_unittest_sources | 61 set(ly_unittest_sources |
| 61 ${ly_base_dir}/unit_test/basictypes_test.cc | 62 ${ly_base_dir}/unit_test/basictypes_test.cc |
| 62 ${ly_base_dir}/unit_test/color_test.cc | 63 ${ly_base_dir}/unit_test/color_test.cc |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 else() | 124 else() |
| 124 message(FATAL_ERROR "TEST is set but unable to find gtest library") | 125 message(FATAL_ERROR "TEST is set but unable to find gtest library") |
| 125 endif() | 126 endif() |
| 126 endif() | 127 endif() |
| 127 | 128 |
| 128 add_executable(libyuv_unittest ${ly_unittest_sources}) | 129 add_executable(libyuv_unittest ${ly_unittest_sources}) |
| 129 target_link_libraries(libyuv_unittest ${ly_lib_name} ${GTEST_LIBRARY} pthread) | 130 target_link_libraries(libyuv_unittest ${ly_lib_name} ${GTEST_LIBRARY} pthread) |
| 130 if (JPEG_FOUND) | 131 if (JPEG_FOUND) |
| 131 target_link_libraries(libyuv_unittest ${JPEG_LIBRARY}) | 132 target_link_libraries(libyuv_unittest ${JPEG_LIBRARY}) |
| 132 endif() | 133 endif() |
| 133 | 134 |
| 134 if(NACL AND NACL_LIBC STREQUAL "newlib") | 135 if(NACL AND NACL_LIBC STREQUAL "newlib") |
| 135 target_link_libraries(libyuv_unittest glibc-compat) | 136 target_link_libraries(libyuv_unittest glibc-compat) |
| 136 endif() | 137 endif() |
| 137 | 138 |
| 138 target_link_libraries(libyuv_unittest gflags) | 139 target_link_libraries(libyuv_unittest gflags) |
| 139 | 140 |
| 140 endif() | 141 endif() |
| 141 | 142 |
| 142 install(TARGETS ${ly_lib_name} DESTINATION lib) | 143 install(TARGETS ${ly_lib_name} DESTINATION lib) |
| 143 install(FILES ${ly_header_files} DESTINATION include/libyuv) | 144 install(FILES ${ly_header_files} DESTINATION include/libyuv) |
| 144 install(FILES ${ly_inc_dir}/libyuv.h DESTINATION include/) | 145 install(FILES ${ly_inc_dir}/libyuv.h DESTINATION include/) |
| OLD | NEW |