Add install rules to CMake build scripts.
This commit is contained in:
parent
d8e13b54fe
commit
c9c0e72bec
|
@ -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/)
|
||||||
|
|
||||||
|
|
|
@ -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/)
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user