Commit | Line | Data |
---|---|---|
ab2a4234 KK |
1 | # Sources |
2 | set(libt2n_SOURCES | |
3 | client.cpp | |
4 | client_wrapper.cpp | |
5 | command.cpp | |
6 | command_client.cpp | |
7 | command_server.cpp | |
8 | connection.cpp | |
9 | container.cpp | |
10 | server.cpp | |
11 | socket_client.cpp | |
12 | socket_handler.cpp | |
13 | socket_server.cpp | |
14 | socket_wrapper.cpp | |
15 | t2n_exception.cpp | |
0a531de6 | 16 | monotonic_clock.cpp |
ab2a4234 KK |
17 | ) |
18 | set(libt2n_HEADERS | |
19 | client.hxx | |
20 | client_wrapper.hxx | |
21 | command.hxx | |
22 | command_client.hxx | |
23 | command_server.hxx | |
24 | connection.hxx | |
25 | container.hxx | |
26 | log.hxx | |
27 | server.hxx | |
28 | socket_client.hxx | |
29 | socket_handler.hxx | |
30 | socket_server.hxx | |
31 | socket_wrapper.hxx | |
32 | t2n_exception.hxx | |
33 | types.hxx | |
34 | container.tcc | |
35 | t2n_exception.tcc | |
0a531de6 | 36 | monotonic_clock.hxx |
ab2a4234 KK |
37 | ) |
38 | include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}) | |
39 | ||
40 | # Libraries | |
41 | add_library(libt2n SHARED ${libt2n_SOURCES} ${libt2n_HEADERS}) | |
7ba38527 | 42 | set_target_properties(libt2n PROPERTIES VERSION ${VERSION} SOVERSION 1) |
ab2a4234 | 43 | set_target_properties(libt2n PROPERTIES OUTPUT_NAME t2n) |
7ba38527 KK |
44 | set_target_properties(libt2n PROPERTIES CLEAN_DIRECT_OUTPUT 1) |
45 | ||
46 | add_library(libt2n-static STATIC ${libt2n_SOURCES} ${libt2n_HEADERS}) | |
47 | set_target_properties(libt2n-static PROPERTIES OUTPUT_NAME t2n) | |
48 | set_target_properties(libt2n-static PROPERTIES CLEAN_DIRECT_OUTPUT 1) | |
ab2a4234 KK |
49 | |
50 | # Installation | |
ab2a4234 | 51 | install(FILES ${libt2n_HEADERS} DESTINATION include) |
7ba38527 KK |
52 | install(TARGETS libt2n LIBRARY DESTINATION lib) |
53 | install(TARGETS libt2n-static ARCHIVE DESTINATION lib) |