summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CXXModules/InstallBMI.cmake
blob: f0947b47c51e5cb5ceedfc3c83c6b6f724661868 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
enable_language(CXX)

add_library(install-bmi)
target_sources(install-bmi
  PRIVATE
    sources/cxx-anchor.cxx)

install(TARGETS install-bmi
  CXX_MODULES_BMI
    DESTINATION "lib/bmi"
    COMPONENT "bmi")

install(TARGETS install-bmi
  CXX_MODULES_BMI
    DESTINATION "lib/bmi"
    EXCLUDE_FROM_ALL
    COMPONENT "bmi-optional")

install(TARGETS install-bmi
  CXX_MODULES_BMI
    DESTINATION "lib/bmi"
    CONFIGURATIONS Debug
    COMPONENT "bmi-only-debug")