Windows update
This commit is contained in:
parent
c41dc20132
commit
afad2c80e5
9 changed files with 64 additions and 51 deletions
10
cmake/FindGLEW.cmake
Normal file
10
cmake/FindGLEW.cmake
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||
set(CMAKE_PREFIX_PATH "${WINDOWS_LIBRARIES}/glew-2.1.0")
|
||||
|
||||
find_package(GLEW REQUIRED)
|
||||
set(GLEW_LIB ${GLEW_STATIC_LIBRARY_RELEASE} opengl32.lib CACHE STRING "Path to PortAudio includes")
|
||||
|
||||
else()
|
||||
find_package(GLEW REQUIRED)
|
||||
set(GLEW_LIB ${GLEW_LIBRARIES} GL CACHE STRING "Path to PortAudio includes")
|
||||
endif()
|
||||
21
cmake/FindOIDN.cmake
Normal file
21
cmake/FindOIDN.cmake
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#set(OIDN_DEVICE_CPU ON)
|
||||
#set(OIDN_STATIC_LIB ON)
|
||||
#add_subdirectory(oidn)
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||
set(CMAKE_PREFIX_PATH "${WINDOWS_LIBRARIES}/oidn-2.3.0.x64.windows")
|
||||
endif()
|
||||
|
||||
find_package(OpenImageDenoise REQUIRED)
|
||||
|
||||
|
||||
|
||||
set(TARGETS_LIST OpenImageDenoise)
|
||||
|
||||
foreach(TARGET ${TARGETS_LIST})
|
||||
if(TARGET ${TARGET})
|
||||
message("Found ${TARGET}.")
|
||||
else()
|
||||
message(ERROR "Not Found ${TARGET}.")
|
||||
endif()
|
||||
endforeach()
|
||||
16
cmake/FindPortAudio.cmake
Normal file
16
cmake/FindPortAudio.cmake
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||
# relative paths
|
||||
set(RELATIVE_INCLUDE_DIR "${WINDOWS_LIBRARIES}/portaudio/include")
|
||||
set(RELATIVE_LIB "${WINDOWS_LIBRARIES}/portaudio_build/Debug/portaudio.lib")
|
||||
|
||||
# Convert to absolute paths
|
||||
get_filename_component(ABSOLUTE_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/${RELATIVE_INCLUDE_DIR}" ABSOLUTE)
|
||||
get_filename_component(ABSOLUTE_LIB "${CMAKE_CURRENT_SOURCE_DIR}/${RELATIVE_LIB}" ABSOLUTE)
|
||||
|
||||
# Set absolute paths with respect to the parent scope
|
||||
set(PORTAUDIO_INCLUDE_DIR "${ABSOLUTE_INCLUDE_DIR}" CACHE STRING "Path to PortAudio includes")
|
||||
set(PORTAUDIO_LIB "${ABSOLUTE_LIB}" CACHE STRING "Path to PortAudio library")
|
||||
|
||||
else()
|
||||
set(PORTAUDIO_LIB portaudio CACHE STRING "Path to PortAudio library")
|
||||
endif()
|
||||
12
cmake/ModulesOptions.txt
Normal file
12
cmake/ModulesOptions.txt
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
option(MODULES_MEMORY_DEBUG "Debug memory" OFF)
|
||||
option(MODULES_MEMORY_DEBUG_STACK_TRACE "Record stack info on memory debug" OFF)
|
||||
|
||||
if (MODULES_MEMORY_DEBUG)
|
||||
add_compile_definitions(MEM_DEBUG)
|
||||
endif ()
|
||||
|
||||
if (MODULES_MEMORY_DEBUG_STACK_TRACE)
|
||||
add_compile_definitions(MEM_STACK_TRACE)
|
||||
endif ()
|
||||
|
||||
enable_testing()
|
||||
Loading…
Add table
Add a link
Reference in a new issue