summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/PrintHelpers/PropertiesSources.cmake
blob: f102b9416b7202cdcb8896f76c5d07face4e6784 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
set_property(SOURCE rot13.c PROPERTY LANGUAGE C)

add_library(rot13 SHARED rot13.c rot13.h)

include(CMakePrintHelpers)

cmake_print_properties(
  TARGETS rot13
  PROPERTIES
    SOURCES
    POSITION_INDEPENDENT_CODE
)

cmake_print_properties(
  SOURCES rot13.c
  PROPERTIES
    LOCATION
    LANGUAGE
)