Skip to content
This repository was archived by the owner on Aug 16, 2024. It is now read-only.

Commit 0364013

Browse files
committed
更新CMakeList.txt
1 parent fe5be23 commit 0364013

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

CMakeLists.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ project (mirai-cpp)
77

88
set(CMAKE_CXX_STANDARD 11)
99

10+
if(CMAKE_TOOLCHAIN_FILE)
11+
include(${CMAKE_TOOLCHAIN_FILE})
12+
endif(CMAKE_TOOLCHAIN_FILE)
13+
1014
find_package(CURL CONFIG REQUIRED)
1115
find_package(nlohmann_json CONFIG REQUIRED)
1216

@@ -19,3 +23,13 @@ option(MIRAI_CPP_BUILD_EXAMPLES "Build examples" ON)
1923
if(MIRAI_CPP_BUILD_EXAMPLES)
2024
add_subdirectory(examples)
2125
endif(MIRAI_CPP_BUILD_EXAMPLES)
26+
27+
option(MIRAI_CPP_INSTALL "INSTALL_MIRAI_CPP" ON)
28+
if(MIRAI_CPP_INSTALL)
29+
30+
install(
31+
DIRECTORY include
32+
DESTINATION ${CMAKE_INSTALL_PREFIX}
33+
)
34+
35+
endif(MIRAI_CPP_INSTALL)

0 commit comments

Comments
 (0)