-
Notifications
You must be signed in to change notification settings - Fork 569
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
61 lines (50 loc) · 1015 Bytes
/
CMakeLists.txt
File metadata and controls
61 lines (50 loc) · 1015 Bytes
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
set(LIB_NAME xamarin-app)
set(LIB_ALIAS xa::xamarin-app)
set(XAMARIN_APP_SOURCES
application_dso_stub.cc
)
add_library(
${LIB_NAME}
SHARED
${XAMARIN_APP_SOURCES}
)
add_library(${LIB_ALIAS} ALIAS ${LIB_NAME})
set(XAMARIN_APP_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}")
target_include_directories(
${LIB_NAME}
PUBLIC
"$<BUILD_INTERFACE:${XAMARIN_APP_INCLUDE_DIRS}>"
)
target_include_directories(
${LIB_NAME}
SYSTEM PRIVATE
${SYSROOT_CXX_INCLUDE_DIR}
${MONO_RUNTIME_INCLUDE_DIR}
)
target_compile_options(
${LIB_NAME}
PRIVATE
${XA_COMMON_CXX_ARGS}
)
target_link_options(
${LIB_NAME}
PRIVATE
${XA_COMMON_CXX_LINKER_ARGS}
${XA_CXX_DSO_LINKER_ARGS}
)
target_link_libraries(
${LIB_NAME}
PRIVATE
${SHARED_LIB_NAME}
)
if(DEBUG_BUILD)
set(LIB_SUBDIR "Debug")
else()
set(LIB_SUBDIR "Release")
endif()
set_target_properties(
${LIB_NAME}
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${LIB_SUBDIR}"
)
xa_add_compile_definitions(${LIB_NAME})