Changeset 102 in flair-dev for trunk/cmake-modules
- Timestamp:
- Feb 7, 2019, 4:27:03 PM (6 years ago)
- Location:
- trunk/cmake-modules
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cmake-modules/ArchDir.cmake
r68 r102 3 3 endif() 4 4 5 if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "x86_64") 6 SET(ARCH_DIR "x86_64/unix") 7 elseif(DEFINED CMAKE_SYSTEM_PROCESSOR_DEFAULTTUNE) 5 if(DEFINED CMAKE_SYSTEM_PROCESSOR_DEFAULTTUNE) 8 6 SET(ARCH_DIR ${CMAKE_SYSTEM_PROCESSOR_DEFAULTTUNE}) 9 7 else() -
trunk/cmake-modules/GlobalCmakeFlair.cmake
r97 r102 127 127 endif() 128 128 endfunction() 129 130 #copy resources (ex: demos scripts and xml) 131 function(INSTALL) 132 if(COPY_RESOURCE_FILES) 133 FILE(GLOB RESOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/resources/${ARCH_DIR}/*") 134 foreach(item IN LISTS RESOURCE_FILES) 135 get_filename_component(filename ${item} NAME) 136 #do not overwrite: user can change xml or scripts 137 _INSTALL(CODE " 138 if (NOT EXISTS \"$ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}/${filename}\") 139 file(INSTALL \"${item}\" DESTINATION \"$ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}\") 140 endif() 141 ") 142 endforeach() 143 144 endif() 145 #call original function 146 _INSTALL(${ARGV}) 147 endfunction()
Note:
See TracChangeset
for help on using the changeset viewer.