Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
cmake: Implement support for CMake on Linux and remove Makefiles
[xestiacalendar/.git] / source / CMakeFunctions / UnitTestPreprocessorMacros.cmake
1 function(add_unit_test_definitions targetName)
2     target_compile_definitions(${targetName} PUBLIC XESTIACAL_UNITTEST)
3 endfunction()
5 function(set_unit_test_file_permissions)
6     list(APPEND FILE_LIST iCalendarEvent-InvalidPermissions.vcf
7                           iCalendarFreeBusy-InvalidPermissions.vcf
8                           iCalendarJournal-InvalidPermissions.vcf
9                           iCalendarTask-InvalidPermissions.vcf
10                           iCalendarTimezone-InvalidPermissions.vcf)
12     foreach(FILE ${FILE_LIST})
13         string(CONCAT FILE_LOCATION ${CMAKE_SOURCE_DIR} "/tests/" ${FILE})
14         execute_process(COMMAND sh -c "chmod 000 ${FILE_LOCATION}")
15     endforeach()
16 endfunction()
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy