Skip to content

Commit 134d10e

Browse files
committed
jtk update
1 parent 8e160bc commit 134d10e

File tree

5 files changed

+10
-32
lines changed

5 files changed

+10
-32
lines changed

CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/bin")
99
set(CMAKE_CXX_STANDARD 17)
1010
set(CMAKE_CXX_STANDARD_REQUIRED ON)
1111

12-
set(JTK_THREADING "tbb" CACHE STRING "Choose your threading library: tbb is Intel's Threading Building Blocks library, ppl is Windows' concurrency library, std uses std::thread, and none does not use threading.")
13-
14-
set_property(CACHE JTK_THREADING PROPERTY STRINGS tbb ppl std none)
15-
1612
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
1713

1814
set(AVX512 OFF CACHE BOOL "Set ON for AVX-512, set OFF for AVX2.")

asm/asmcode.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
#include "namespace.h"
99
#include "asm_api.h"
1010

11+
#undef FSCALE
12+
1113
ASM_BEGIN
1214

1315
class asmcode

sf/CMakeLists.txt

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ if (UNIX)
1111
endif (UNIX)
1212

1313
if (APPLE)
14-
set(TBB_INCLUDE_DIR "")
15-
set(TBB_LIBRARIES "")
14+
set(TBB_INCLUDE_DIR "/usr/local/include" "/usr/include")
15+
set(TBB_LIBRARIES "/usr/local/lib/libtbb.dylib")
1616
set(OPENGL_LIBRARIES "/System/Library/Frameworks/OpenGL.framework/OpenGL")
1717
endif (APPLE)
1818

@@ -56,17 +56,7 @@ if (${SINCOS_METHOD} STREQUAL "approximate")
5656
add_definitions(-DSINCOSAPPROX)
5757
endif (${SINCOS_METHOD} STREQUAL "approximate")
5858

59-
if (${JTK_THREADING} STREQUAL "tbb")
60-
add_definitions(-D_ENABLE_TBB)
61-
endif (${JTK_THREADING} STREQUAL "tbb")
62-
63-
if (${JTK_THREADING} STREQUAL "ppl")
64-
add_definitions(-D_ENABLE_PPL)
65-
endif (${JTK_THREADING} STREQUAL "ppl")
66-
67-
if (${JTK_THREADING} STREQUAL "std")
68-
add_definitions(-D_ENABLE_THREADS)
69-
endif (${JTK_THREADING} STREQUAL "std")
59+
include ("../jtk/jtk/jtk.cmake")
7060

7161
add_executable(sf ${HDRS} ${SRCS})
7262
source_group("Header Files" FILES ${hdrs})

shaderforth/CMakeLists.txt

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ endif (UNIX)
1717
if (APPLE)
1818
set(SDL_INCLUDE_DIR "/Library/Frameworks/SDL2.framework/Headers/")
1919
set(SDL_LIBRARIES "/Library/Frameworks/SDL2.framework/SDL2")
20-
set(TBB_INCLUDE_DIR "")
21-
set(TBB_LIBRARIES "")
20+
set(TBB_INCLUDE_DIR "/usr/local/include" "/usr/include")
21+
set(TBB_LIBRARIES "/usr/local/lib/libtbb.dylib")
2222
set(OPENGL_LIBRARIES "/System/Library/Frameworks/OpenGL.framework/OpenGL")
2323
endif (APPLE)
2424

@@ -92,17 +92,7 @@ if (${SINCOS_METHOD} STREQUAL "approximate")
9292
add_definitions(-DSINCOSAPPROX)
9393
endif (${SINCOS_METHOD} STREQUAL "approximate")
9494

95-
if (${JTK_THREADING} STREQUAL "tbb")
96-
add_definitions(-D_ENABLE_TBB)
97-
endif (${JTK_THREADING} STREQUAL "tbb")
98-
99-
if (${JTK_THREADING} STREQUAL "ppl")
100-
add_definitions(-D_ENABLE_PPL)
101-
endif (${JTK_THREADING} STREQUAL "ppl")
102-
103-
if (${JTK_THREADING} STREQUAL "std")
104-
add_definitions(-D_ENABLE_THREADS)
105-
endif (${JTK_THREADING} STREQUAL "std")
95+
include ("../jtk/jtk/jtk.cmake")
10696

10797
if (WIN32)
10898
add_executable(shaderforth WIN32 ${HDRS} ${SRCS} ${IMGUI} ${JSON})
@@ -134,4 +124,4 @@ target_link_libraries(shaderforth
134124
${SDL_LIBRARIES}
135125
${TBB_LIBRARIES}
136126
vectorforth
137-
)
127+
)

0 commit comments

Comments
 (0)