Add install rules to CMake build scripts.

This commit is contained in:
Stefano Sanfilippo 2015-03-10 13:31:02 +01:00
parent d8e13b54fe
commit c9c0e72bec
2 changed files with 9 additions and 1 deletions

View File

@ -21,6 +21,7 @@ project(Monicelli)
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 2.8)
set(CMAKE_BUILD_TYPE Release) set(CMAKE_BUILD_TYPE Release)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
message("== Only a limited set of platforms was tested. We need your help!") message("== Only a limited set of platforms was tested. We need your help!")
message("== Report build errors to https://github.com/esseks/monicelli/issues") message("== Report build errors to https://github.com/esseks/monicelli/issues")
@ -55,7 +56,9 @@ if (execution_results MATCHES FAILED_TO_RUN)
) )
endif() endif()
## 2. Build Monicelli! ## 2. Build Monicelli
add_subdirectory(src) add_subdirectory(src)
install(FILES README.md LICENSE.txt DESTINATION doc/)

View File

@ -85,3 +85,8 @@ target_link_libraries(mcc
add_library(mcrt STATIC Runtime.c) add_library(mcrt STATIC Runtime.c)
## 6. Install targets
install(TARGETS mcc DESTINATION bin/)
install(TARGETS mcrt DESTINATION lib/)