Commit f3ba2022cc02f7367f17c15e05ddb547a462244f

Authored by Moritz W
Committed by Moritz Wirger
1 parent fb6049b3

Add if statement to check for building tests

Showing 1 changed file with 5 additions and 0 deletions
hueplusplus/CMakeLists.txt
... ... @@ -10,3 +10,8 @@ set_property(TARGET hueplusplusstatic PROPERTY CXX_STANDARD 14)
10 10 set_property(TARGET hueplusplusstatic PROPERTY CXX_EXTENSIONS OFF)
11 11 install(TARGETS hueplusplusstatic DESTINATION lib)
12 12 install(FILES ${hueplusplus_HEADERS} DESTINATION include)
  13 +
  14 +if(hueplusplus_TESTS)
  15 + set(HuePlusPlus_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
  16 + add_subdirectory("test")
  17 +endif()
... ...