Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ else()
endif()

# options
set(OPENDAQ_ENABLE_UNITY_LIBS ON CACHE BOOL "Unity builds for libraries")
opendaq_setup_common_build_options()
opendaq_setup_project_specific_build_options(${REPO_OPTION_PREFIX})
option(${REPO_OPTION_PREFIX}_ENABLE_EXAMPLE_APP "Enable ${REPO_NAME} example applications" ${PROJECT_IS_TOP_LEVEL})
Expand Down
1 change: 1 addition & 0 deletions changelog/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@

- [#3](https://github.com/openDAQ/LTStreamingModulesLegacy/pull/3) Import commit history from openDAQ SDK.
- [#4](https://github.com/openDAQ/LTStreamingModulesLegacy/pull/4) Project initial version.
- [#17](https://github.com/openDAQ/LTStreamingModulesLegacy/pull/17) Precompiled headers and unity builds through opendaq-cmake-utils v1.1.0.
2 changes: 1 addition & 1 deletion cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ include(FetchContent)
FetchContent_Declare(
opendaq-cmake-utils
GIT_REPOSITORY https://github.com/openDAQ/opendaq-cmake-utils.git
GIT_TAG v1.0.1
GIT_TAG v1.1.0
GIT_PROGRESS ON
)
FetchContent_MakeAvailable(opendaq-cmake-utils)
2 changes: 2 additions & 0 deletions modules/websocket_streaming_client_module/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ add_library(${LIB_NAME} SHARED ${SRC_Include}
)
add_library(${OPENDAQ_SDK_TARGET_NAMESPACE}::${LIB_NAME} ALIAS ${LIB_NAME})

opendaq_target_pch(${LIB_NAME} <opendaq/opendaq.h>)

if (MSVC)
target_compile_options(${LIB_NAME} PRIVATE /bigobj)
endif()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ target_link_libraries(${TEST_APP} PRIVATE ${OPENDAQ_SDK_TARGET_NAMESPACE}::opend
${OPENDAQ_SDK_TARGET_NAMESPACE}::${MODULE_NAME}
)

opendaq_target_pch(${TEST_APP} <opendaq/opendaq.h> <gtest/gtest.h>)

add_test(NAME ${TEST_APP}
COMMAND $<TARGET_FILE_NAME:${TEST_APP}>
WORKING_DIRECTORY $<TARGET_FILE_DIR:${TEST_APP}>
Expand Down
2 changes: 2 additions & 0 deletions modules/websocket_streaming_server_module/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ add_library(${LIB_NAME} SHARED ${SRC_Include}

add_library(${OPENDAQ_SDK_TARGET_NAMESPACE}::${LIB_NAME} ALIAS ${LIB_NAME})

opendaq_target_pch(${LIB_NAME} <opendaq/opendaq.h>)

if (MSVC)
target_compile_options(${LIB_NAME} PRIVATE /bigobj)
endif()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ target_link_libraries(${TEST_APP} PRIVATE ${OPENDAQ_SDK_TARGET_NAMESPACE}::opend
${OPENDAQ_SDK_TARGET_NAMESPACE}::${MODULE_NAME}
)

opendaq_target_pch(${TEST_APP} <opendaq/opendaq.h> <gtest/gtest.h>)

add_test(NAME ${TEST_APP}
COMMAND $<TARGET_FILE_NAME:${TEST_APP}>
WORKING_DIRECTORY $<TARGET_FILE_DIR:${TEST_APP}>
Expand Down
2 changes: 1 addition & 1 deletion opendaq_ref
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4757349a1db30721bead0cb695ec3a147913aef4
47593806ee16fbd5ea6b19f1f32309b583bb9a52
3 changes: 3 additions & 0 deletions shared/libraries/websocket_streaming/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ add_library(${LIB_NAME} STATIC ${SRC_Cpp}

add_library(${OPENDAQ_SDK_TARGET_NAMESPACE}::${BASE_NAME} ALIAS ${LIB_NAME})

opendaq_target_pch(${LIB_NAME} <opendaq/opendaq.h>)
opendaq_target_unity_libs(${LIB_NAME} BATCH_SIZE 4)

if(BUILD_64Bit OR BUILD_ARM)
set_target_properties(${LIB_NAME} PROPERTIES POSITION_INDEPENDENT_CODE ON)
else()
Expand Down
6 changes: 6 additions & 0 deletions shared/libraries/websocket_streaming/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ target_link_libraries(${TEST_APP} PRIVATE
set_target_properties(${TEST_APP} PROPERTIES DEBUG_POSTFIX _debug)
target_include_directories(${TEST_APP} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/include")

opendaq_target_pch(${TEST_APP} <opendaq/opendaq.h> <gtest/gtest.h>)

# test_app.cpp defines main().
set_source_files_properties(test_app.cpp PROPERTIES SKIP_UNITY_BUILD_INCLUSION ON)
opendaq_target_unity_tests(${TEST_APP} BATCH_SIZE 4)

add_test(NAME ${TEST_APP}
COMMAND $<TARGET_FILE_NAME:${TEST_APP}>
WORKING_DIRECTORY $<TARGET_FILE_DIR:${TEST_APP}>
Expand Down
Loading