X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=retrace%2FCMakeLists.txt;h=9ea1ae9998e68587f67c43498ded0790b9769657;hb=4f9982f5ec3dccae65d5a49dfd5a81b9737d90cd;hp=c6a364f30f42f66a6fdb92f7eda432dff52fef65;hpb=e7102bf755210f9e215fb048b637dda6bab96334;p=apitrace diff --git a/retrace/CMakeLists.txt b/retrace/CMakeLists.txt index c6a364f..9ea1ae9 100644 --- a/retrace/CMakeLists.txt +++ b/retrace/CMakeLists.txt @@ -102,6 +102,9 @@ if (WIN32 OR APPLE OR X11_FOUND) if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") target_link_libraries (glretrace rt) + if (READPROC_H_FOUND) + target_link_libraries (glretrace proc) + endif () endif () endif () @@ -127,6 +130,9 @@ if (ENABLE_EGL AND X11_FOUND AND NOT WIN32 AND NOT APPLE) if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") target_link_libraries (eglretrace rt) + if (READPROC_H_FOUND) + target_link_libraries (eglretrace proc) + endif () endif () install (TARGETS eglretrace RUNTIME DESTINATION bin) @@ -136,6 +142,10 @@ if (WIN32) if (DirectX_D3D8_INCLUDE_DIR) include_directories (BEFORE SYSTEM ${DirectX_D3D8_INCLUDE_DIR}) set (HAVE_D3D8 1) + set (D3DSTATE_SOURCES ${D3DSTATE_SOURCES} + d3d8state.cpp + d3d8state_images.cpp + ) else () set (HAVE_D3D8 0) endif ()