diff options
| author | Piers Daniell <pdaniell@nvidia.com> | 2015-04-03 17:42:59 -0600 |
|---|---|---|
| committer | Piers Daniell <pdaniell@nvidia.com> | 2015-04-03 17:42:59 -0600 |
| commit | e6bba7667759b3b20a8d989d6632936e274978b4 (patch) | |
| tree | f260bfb6efc17fdb435b94603ef43548cf21b5e4 | |
| parent | 864da5dc23a70ccb0e5ccc84b5843883a2872edc (diff) | |
| download | usermoji-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.txt | 9 |
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() |
