- Global level
- Target level
- Source file level
- cmake version
- cmake options
- build type
- C/C++ language standard
- C/C++ macro definitions
- C/C++ compile options
- C/C++ link options
- including file searching path
- required libraries(names and searching paths)
- library name postfix
- fPIC
- version
e.g.
set_source_files_properties(
src/xfeat_infer.cpp PROPERTIES
COMPILE_DEFINITIONS NET_WEIGHTS="${NET_WEIGHTS}" NET_ARCH="${NET_ARCH}"
)