demos: Update cube/smoke for submodule compatibility
authorMark Lobodzinski <mark@lunarg.com>
Wed, 24 Jan 2018 00:54:26 +0000 (17:54 -0700)
committerMark Lobodzinski <mark@lunarg.com>
Thu, 25 Jan 2018 18:12:15 +0000 (11:12 -0700)
demos/CMakeLists.txt
demos/smoke/CMakeLists.txt

index 3139d15..0f024b3 100644 (file)
@@ -58,7 +58,7 @@ endif()
 file(GLOB TEXTURES
   "${PROJECT_SOURCE_DIR}/demos/*.ppm"
   )
-file(COPY ${TEXTURES} DESTINATION ${CMAKE_BINARY_DIR}/demos)
+file(COPY ${TEXTURES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
 
 set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
index 9b52aa1..33e697f 100644 (file)
@@ -80,7 +80,7 @@ else()
     endif()
 endif()
 
-set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/demos)
+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/demos)
 
 add_executable(smoketest ${sources})
 target_compile_definitions(smoketest ${definitions})