mirror of https://github.com/joan2937/pigpio
make VCD converter configurable
This commit is contained in:
parent
d490e04103
commit
3ca60ca5a2
|
@ -11,6 +11,7 @@ option(BUILD_SHARED_LIBS "Create shared libraries" ON)
|
|||
option(MAN_PAGES "Create manual pages" OFF)
|
||||
option(SOCKET_INTERFACE "Build socket interface" ON)
|
||||
option(TESTS "Build tests" OFF)
|
||||
option(PIG2VCD "Build VCD format converter" OFF)
|
||||
|
||||
add_compile_options(-Wall)
|
||||
|
||||
|
@ -79,6 +80,7 @@ if(SOCKET_INTERFACE)
|
|||
endif()
|
||||
endif()
|
||||
|
||||
if(PIG2VCD)
|
||||
# pig2vcd
|
||||
add_executable(pig2vcd pig2vcd.c command.c)
|
||||
target_link_libraries(pig2vcd Threads::Threads)
|
||||
|
@ -90,6 +92,7 @@ install(TARGETS pig2vcd
|
|||
RUNTIME DESTINATION bin
|
||||
INCLUDES DESTINATION include
|
||||
)
|
||||
endif()
|
||||
|
||||
# Configure and install project
|
||||
|
||||
|
|
Loading…
Reference in New Issue