X-Git-Url: http://www.project-moonshot.org/gitweb/?p=trust_router.git;a=blobdiff_plain;f=CMakeLists.txt;h=0761bfc207699cc5f6d47824f37ce03c2569f9d3;hp=a0c2ff6890ca876b183008e0da5962bea86dea0a;hb=HEAD;hpb=36a471285d0cafbbe74f49d736e472dbfe317a38 diff --git a/CMakeLists.txt b/CMakeLists.txt index a0c2ff6..0761bfc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,11 @@ include_directories(${GLIB_INCLUDE_DIRS}) include_directories(include) +# Fill these in so CLion doesn't complain. The real versions are set in the Makefile +add_definitions(-DPACKAGE_VERSION="built-with-cmake" + -DPACKAGE_NAME="Moonshot Trust Router" + -DPACKAGE_BUGREPORT="bugs@painless-security.com") + set(SOURCE_FILES common/tests/cfg_test.c common/tests/commtest.c @@ -29,7 +34,7 @@ set(SOURCE_FILES common/tr_debug.c common/tr_dh.c common/tr_filter.c - common/tr_gss.c + common/tr_gss_names.c common/tr_idp.c common/tr_mq.c common/tr_msg.c @@ -57,7 +62,7 @@ set(SOURCE_FILES include/tr_debug.h include/tr_event.h include/tr_filter.h - include/tr_gss.h + include/tr_gss_names.h include/tr_idp.h include/tr_mq.h include/tr_msg.h @@ -90,18 +95,20 @@ set(SOURCE_FILES trp/trp_rtable.c trp/trp_upd.c trp/trpc.c - trp/trps.c include/tr_name_internal.h mon/tr_mon_req.c mon/tr_mon_req_encode.c mon/tr_mon_req_decode.c - mon/tr_mon_resp.c mon/tr_mon.c mon/tr_mon_resp_encode.c) + trp/trps.c include/tr_name_internal.h mon/mon_req.c mon/mon_req_encode.c mon/mon_req_decode.c + mon/mon_resp.c mon/mon_common.c mon/mon_resp_encode.c mon/mon_resp_decode.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 mon/mons_handlers.c include/mons_handlers.h tr/tr_tid_mons.c tr/tr_tid_mons.c trp/trp_route.c include/trp_route.h trp/trp_rtable_encoders.c trp/trp_route_encoders.c trp/trp_peer.c include/trp_peer.h trp/trp_peer_encoders.c trp/trp_ptable_encoders.c common/tr_idp_encoders.c common/tr_comm_encoders.c common/tr_rp_client.c include/tr_rp_client.h common/tr_rp_client_encoders.c common/tr_filter_encoders.c common/tr_config_encoders.c common/tr_config_filters.c common/tr_config_realms.c common/tr_config_rp_clients.c common/tr_config_orgs.c common/tr_config_comms.c common/tr_list.c include/tr_list.h include/tr_constraint_internal.h include/tr_json_util.h common/tr_aaa_server.c include/tr_aaa_server.h common/tr_inet_util.c include/tr_inet_util.h) # Does not actually build! add_executable(trust_router ${SOURCE_FILES}) +add_executable(trmon mon/monc.c tr/trmon_main.c common/tr_gss_client.c include/tr_gss_client.h include/tr_json_util.h) + # Test build targets - for debugging -add_executable(test_mon_req_encode mon/tr_mon.c mon/tr_mon_req.c mon/tests/test_mon_req_encode.c mon/tr_mon_req_encode.c) +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 include/tr_json_util.h) target_link_libraries(test_mon_req_encode jansson talloc glib-2.0) -add_executable(test_mon_req_decode mon/tr_mon.c mon/tr_mon_req.c mon/tests/test_mon_req_decode.c mon/tr_mon_req_decode.c) +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 include/tr_json_util.h) target_link_libraries(test_mon_req_decode jansson talloc glib-2.0) -add_executable(test_mon_resp_encode mon/tr_mon.c mon/tr_mon_req.c mon/tr_mon_resp.c mon/tr_mon_resp_encode.c common/tr_name.c mon/tests/test_mon_resp_encode.c) +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 include/tr_json_util.h) target_link_libraries(test_mon_resp_encode jansson talloc glib-2.0)