File: CMakeLists.txt

package info (click to toggle)
qlcplus 4.14.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 58,644 kB
  • sloc: cpp: 182,867; javascript: 7,764; xml: 2,453; ansic: 2,120; sh: 1,716; python: 634; ruby: 606; makefile: 23
file content (19 lines) | stat: -rw-r--r-- 777 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
project(generic_meshes)

file(GLOB GENERIC_MESH_FILES "${CMAKE_CURRENT_SOURCE_DIR}/*.obj")

# Only perform the copy if we're building for Android
if(ANDROID)
    # Define the destination directory for the generic mesh files within the Android package
    set(GENERIC_MESHES_ASSETS_DIR "${ANDROID_PACKAGE_SOURCE_DIR}/${MESHESDIR}/generic")

    # Create the generic meshes assets directory if it doesn't exist
    file(MAKE_DIRECTORY ${GENERIC_MESHES_ASSETS_DIR})

    # Copy the generic mesh .obj files to the assets directory
    foreach(GENERIC_MESH_FILE IN LISTS GENERIC_MESH_FILES)
        file(COPY ${GENERIC_MESH_FILE} DESTINATION ${GENERIC_MESHES_ASSETS_DIR})
    endforeach()
endif()

install(FILES ${GENERIC_MESH_FILES} DESTINATION ${INSTALLROOT}/${MESHESDIR}/generic)