Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate CMake function #186

Open
BoskiJanusz opened this issue Nov 9, 2024 · 0 comments
Open

Separate CMake function #186

BoskiJanusz opened this issue Nov 9, 2024 · 0 comments

Comments

@BoskiJanusz
Copy link
Contributor

function(add_staff_test TEST_NAME TEST_SRC)
add_executable(${TEST_NAME} ${TEST_SRC})
target_compile_options(${TEST_NAME} PRIVATE ${COMMON_COMPILE_OPTIONS})
target_include_directories(${TEST_NAME} PRIVATE ${COMMON_INCLUDE_DIRS})
target_link_libraries(${TEST_NAME} PRIVATE ${COMMON_LIBS})
add_test(NAME ${TEST_NAME} COMMAND ${TEST_NAME} WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
endfunction()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant