2019-02-09 08:51:13 +08:00
|
|
|
if(WIN32)
|
|
|
|
# C# is currently only supported on Windows.
|
|
|
|
# On other platforms we find mono manually
|
|
|
|
enable_language(CSharp)
|
|
|
|
else()
|
|
|
|
# for other platforms we currently use mono
|
|
|
|
|
2019-05-05 03:14:03 +08:00
|
|
|
find_program(MONO_EXECUTABLE mono)
|
|
|
|
if (NOT MONO_EXECUTABLE)
|
|
|
|
message(FATAL_ERROR "Could not find 'mono' executable!")
|
2019-02-09 08:51:13 +08:00
|
|
|
endif()
|
|
|
|
|
2019-05-05 03:14:03 +08:00
|
|
|
find_program(MCS_EXECUTABLE mcs)
|
2019-02-09 08:51:13 +08:00
|
|
|
if (NOT MCS_EXECUTABLE)
|
2019-05-05 03:14:03 +08:00
|
|
|
message(FATAL_ERROR "Could not find 'mcs' executable, which is part of Mono!")
|
2019-02-09 08:51:13 +08:00
|
|
|
endif()
|
|
|
|
endif()
|