summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/property_init/TargetsWithArtifact.cmake
blob: 0c19ea386f365a973e940e65758ddf5e0af5561b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
set(dir "${CMAKE_CURRENT_BINARY_DIR}")

per_config(properties
  # property                      expected  alias
  # Compilation properties
  "INTERPROCEDURAL_OPTIMIZATION_" "OFF"     "<UNSET>"

  # Output location properties
  "ARCHIVE_OUTPUT_DIRECTORY_"     "${dir}"  "<UNSET>"
  "COMPILE_PDB_OUTPUT_DIRECTORY_" "${dir}"  "<UNSET>"
  "LIBRARY_OUTPUT_DIRECTORY_"     "${dir}"  "<UNSET>"
  "PDB_OUTPUT_DIRECTORY_"         "${dir}"  "<UNSET>"
  "RUNTIME_OUTPUT_DIRECTORY_"     "${dir}"  "<UNSET>"
  )

prepare_target_types(with_artifact
           EXECUTABLE          MODULE          SHARED          STATIC
  IMPORTED_EXECUTABLE IMPORTED_MODULE IMPORTED_SHARED IMPORTED_STATIC)
run_property_tests(with_artifact properties)