mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-27 09:00:16 -06:00
14 lines
312 B
CMake
14 lines
312 B
CMake
project(PerConfigGeneration CXX)
|
|
|
|
set(config ${CMAKE_BUILD_TYPE})
|
|
if(NOT config)
|
|
set(config noconfig)
|
|
endif()
|
|
|
|
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/build_type.cmake" "set(config \"${config}\")")
|
|
|
|
add_library(foo foo.cxx)
|
|
|
|
install(TARGETS foo EXPORT foo)
|
|
install(PACKAGE_INFO foo DESTINATION cps EXPORT foo)
|