mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 14:36:01 +03:00
Cleanup CMake (output)
This commit is contained in:
parent
f074c1a07b
commit
1104883fba
2 changed files with 8 additions and 7 deletions
|
@ -1,14 +1,16 @@
|
|||
list(APPEND vfsPlugins "suffix")
|
||||
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/win")
|
||||
list(APPEND vfsPlugins "win")
|
||||
endif()
|
||||
file(GLOB vfsPlugins RELATIVE ${CMAKE_CURRENT_LIST_DIR} "*")
|
||||
|
||||
foreach(vfsPlugin ${vfsPlugins})
|
||||
message(STATUS "Add vfsPlugin in dir: ${vfsPlugin}")
|
||||
if(NOT IS_DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/${vfsPlugin}")
|
||||
continue()
|
||||
endif()
|
||||
|
||||
add_subdirectory("${vfsPlugin}")
|
||||
|
||||
if(UNIT_TESTING AND IS_DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/${vfsPlugin}/test")
|
||||
message(STATUS "Add vfsPlugin tests in dir: ${vfsPlugin}")
|
||||
add_subdirectory("${vfsPlugin}/test" "${vfsPlugin}_test")
|
||||
message(STATUS "Added vfsPlugin with tests: ${vfsPlugin}")
|
||||
else()
|
||||
message(STATUS "Added vfsPlugin without tests: ${vfsPlugin}")
|
||||
endif()
|
||||
endforeach()
|
||||
|
|
|
@ -21,7 +21,6 @@ macro(nextcloud_add_test test_class additional_cpp)
|
|||
|
||||
add_definitions(-DOWNCLOUD_TEST)
|
||||
add_definitions(-DOWNCLOUD_BIN_PATH="${CMAKE_BINARY_DIR}/bin")
|
||||
message(STATUS "Add test: ${OWNCLOUD_TEST_CLASS}Test")
|
||||
add_test(NAME ${OWNCLOUD_TEST_CLASS}Test
|
||||
COMMAND ${OWNCLOUD_TEST_CLASS}Test
|
||||
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
|
||||
|
|
Loading…
Reference in a new issue