aboutsummaryrefslogtreecommitdiff
path: root/visualization
diff options
context:
space:
mode:
Diffstat (limited to 'visualization')
-rw-r--r--visualization/CMakeLists.txt6
-rw-r--r--visualization/renderer/CMakeLists.txt4
2 files changed, 7 insertions, 3 deletions
diff --git a/visualization/CMakeLists.txt b/visualization/CMakeLists.txt
index 6d474e0..ca1096c 100644
--- a/visualization/CMakeLists.txt
+++ b/visualization/CMakeLists.txt
@@ -13,8 +13,8 @@ if(WIN32)
list(APPEND visualization_SOURCES ${CMAKE_CURRENT_BINARY_DIR}/visualization.rc)
endif(WIN32)
-set(BUILD_DUMB ON)
-set(BUILD_EXAMPLE OFF)
+option(BUILD_DUMB "SMELT override: disable sound support" ON)
+option(BUILD_EXAMPLE "SMELT override: build example" OFF)
add_subdirectory(SMELT)
add_subdirectory(renderer)
@@ -41,7 +41,7 @@ target_link_libraries(visualization
${ZLIB_LIBRARIES}
${IL_LIBRARIES}
glfw
- ${GLEW_LIBRARIES}
+ GLEW::glew
OpenGL::GL
)
diff --git a/visualization/renderer/CMakeLists.txt b/visualization/renderer/CMakeLists.txt
index 90a4704..bbd3daf 100644
--- a/visualization/renderer/CMakeLists.txt
+++ b/visualization/renderer/CMakeLists.txt
@@ -23,4 +23,8 @@ target_link_libraries(qmpvisrender
${CMAKE_DL_LIBS}
)
+if(WIN32)
+ target_link_libraries(qmpvisrender winmm)
+endif()
+
install(TARGETS qmpvisrender)