-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
38 lines (32 loc) · 884 Bytes
/
CMakeLists.txt
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
29
30
31
32
33
34
35
36
37
38
set(TARGET_NAME helloworldoverlay)
if(APPLE)
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set_source_files_properties(../shared/pathtools.cpp PROPERTIES COMPILE_FLAGS "-x objective-c++")
find_library(FOUNDATION_FRAMEWORK Foundation)
mark_as_advanced(FOUNDATION_FRAMEWORK)
set(EXTRA_LIBS ${EXTRA_LIBS} ${FOUNDATION_FRAMEWORK})
endif()
endif()
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}
${EXTRA_LIBS}
)
set_target_properties(${TARGET_NAME}
PROPERTIES
COMPILE_FLAGS "${QT_FLAGS}"
)
setTargetOutputDirectory(${TARGET_NAME})