mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-13 01:54:29 -04:00
CMake: comment on BUILD_AS_TEST
This commit is contained in:
parent
daaf16d331
commit
e66f81f6ee
2 changed files with 3 additions and 0 deletions
|
@ -42,6 +42,8 @@ function( calamares_add_test )
|
|||
Qt5::Test
|
||||
)
|
||||
calamares_automoc( ${TEST_NAME} )
|
||||
# We specifically pass in the source directory of the test-being-
|
||||
# compiled, so that it can find test-files in that source dir.
|
||||
target_compile_definitions( ${TEST_NAME} PRIVATE -DBUILD_AS_TEST="${CMAKE_CURRENT_SOURCE_DIR}" ${TEST_DEFINITIONS} )
|
||||
if( TEST_GUI )
|
||||
target_link_libraries( ${TEST_NAME} calamaresui Qt5::Gui )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue