blob: 3e8ecd103997818514a982d25ffde8caad3d2bf4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
enable_language(C)
set_property(SOURCE nothing.c PROPERTY LANGUAGE C)
set_property(SOURCE something.c PROPERTY
COMPILE_DEFINITIONS SOMETHING=1)
add_library(nothing STATIC nothing.c nothing.h)
add_executable(something something.c something.h)
target_link_libraries(something PUBLIC nothing)
include(CMakePrintHelpers)
cmake_print_properties(
TARGETS nothing something
PROPERTIES
LINKER_LANGUAGE
TYPE
)
cmake_print_properties(
SOURCES nothing.c something.c
PROPERTIES
COMPILE_DEFINITIONS
LANGUAGE
)
|