Blame view

test/CMakeLists.txt 747 Bytes
68753efb   Peter M. Groen   [FIX] Setting up ...
1
2
3
4
5
6
7
8
9
10
11
  #****************************************************************************
  #* Copyright (c) 2023 Open Systems Development B.V.
  #*****************************************************************************
  #
  # Don't call this file directly from cmake.
  # This file is included from the upper directory.
  #
  # Build rules for the MQTT Library
  
  add_executable(topictest
      TopicLengthTest.cpp
5cd80369   Peter M. Groen   Setting up Sledge...
12
      SledgeHammerTest.cpp
68753efb   Peter M. Groen   [FIX] Setting up ...
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  )
  
  target_include_directories(topictest PRIVATE
      ${CMAKE_CIRRENT_SOURECE_DIR}
      ../include
  )
  
  target_link_libraries(topictest PRIVATE
      gmock_main
      gmock
      gtest
      mqtt-cpp
  )
  
  add_test(NAME topictest COMMAND topictest)
  
  set_tests_properties(topictest PROPERTIES
      WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
  )