mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-05 13:48:02 +08:00
46 lines
1.0 KiB
CMake
46 lines
1.0 KiB
CMake
#cmake_minimum_required (VERSION 3.8)
|
|
project(haltest C CXX)
|
|
set(SRCS_NORMAL
|
|
event_unittests.cc
|
|
mem_unittests.cc
|
|
sem_unittests.cc
|
|
graph_unittest.cc
|
|
msgq_unittests.cc
|
|
testmain.cc
|
|
input_unittests.cc
|
|
mutex_unittests.cc
|
|
timer_unittests.cc
|
|
)
|
|
set(SRCS_DTV
|
|
tvtestutils.cc
|
|
dmx_unittests.cc
|
|
tspes_unittests.cc
|
|
av_unittests.cc
|
|
tuner_unittests.cc)
|
|
|
|
set(SRCS_HAL ${SRCS_NORMAL})
|
|
if ( ENABLE_DTV )
|
|
set(SRCS_HAL ${SRCS_NORMAL} ${SRCS_DTV})
|
|
endif(ENABLE_DTV)
|
|
|
|
include_directories(
|
|
./
|
|
${DEPS_DIR}/includegtest
|
|
${DEPS_DIR}/include
|
|
${DEPS_DIR}/include/gui
|
|
${DEPS_DIR}/include/porting
|
|
${DEPS_DIR}/include/rfb
|
|
${DEPS_DIR}/include/pixman
|
|
)
|
|
|
|
message("HAL_EXTRA_LIBS=${HAL_EXTRA_LIBS}")
|
|
link_directories(${DEPS_DIR}/lib)
|
|
|
|
add_executable(hal_tests ${SRCS_HAL})
|
|
add_executable(hal_testsd ${SRCS_HAL})
|
|
|
|
target_link_libraries(hal_tests tvhal_static gtest)
|
|
target_link_libraries(hal_testsd tvhal gtest)
|
|
|
|
install (TARGETS hal_tests DESTINATION bin/tests)
|