-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GPUGain: get Windows working w/ CUDA, clean up support lib & cmake
- Loading branch information
Showing
9 changed files
with
115 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
set(PLUGIN GPUGain) | ||
if (OFX_SUPPORTS_OPENGLRENDER) | ||
file(GLOB_RECURSE PLUGIN_SOURCES "*.cpp") | ||
if (NOT OFX_SUPPORTS_OPENCLRENDER) | ||
list(FILTER PLUGIN_SOURCES EXCLUDE REGEX "OpenCLKernel") | ||
endif() | ||
if (OFX_SUPPORTS_CUDARENDER) | ||
list(APPEND PLUGIN_SOURCES "CUDAKernel.cu") | ||
endif() | ||
if(APPLE) | ||
file(GLOB_RECURSE PLUGIN_SOURCES "*.mm") # add Metal kernel | ||
endif() | ||
|
||
set(TGT example-${PLUGIN}) | ||
add_ofx_plugin(${TGT} ${PLUGIN}) | ||
target_sources(${TGT} PUBLIC ${PLUGIN_SOURCES}) | ||
target_include_directories(${TGT} PUBLIC ${OFX_HEADER_DIR} ${OFX_SUPPORT_HEADER_DIR}) | ||
target_link_libraries(${TGT} ${CONAN_LIBS} OfxSupport opengl::opengl) | ||
if(APPLE) | ||
target_link_libraries(${TGT} "-framework Metal" "-framework Foundation" "-framework QuartzCore") | ||
endif() | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters