-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
40 lines (31 loc) · 839 Bytes
/
CMakeLists.txt
File metadata and controls
40 lines (31 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
cmake_minimum_required(VERSION 2.6)
project(lsclient)
SET (CMAKE_CXX_FLAGS "-g -O3 -std=c++11 -fPIC")
SET (CMAKE_LINKER_FLAGS "-rdynamic")
add_library(
lsclient SHARED
src/utils.cpp
src/lsclient.cpp
src/lstable.cpp
src/lssubscription.cpp
src/http.cpp
)
add_executable(
sample
sample.cpp
)
find_library (CURL curl)
target_link_libraries(
lsclient
curl
)
target_link_libraries(
sample
lsclient
)
install (TARGETS lsclient DESTINATION lib)
install (FILES "src/assoc.hpp" DESTINATION include/lsclient/)
install (FILES "src/utils.hpp" DESTINATION include/lsclient/)
install (FILES "src/lsclient.hpp" DESTINATION include/lsclient/)
install (FILES "src/lssubscription.hpp" DESTINATION include/lsclient/)
install (FILES "src/lstable.hpp" DESTINATION include/lsclient/)