aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiers Daniell <pdaniell@nvidia.com>2015-04-03 17:42:59 -0600
committerPiers Daniell <pdaniell@nvidia.com>2015-04-03 17:42:59 -0600
commite6bba7667759b3b20a8d989d6632936e274978b4 (patch)
treef260bfb6efc17fdb435b94603ef43548cf21b5e4
parent864da5dc23a70ccb0e5ccc84b5843883a2872edc (diff)
downloadusermoji-e6bba7667759b3b20a8d989d6632936e274978b4.tar.xz
demos: copy XGL.dll to target folder
Makes life easier so the XGL.dll doesn't have to be manually copied every time.
-rw-r--r--demos/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/demos/CMakeLists.txt b/demos/CMakeLists.txt
index 237f0d5b..06279099 100644
--- a/demos/CMakeLists.txt
+++ b/demos/CMakeLists.txt
@@ -77,3 +77,12 @@ else()
add_executable(cube cube.c)
target_link_libraries(cube ${LIBRARIES} libpngd zlibd)
endif()
+
+
+if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
+ set(PATH_TO_WIN_XGL ${CMAKE_CURRENT_BINARY_DIR}/../loader/${CMAKE_CFG_INTDIR})
+ add_custom_command(TARGET tri
+ POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E copy_if_different "${PATH_TO_WIN_XGL}/XGL.dll" $<TARGET_FILE_DIR:tri>
+ )
+endif()