Welcome to mirror list, hosted at ThFree Co, Russian Federation.

CMakeLists.txt « helloworldoverlay « samples - github.com/ValveSoftware/openvr.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c2f7b0e257874acd1f5bc79426a076551b807ec4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
set(TARGET_NAME helloworldoverlay)

add_executable(${TARGET_NAME}
  ${SHARED_SRC_FILES}
  main.cpp
  openvroverlaycontroller.cpp
  openvroverlaycontroller.h
  overlaywidget.cpp
  overlaywidget.h
)

add_definitions(${QT_DEFINITIONS})
if(NOT "${CMAKE_BUILD_TYPE}" EQUAL "Debug")
    add_definitions(-DQT_NO_DEBUG)
endif()

target_link_libraries(${TARGET_NAME}
  ${QT_LIBRARIES}
  ${OPENVR_LIBRARIES}
  ${CMAKE_DL_LIBS}
)

set_target_properties(${TARGET_NAME}
  PROPERTIES
  COMPILE_FLAGS "${QT_FLAGS}"
)

setTargetOutputDirectory(${TARGET_NAME})