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:
parent
0a6a76734a
commit
8ebde41f35
4 changed files with 23 additions and 7 deletions
15
examples/dotnet/CMakeLists.txt
Normal file
15
examples/dotnet/CMakeLists.txt
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue