mirror of https://github.com/AxioDL/boo.git
Always link optick
This commit is contained in:
parent
e827d92eba
commit
cd25ff4abf
|
@ -212,7 +212,6 @@ elseif(WIN32)
|
||||||
Winusb opengl32
|
Winusb opengl32
|
||||||
Xinput
|
Xinput
|
||||||
)
|
)
|
||||||
set(SHOULD_LINK_OPTICK TRUE)
|
|
||||||
elseif(APPLE)
|
elseif(APPLE)
|
||||||
target_sources(boo PRIVATE
|
target_sources(boo PRIVATE
|
||||||
lib/audiodev/AQS.cpp
|
lib/audiodev/AQS.cpp
|
||||||
|
@ -354,7 +353,6 @@ else(NOT GEKKO)
|
||||||
Xi
|
Xi
|
||||||
Xrandr
|
Xrandr
|
||||||
)
|
)
|
||||||
set(SHOULD_LINK_OPTICK TRUE)
|
|
||||||
|
|
||||||
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
||||||
find_path(VULKAN_INCLUDE_DIR
|
find_path(VULKAN_INCLUDE_DIR
|
||||||
|
@ -436,19 +434,13 @@ if(NOT NX)
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
# Include Optick and change the default value of some options
|
# Include Optick and change the default value of some options
|
||||||
option(OPTICK_ENABLED "Enable profiling with Optick" OFF)
|
option(OPTICK_ENABLED "Enable profiling with Optick" OFF)
|
||||||
set(OPTICK_USE_VULKAN ${BOO_ENABLE_VULKAN_IN_OPTICK} CACHE BOOL "Built-in support for Vulkan" FORCE)
|
set(OPTICK_USE_VULKAN ${BOO_ENABLE_VULKAN_IN_OPTICK} CACHE BOOL "Built-in support for Vulkan" FORCE)
|
||||||
set(OPTICK_INSTALL_TARGETS OFF CACHE BOOL "Should optick be installed? Set to OFF if you use add_subdirectory to include Optick.")
|
set(OPTICK_INSTALL_TARGETS OFF CACHE BOOL "Should optick be installed? Set to OFF if you use add_subdirectory to include Optick." FORCE)
|
||||||
add_subdirectory(optick)
|
add_subdirectory(optick)
|
||||||
|
|
||||||
if(SHOULD_LINK_OPTICK)
|
target_link_libraries(boo PUBLIC logvisor OptickCore)
|
||||||
target_link_libraries(boo PUBLIC OptickCore)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
||||||
target_link_libraries(boo PUBLIC logvisor)
|
|
||||||
target_include_directories(boo
|
target_include_directories(boo
|
||||||
PUBLIC
|
PUBLIC
|
||||||
include
|
include
|
||||||
|
|
Loading…
Reference in New Issue