File tree Expand file tree Collapse file tree 2 files changed +17
-20
lines changed
test/loader/loader_config Expand file tree Collapse file tree 2 files changed +17
-20
lines changed Original file line number Diff line number Diff line change 3
3
# See LICENSE.TXT
4
4
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5
5
6
- add_library (ur_common INTERFACE )
6
+ add_subdirectory (unified_malloc_framework )
7
+ add_subdirectory (umf_pools )
8
+
9
+ add_ur_library (ur_common STATIC
10
+ umf_helpers.hpp
11
+ ur_pool_manager.hpp
12
+ $< $< PLATFORM_ID:Windows> :windows/ur_lib_loader.cpp>
13
+ $< $< PLATFORM_ID:Linux,Darwin> :linux/ur_lib_loader.cpp>
14
+ )
7
15
add_library (${PROJECT_NAME} ::common ALIAS ur_common )
8
16
9
- target_include_directories (ur_common INTERFACE
17
+ target_include_directories (ur_common PUBLIC
10
18
${CMAKE_CURRENT_SOURCE_DIR}
11
19
${CMAKE_SOURCE_DIR} /include
12
20
)
13
21
14
- add_subdirectory (unified_malloc_framework )
15
- add_subdirectory (umf_pools )
16
- target_link_libraries (ur_common INTERFACE unified_malloc_framework disjoint_pool ${CMAKE_DL_LIBS} ${PROJECT_NAME} ::headers )
17
-
18
- if (WIN32 )
19
- target_sources (ur_common
20
- INTERFACE
21
- ${CMAKE_CURRENT_SOURCE_DIR} /windows/ur_lib_loader.cpp
22
- umf_helpers.hpp ur_pool_manager.hpp
23
- )
24
- else ()
25
- target_sources (ur_common
26
- INTERFACE
27
- ${CMAKE_CURRENT_SOURCE_DIR} /linux/ur_lib_loader.cpp
28
- umf_helpers.hpp ur_pool_manager.hpp
29
- )
30
- endif ()
22
+ target_link_libraries (ur_common PUBLIC
23
+ unified_malloc_framework
24
+ disjoint_pool
25
+ ${CMAKE_DL_LIBS}
26
+ ${PROJECT_NAME} ::headers
27
+ )
Original file line number Diff line number Diff line change 3
3
# See LICENSE.TXT
4
4
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5
5
6
- add_executable (test -loader-config
6
+ add_ur_executable (test -loader-config
7
7
urLoaderConfigCreate.cpp
8
8
urLoaderConfigGetInfo.cpp
9
9
urLoaderConfigEnableLayer.cpp
You can’t perform that action at this time.
0 commit comments