Skip to content

Commit

Permalink
cmake: exclude hid-rp-verify from all
Browse files Browse the repository at this point in the history
  • Loading branch information
benedekkupper committed Mar 15, 2024
1 parent ce590e8 commit d2b79e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cmake-single-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target hid-rp-verify

- name: Test
working-directory: ${{github.workspace}}/build
Expand Down
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,7 @@ foreach(HEADER_FILE ${HEADER_FILES})
"#include \"${FILE_RELATIVE_PATH}\"\n"
)
endforeach()
add_library(${PROJECT_NAME}-verify ${CMAKE_CURRENT_BINARY_DIR}/compilation_test.cpp)
add_library(${PROJECT_NAME}-verify EXCLUDE_FROM_ALL
${CMAKE_CURRENT_BINARY_DIR}/compilation_test.cpp
)
target_link_libraries(${PROJECT_NAME}-verify ${PROJECT_NAME})

0 comments on commit d2b79e5

Please sign in to comment.