3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-23 14:23:40 +00:00

dotnet: example: copy to binary dir before build

This commit is contained in:
Yatao Li 2019-01-13 22:45:05 +08:00
parent 0a6a76734a
commit 8ebde41f35
4 changed files with 23 additions and 7 deletions

View file

@ -0,0 +1,15 @@
find_package(Dotnet REQUIRED)
if("${TARGET_ARCHITECTURE}" STREQUAL "i686")
set(Z3_DOTNET_PLATFORM "x86")
else()
set(Z3_DOTNET_PLATFORM "Any CPU")
endif()
configure_file(dotnet.csproj dotnet.csproj COPYONLY)
configure_file(program.cs program.cs COPYONLY)
ADD_DOTNET(${CMAKE_CURRENT_BINARY_DIR}/dotnet.csproj
PLATFORM ${Z3_DOTNET_PLATFORM}
CUSTOM_BUILDPROPS "<Z3_VERSION>${Z3_VERSION_MAJOR}.${Z3_VERSION_MINOR}.${Z3_VERSION_PATCH}</Z3_VERSION>"
DEPENDS Microsoft.Z3)