File tree Expand file tree Collapse file tree 3 files changed +21
-10
lines changed
Expand file tree Collapse file tree 3 files changed +21
-10
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,13 @@ if(OPENDAQ_DEVICE_EXAMPLE_ENABLE_SERVER_APP)
3030 set (OPENDAQ_ENABLE_NATIVE_STREAMING ON CACHE BOOL "" FORCE)
3131endif ()
3232
33+ if (OPENDAQ_ENABLE_TESTS)
34+ message (STATUS "Unit tests are ENABLED" )
35+ enable_testing ()
36+ endif ()
37+
3338add_subdirectory (external)
39+ message (STATUS "Variable OPENDAQ_MODULES_DIR = ${OPENDAQ_MODULES_DIR} " )
3440add_subdirectory (example_module)
3541
3642if (OPENDAQ_DEVICE_EXAMPLE_ENABLE_SERVER_APP)
Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
55 message (FATAL_ERROR "In-source build is not supported!" )
66endif ()
77
8- include (FetchContent)
8+ # include(FetchContent)
99
1010add_subdirectory (openDAQ)
Original file line number Diff line number Diff line change 11set (OPENDAQ_ENABLE_TESTS false )
22
3- FetchContent_Declare(
4- openDAQ
5- GIT_REPOSITORY https://github.com/openDAQ/openDAQ.git
6- GIT_TAG v3.20.1
7- GIT_PROGRESS ON
8- SYSTEM
9- FIND_PACKAGE_ARGS 3.20.1 GLOBAL
10- )
3+ # FetchContent_Declare(
4+ # openDAQ
5+ # GIT_REPOSITORY https://github.com/openDAQ/openDAQ.git
6+ # GIT_TAG v3.20.1
7+ # GIT_PROGRESS ON
8+ # SYSTEM
9+ # FIND_PACKAGE_ARGS 3.20.1 GLOBAL
10+ # )
1111
12- FetchContent_MakeAvailable(openDAQ)
12+ # FetchContent_MakeAvailable(openDAQ)
13+ # if(DEFINED ENV{openDAQ_ROOT})
14+ # list(APPEND CMAKE_PREFIX_PATH $ENV{openDAQ_ROOT}/lib/cmake)
15+ # endif()
16+ find_package (openDAQ 3.20.4 REQUIRED)
17+ message (STATUS "OpenDAQ found: ${openDAQ_LIBRARIES} " )
You can’t perform that action at this time.
0 commit comments