mirror of
https://github.com/reactos/CMake.git
synced 2024-12-12 05:45:51 +00:00
Add testing for windows resources for mingw/msys/cygwin and remove for watcom.
This commit should test windows resources on all platforms where they are supported now.
This commit is contained in:
parent
060d6e885e
commit
960ace1e0b
@ -131,7 +131,18 @@ IF(BUILD_TESTING)
|
|||||||
ADD_TEST_MACRO(TarTest TarTest)
|
ADD_TEST_MACRO(TarTest TarTest)
|
||||||
ADD_TEST_MACRO(SystemInformation SystemInformation)
|
ADD_TEST_MACRO(SystemInformation SystemInformation)
|
||||||
ADD_TEST_MACRO(MathTest MathTest)
|
ADD_TEST_MACRO(MathTest MathTest)
|
||||||
IF(MSVC)
|
# assume no resources building to test
|
||||||
|
SET(TEST_RESOURCES FALSE)
|
||||||
|
# for windows and cygwin assume we have resources
|
||||||
|
IF(WIN32 OR CYGWIN)
|
||||||
|
SET(TEST_RESOURCES TRUE)
|
||||||
|
ENDIF()
|
||||||
|
# for borland and watcom there is no resource support
|
||||||
|
IF(("${CMAKE_TEST_GENERATOR}" MATCHES "WMake") OR
|
||||||
|
("${CMAKE_TEST_GENERATOR}" MATCHES "Borland"))
|
||||||
|
SET(TEST_RESOURCES FALSE)
|
||||||
|
ENDIF()
|
||||||
|
IF(TEST_RESOURCES)
|
||||||
ADD_TEST_MACRO(VSResource VSResource)
|
ADD_TEST_MACRO(VSResource VSResource)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
ADD_TEST_MACRO(Simple Simple)
|
ADD_TEST_MACRO(Simple Simple)
|
||||||
|
Loading…
Reference in New Issue
Block a user