-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathLassConfig.py.in
22 lines (18 loc) · 1.2 KB
/
LassConfig.py.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import os.path
_self_dir = os.path.dirname(os.path.abspath(__file__))
LASS_VERSION = "@Lass_VERSION@"
LASS_MAJOR_VERSION = @Lass_VERSION_MAJOR@
LASS_MINOR_VERSION = @Lass_VERSION_MINOR@
LASS_PATCHLEVEL = @Lass_VERSION_PATCH@
LASS_OUTPUT_NAME = "$<TARGET_PROPERTY:lass,OUTPUT_NAME>"
LASS_OUTPUT_NAME_DEBUG = "$<TARGET_PROPERTY:lass,OUTPUT_NAME>$<TARGET_PROPERTY:lass,DEBUG_POSTFIX>"
LASS_PYTHON_OUTPUT_NAME = "$<$<BOOL:@Python_Development_FOUND@>:$<TARGET_PROPERTY:lass_python,OUTPUT_NAME>>"
LASS_PYTHON_OUTPUT_NAME_DEBUG = "$<$<BOOL:@Python_Development_FOUND@>:$<TARGET_PROPERTY:lass_python,OUTPUT_NAME>$<TARGET_PROPERTY:lass,DEBUG_POSTFIX>>"
LASS_PYTHON_DEBUG_POSTFIX = "@LASS_PYTHON_DEBUG_POSTFIX@"
if os.path.exists(os.path.join(_self_dir, "LassBuildExports.cmake")):
# we're in build tree
LASS_INCLUDE_DIRS = ["$<JOIN:$<TARGET_PROPERTY:lass,INCLUDE_DIRECTORIES>,", ">"]
else:
LASS_INCLUDE_DIRS = [os.path.join(_self_dir, os.pardir, os.pardir, "include")]
LASS_EXTRA_CXX_FLAGS = [$<$<BOOL:$<TARGET_PROPERTY:lass,INTERFACE_COMPILE_OPTIONS>>:"$<JOIN:$<TARGET_PROPERTY:lass,INTERFACE_COMPILE_OPTIONS>,", ">>"]
Lass_EXTRA_CXX_FLAGS = " ".join(LASS_EXTRA_CXX_FLAGS) # for backwards compatibility