@@ -14,9 +14,8 @@ jobs:
|
||||
fetch-depth: 0
|
||||
- name: Compile
|
||||
run: |
|
||||
cmake -B build -DBUILD_TEST=ON
|
||||
cmake --build build
|
||||
g++ ./src/device/EventBus.h ./test/main.cpp -o main
|
||||
- name: Run tests
|
||||
run: |
|
||||
./build/test
|
||||
./main
|
||||
|
||||
@@ -92,34 +92,3 @@ install(
|
||||
)
|
||||
endif()
|
||||
|
||||
################################################################################
|
||||
## Test
|
||||
################################################################################
|
||||
|
||||
if(${BUILD_TEST})
|
||||
|
||||
add_executable(test
|
||||
test/main.cpp
|
||||
)
|
||||
|
||||
set_property(
|
||||
TARGET
|
||||
test
|
||||
PROPERTY
|
||||
CXX_STANDARD 17
|
||||
)
|
||||
|
||||
target_include_directories(
|
||||
test
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
target_link_libraries(
|
||||
test
|
||||
PRIVATE
|
||||
midas::mfe
|
||||
${LIBS}
|
||||
)
|
||||
|
||||
endif()
|
||||
Reference in New Issue
Block a user