1 # Rudimentary CMakeLists.txt
3 # This is not used for real builds, it mostly exists to enable code navigation in
4 # CLion. Real builds use autotools + make.
6 cmake_minimum_required(VERSION 3.6)
9 set(CMAKE_CXX_STANDARD 11)
11 include(FindPkgConfig)
12 pkg_check_modules(GLIB glib-2.0 REQUIRED)
13 include_directories(${GLIB_INCLUDE_DIRS})
15 include_directories(include)
18 common/tests/cfg_test.c
19 common/tests/commtest.c
20 common/tests/dh_test.c
21 common/tests/mq_test.c
22 common/tests/thread_test.c
23 common/jansson_iterators.h
28 common/tr_constraint.c
39 gsscon/test/gsscon_client.c
40 gsscon/test/gsscon_server.c
41 gsscon/gsscon_active.c
42 gsscon/gsscon_common.c
43 gsscon/gsscon_passive.c
44 include/trust_router/tid.h
45 include/trust_router/tr_constraint.h
46 include/trust_router/tr_dh.h
47 include/trust_router/tr_name.h
48 include/trust_router/tr_versioning.h
49 include/trust_router/trp.h
51 include/tid_internal.h
60 include/tr_gss_names.h
68 include/trp_internal.h
71 tid/example/tidc_main.c
72 tid/example/tids_main.c
93 trp/trps.c include/tr_name_internal.h mon/mon_req.c mon/mon_req_encode.c mon/mon_req_decode.c
94 mon/mon_resp.c mon/mon_common.c mon/mon_resp_encode.c tr/tr_mon.c mon/mons.c include/tr_socket.h common/tr_gss.c include/tr_gss.h common/tr_config_internal.c)
96 # Does not actually build!
97 add_executable(trust_router ${SOURCE_FILES})
99 # Test build targets - for debugging
100 add_executable(test_mon_req_encode mon/mon_common.c mon/mon_req.c mon/tests/test_mon_req_encode.c mon/mon_req_encode.c)
101 target_link_libraries(test_mon_req_encode jansson talloc glib-2.0)
103 add_executable(test_mon_req_decode mon/mon_common.c mon/mon_req.c mon/tests/test_mon_req_decode.c mon/mon_req_decode.c)
104 target_link_libraries(test_mon_req_decode jansson talloc glib-2.0)
106 add_executable(test_mon_resp_encode mon/mon_common.c mon/mon_req.c mon/mon_resp.c mon/mon_resp_encode.c common/tr_name.c mon/tests/test_mon_resp_encode.c)
107 target_link_libraries(test_mon_resp_encode jansson talloc glib-2.0)