Skip to content

Commit

Permalink
Move the location of the data folder on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
imikejackson committed Aug 31, 2018
1 parent 090e1ce commit 1b9aa9d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Support/Support.cmake
Expand Up @@ -24,10 +24,13 @@ install(DIRECTORY ${DREAM3D_SUPPORT_DIR}/PrebuiltPipelines

#-------------------------------------------------------------------------------
# Copy the Data Folder to the build directory

set(DATA_DEST_DIR "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/Data/")
if(NOT APPLE AND NOT WIN32)
set(DATA_DEST_DIR "${DREAM3DProj_BINARY_DIR}/Data/")
endif()
add_custom_target(DataFolderCopy ALL
COMMAND ${CMAKE_COMMAND} -E copy_directory ${DREAM3D_DATA_DIR}/Data
${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/Data/
${DATA_DEST_DIR}
COMMENT "Copying Data Folder into Binary Directory")
set_target_properties(DataFolderCopy PROPERTIES FOLDER ZZ_COPY_FILES)

Expand Down

0 comments on commit 1b9aa9d

Please sign in to comment.