diff options
author | Youngjae Cho <y0.cho@samsung.com> | 2021-03-22 13:32:53 +0900 |
---|---|---|
committer | Youngjae Cho <y0.cho@samsung.com> | 2021-03-22 13:55:11 +0900 |
commit | 4d0a7b25e9ee7bf9b5f3dd4d20873d23c60edf8f (patch) | |
tree | e7b65474e2524a2950dd7b624fb068054ba2af02 | |
parent | 3ad3285c8397ac4b146a6d5099217069b0bfa3cf (diff) | |
download | device-4d0a7b25e9ee7bf9b5f3dd4d20873d23c60edf8f.tar.gz device-4d0a7b25e9ee7bf9b5f3dd4d20873d23c60edf8f.tar.bz2 device-4d0a7b25e9ee7bf9b5f3dd4d20873d23c60edf8f.zip |
haltest: fix adding build source
Change-Id: I66e95043fa94a2a8cb6eb0a0bec9397625bb710e
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
-rw-r--r-- | haltest/CMakeLists.txt | 12 |
1 files 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) |