cmake_minimum_required(VERSION 2.8.11) project(helix_web_services_client) enable_testing() # Find includes in corresponding build directories set(CMAKE_INCLUDE_CURRENT_DIR ON) # Instruct CMake to run moc automatically when needed. set(CMAKE_AUTOMOC ON) find_package(Qt5Core) find_package(Qt5Network) find_package(Qt5Test) find_package(Qt5WebSockets) include_directories( ${Qt5Core_INCLUDE_DIRS} ${Qt5Network_INCLUDE_DIRS} ${Qt5WebSockets_INCLUDE_DIRS} ) add_definitions( ${Qt5Core_DEFINITIONS} ${Qt5Network_DEFINITIONS} ${Qt5WebSockets_DEFINITIONS} ) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Core_EXECUTABLE_COMPILE_FLAGS} -Wall") set(SOURCE_FILES hws/Client.cpp hws/RequestError.cpp hws/Session.cpp ) add_library(helix_web_services_client STATIC ${SOURCE_FILES}) add_executable(HWSIntegrationTests test/ClientTests.cpp test/HWSIntegrationTests.cpp test/SessionTests.cpp ) add_test(HWSIntegrationTests HWSIntegrationTests) target_link_libraries(HWSIntegrationTests helix_web_services_client Qt5::Test Qt5::WebSockets Qt5::Network ) add_executable(Example Example.cpp ) target_link_libraries(Example helix_web_services_client Qt5::WebSockets Qt5::Network )
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 15741 | ptomiak | Branch HWS for my use. | ||
//guest/perforce_software/helix-web-services/main/build/helix_web_services_client_qt/CMakeLists.txt | |||||
#2 | 15448 | tjuricek |
Qt SDK revision: remove higher-level objects from the SDK. It's likely we could add higher-level objects that adapt the executeMethodDone and convert the variant maps to something, well, typed and easier to use. That's not in my current scope of work, however. |
||
#1 | 14050 | tjuricek | Prep versioned release directory for inclusion into Helix Sync app. |