From 4d0a7b25e9ee7bf9b5f3dd4d20873d23c60edf8f Mon Sep 17 00:00:00 2001 From: Youngjae Cho Date: Mon, 22 Mar 2021 13:32:53 +0900 Subject: haltest: fix adding build source Change-Id: I66e95043fa94a2a8cb6eb0a0bec9397625bb710e Signed-off-by: Youngjae Cho --- haltest/CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/haltest/CMakeLists.txt b/haltest/CMakeLists.txt index f4180a4..80ee3cd 100644 --- a/haltest/CMakeLists.txt +++ b/haltest/CMakeLists.txt @@ -40,11 +40,11 @@ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS}") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie") -SET(src ${CMAKE_SOURCE_DIR}/haltest/main.cpp - ${CMAKE_SOURCE_DIR}/haltest/display.cpp - ${CMAKE_SOURCE_DIR}/haltest/battery.cpp - ${CMAKE_SOURCE_DIR}/haltest/board.cpp - ${CMAKE_SOURCE_DIR}/haltest/bezel.cpp) -ADD_EXECUTABLE(${PROJECT_NAME} ${src}) +FILE(GLOB HALTESTS "*.cpp") +#LIST(REMOVE_ITEM HALTESTS "${CMAKE_SOURCE_DIR}/haltest/bezel.cpp") + +SET(SRCS ${CMAKE_SOURCE_DIR}/haltest/main.cpp ${HALTESTS}) +ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS}) + TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${gtest_LDFLAGS} ${gtest_pkgs_LDFLAGS} -ldl ${HALAPI_LIBRARY}) INSTALL(TARGETS ${PROJECT_NAME} DESTINATION /usr/bin/hal) -- cgit v1.2.3