Skip to content

Commit f2c8bdc

Browse files
committed
cmake
1 parent e1bddb5 commit f2c8bdc

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

build/cmake/CMakeLists.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
cmake_minimum_required(VERSION 3.10)
2+
3+
project(httpmodel)
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+
urlmodel
26+
)

0 commit comments

Comments
 (0)