Commit 633302cd authored by Victor Yacovlev's avatar Victor Yacovlev

Default course added to CMake project

parent e0a25d35
......@@ -77,6 +77,7 @@ set(LIBEXECS_PATH ${CMAKE_BINARY_DIR}/${CMAKE_BUILD_TYPE}/${LIBEXECS_DIR})
add_subdirectory(src)
add_subdirectory(userdocs)
add_subdirectory(share/kumir2/courses)
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_BUILD_TYPE}/share/applications)
file(GLOB_RECURSE icons RELATIVE ${CMAKE_SOURCE_DIR}/app_icons/linux ${CMAKE_SOURCE_DIR}/app_icons/linux/*)
......
project(default_course)
cmake_minimum_required(VERSION 2.8)
file(MAKE_DIRECTORY ${SHARE_PATH}/courses)
file(GLOB_RECURSE resfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*)
foreach(res IN ITEMS ${resfiles})
if((NOT ${res} MATCHES ^[.].*) AND (NOT ${res} MATCHES CMakeLists))
get_filename_component(subdir ${res} PATH)
file(MAKE_DIRECTORY ${SHARE_PATH}/courses/${subdir})
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/${res} DESTINATION ${SHARE_PATH}/courses/${subdir})
install(FILES ${SHARE_PATH}/courses/${res} DESTINATION ${RESOURCES_DIR}/courses/${subdir})
endif()
endforeach(res)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment