Skip to content

Commit 9ab53bb

Browse files
committed
builds but doesn't work
1 parent 0a45004 commit 9ab53bb

17 files changed

+23
-4765
lines changed

cmake/dependencies/common.cmake

+13
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,16 @@ if(NOT EXCLUDE_MPQ_SUPPORT)
4141
FetchContent_MakeAvailable(StormLib)
4242
list(APPEND ADDITIONAL_LIB_INCLUDES ${stormlib_SOURCE_DIR}/src)
4343
endif()
44+
45+
#======== thread-pool ========
46+
FetchContent_Declare(
47+
ThreadPool
48+
GIT_REPOSITORY https://github.com/bshoshany/thread-pool.git
49+
GIT_TAG v4.1.0
50+
)
51+
FetchContent_MakeAvailable(ThreadPool)
52+
53+
# add_library(ThreadPool INTERFACE)
54+
# target_include_directories(ThreadPool INTERFACE ${threadpool_SOURCE_DIR})
55+
56+
list(APPEND ADDITIONAL_LIB_INCLUDES ${threadpool_SOURCE_DIR}/include)

extern/CMakeLists.txt

-7
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,6 @@ if (GFX_DEBUG_DISASSEMBLER)
3535
target_include_directories(libgfxd PUBLIC ${LIBGFXD_DIR})
3636
endif()
3737

38-
#=================== thread-pool ===================
39-
40-
set(THREADPOOL_DIR ${CMAKE_CURRENT_SOURCE_DIR}/thread-pool)
41-
add_library(ThreadPool INTERFACE)
42-
43-
target_include_directories(ThreadPool INTERFACE ${THREADPOOL_DIR})
44-
4538
#=================== STB ===================
4639

4740
set(STB_DIR ${CMAKE_CURRENT_SOURCE_DIR}/stb)

extern/thread-pool/.github/ISSUE_TEMPLATE/bug_report.md

-37
This file was deleted.

extern/thread-pool/.github/ISSUE_TEMPLATE/failed-tests.md

-26
This file was deleted.

extern/thread-pool/.github/ISSUE_TEMPLATE/feature_request.md

-23
This file was deleted.

extern/thread-pool/.github/pull_request_template.md

-20
This file was deleted.

0 commit comments

Comments
 (0)