2019-11-11 23:01:05 +01:00
|
|
|
enable_language(CXX)
|
2020-08-30 11:54:41 +02:00
|
|
|
set(CMAKE_DOTNET_TARGET_FRAMEWORK_VERSION "v4.7.2")
|
|
|
|
|
2019-11-11 23:01:05 +01:00
|
|
|
add_library(foo foo.cpp)
|
|
|
|
|
|
|
|
set_property(TARGET foo PROPERTY VS_PACKAGE_REFERENCES "boost_1.7.0;SFML_2.2.0")
|
2020-08-30 11:54:41 +02:00
|
|
|
|
|
|
|
# install and export the targets to test the correct behavior
|
|
|
|
# nuget restore will only work with an install target when the correct
|
|
|
|
# target framework version is set
|
|
|
|
set(INSTALL_CMAKE_DIR CMake)
|
|
|
|
install(TARGETS foo EXPORT foo_Export_Target)
|
|
|
|
install(EXPORT foo_Export_Target DESTINATION ${INSTALL_CMAKE_DIR} FILE fooConfig.cmake)
|