File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ add_subdirectory(googletest)
3
3
file (MAKE_DIRECTORY "${CMAKE_SOURCE_DIR} /3rdparty/TBB/build" )
4
4
5
5
execute_process (
6
- COMMAND ${CMAKE_COMMAND} -S "${CMAKE_SOURCE_DIR} /3rdparty/TBB" -B "${CMAKE_SOURCE_DIR} /3rdparty/TBB/build" -DCMAKE_C_COMPILER_LAUNCHER=${CMAKE_C_COMPILER_LAUNCHER} -DCMAKE_CXX_COMPILER_LAUNCHER=${CMAKE_CXX_COMPILER_LAUNCHER} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
6
+ COMMAND ${CMAKE_COMMAND} -S "${CMAKE_SOURCE_DIR} /3rdparty/TBB" -B "${CMAKE_SOURCE_DIR} /3rdparty/TBB/build" -DCMAKE_C_COMPILER_LAUNCHER=${CMAKE_C_COMPILER_LAUNCHER} -DCMAKE_CXX_COMPILER_LAUNCHER=${CMAKE_CXX_COMPILER_LAUNCHER} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DTBB_OUTPUT_DIR_BASE=tbb
7
7
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR} /3rdparty/TBB/build"
8
8
)
9
9
execute_process (
@@ -12,4 +12,4 @@ execute_process(
12
12
)
13
13
14
14
option (TBB_TEST OFF )
15
- add_subdirectory (TBB)
15
+ add_subdirectory (TBB)
Original file line number Diff line number Diff line change 1
1
file (GLOB_RECURSE layers_src *.cpp)
2
2
add_library (layers_lib STATIC "${LAYERS_HEADERS} " "${layers_src} " )
3
3
target_link_libraries (layers_lib PUBLIC TBB::tbb)
4
+ if (WIN32 )
5
+ string (TOLOWER ${CMAKE_BUILD_TYPE} lower_build)
6
+ file (GLOB_RECURSE tbb_files "${CMAKE_SOURCE_DIR} /3rdparty/TBB/build/tbb_${lower_build} /tbb*" )
7
+ add_custom_command (TARGET layers_lib POST_BUILD
8
+ COMMAND ${CMAKE_COMMAND} -E copy
9
+ ${tbb_files}
10
+ "${CMAKE_BINARY_DIR} /bin/" )
11
+ endif ()
You can’t perform that action at this time.
0 commit comments