Skip to content

Commit

Permalink
[build] Build but do not install test-srt
Browse files Browse the repository at this point in the history
yaneti authored and maxsharabayko committed Sep 20, 2021
1 parent 4d0fe61 commit f9a54a0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1062,10 +1062,14 @@ else()
message(FATAL_ERROR "Either ENABLE_STATIC or ENABLE_SHARED has to be ON!")
endif()

macro(srt_add_program name)
macro(srt_add_program_dont_install name)
add_executable(${name} ${ARGN})
target_include_directories(${name} PRIVATE apps)
target_include_directories(${name} PRIVATE common)
endmacro()

macro(srt_add_program name)
srt_add_program_dont_install(${name} ${ARGN})
install(TARGETS ${name} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
endmacro()

@@ -1276,7 +1280,7 @@ if (ENABLE_UNITTESTS AND ENABLE_CXX11)
SOURCES SOURCES_unittests
)

srt_add_program(test-srt ${SOURCES_unittests})
srt_add_program_dont_install(test-srt ${SOURCES_unittests})
srt_make_application(test-srt)
target_include_directories(test-srt PRIVATE ${SSL_INCLUDE_DIRS} ${GTEST_INCLUDE_DIRS})

0 comments on commit f9a54a0

Please sign in to comment.