File tree Expand file tree Collapse file tree 4 files changed +18
-8
lines changed
Expand file tree Collapse file tree 4 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -81,9 +81,15 @@ endif()
8181
8282# Project construction ...
8383# src files ...
84- file (GLOB MY_SOURCE_FILES "include/cpprest/*.h" "include/cpprest/details/*.h"
84+ file (GLOB MY_SOURCE_FILES "include/cpprest/*.h" "include/cpprest/details/*.h" "include/openapi_pb/pb_source/*.*"
8585"include/tigerapi/push_socket/*.h" "include/tigerapi/*.h" "src/*.cpp" "src/push_socket/*.cpp" )
86- add_library (${PROJECT_NAME} cpprest/ ${MY_SOURCE_FILES} )
86+ add_library (${PROJECT_NAME} cpprest/ ${MY_SOURCE_FILES} )
87+ message (MY_SOURCE_FILES " ${MY_SOURCE_FILES} " )
88+ # 确保生成动态库
89+ set_target_properties (${PROJECT_NAME} PROPERTIES
90+ SOVERSION ${PROJECT_VERSION}
91+ VERSION ${PROJECT_VERSION}
92+ )
8793
8894# headers search paths ...
8995#set(HEADER_SEARCH_PATHS ${CPPREST_INCLUDE_DIR} ${Boost_INCLUDE_DIR} ${OPENSSL_INCLUDE_DIR})
@@ -125,7 +131,9 @@ endif()
125131
126132install (DIRECTORY include /
127133 DESTINATION "include"
128- FILES_MATCHING PATTERN "*.h"
134+ FILES_MATCHING
135+ PATTERN "*.h"
136+ PATTERN "*.cc"
129137 )
130138
131139install (TARGETS ${PROJECT_NAME}
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ if(UNIX) # Darwing or Linux
3434
3535
3636 if (APPLE )
37+ # set(CMAKE_OSX_DEPLOYMENT_TARGET "13.7")
3738 # file(GLOB OPENSSL_ROOT_DIR /usr/local/Cellar/openssl*/*)
3839 file (GLOB OPENSSL_ROOT_DIR /usr/local/opt/openssl/* /opt/homebrew/Cellar/openssl@3/*)
3940 # Prefer the latest (make the latest one first)
Original file line number Diff line number Diff line change @@ -440,7 +440,7 @@ class TestTigerApi {
440440 tigerapi->post (POSITIONS, obj);
441441 }
442442};
443-
443+ //
444444void position_changed_callback (const tigeropen::push::pb::PositionData& data) {
445445 ucout << " Position changed:" << std::endl;
446446 ucout << " - symbol: " << utility::conversions::to_string_t (data.symbol ()) << std::endl;
@@ -465,9 +465,9 @@ int main()
465465 /* ************************* set config **********************/
466466 ClientConfig config = ClientConfig ();
467467#if 1
468- config.private_key = U (" " );
469- config.tiger_id = U (" " );
470- config.account = U (" " );
468+ // config.private_key = U("");
469+ // config.tiger_id = U("");
470+ // config.account = U("");
471471#else
472472 config.private_key = U("");
473473 config.tiger_id = U("");
@@ -493,7 +493,7 @@ int main()
493493
494494 if (input == " exit" ) {
495495 std::cout << " Exiting loop." << std::endl;
496- push_client->disconnect ();
496+ // push_client->disconnect();
497497 break ;
498498 }
499499 // Process other commands or input here
Original file line number Diff line number Diff line change @@ -316,6 +316,7 @@ void TIGER_API::PushSocket::handle_connect(const boost::system::error_code& erro
316316
317317void TIGER_API::PushSocket::handle_handshake (const boost::system::error_code& error)
318318{
319+ LOG (INFO) << " handshake callback" ;
319320 try
320321 {
321322 if (!error)
You can’t perform that action at this time.
0 commit comments