Skip to content

Commit d57e701

Browse files
committed
cmake
1 parent d1a89d2 commit d57e701

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

build/cmake/CMakeLists.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
cmake_minimum_required(VERSION 3.10)
2+
3+
project(httpclient)
4+
5+
# !!! find_package must go after project() declaration !!!
6+
# Otherwise VCPKG does not set the CMAKE_PREFIX_PATH to find packages.
7+
find_package(myci CONFIG REQUIRED)
8+
9+
set(srcs)
10+
myci_add_source_files(srcs
11+
DIRECTORY
12+
../../src/${PROJECT_NAME}
13+
RECURSIVE
14+
)
15+
16+
myci_declare_library(${PROJECT_NAME}
17+
SOURCES
18+
${srcs}
19+
PUBLIC_INCLUDE_DIRECTORIES
20+
../../src
21+
INSTALL_INCLUDE_DIRECTORIES
22+
../../src/${PROJECT_NAME}
23+
DEPENDENCIES
24+
utki
25+
httpmodel
26+
nitki
27+
)

0 commit comments

Comments
 (0)