diff --git a/CMakeLists.txt b/CMakeLists.txt index 5542c51..2f7f328 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,6 +21,7 @@ project(Monicelli) cmake_minimum_required(VERSION 2.8) 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("== Report build errors to https://github.com/esseks/monicelli/issues") @@ -55,7 +56,9 @@ if (execution_results MATCHES FAILED_TO_RUN) ) endif() -## 2. Build Monicelli! +## 2. Build Monicelli add_subdirectory(src) +install(FILES README.md LICENSE.txt DESTINATION doc/) + diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ddf96be..ad0d297 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -85,3 +85,8 @@ target_link_libraries(mcc add_library(mcrt STATIC Runtime.c) +## 6. Install targets + +install(TARGETS mcc DESTINATION bin/) +install(TARGETS mcrt DESTINATION lib/) +