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(MAN_PAGES "Create manual pages" OFF)
|
||||||
option(SOCKET_INTERFACE "Build socket interface" ON)
|
option(SOCKET_INTERFACE "Build socket interface" ON)
|
||||||
option(TESTS "Build tests" OFF)
|
option(TESTS "Build tests" OFF)
|
||||||
|
option(PIG2VCD "Build VCD format converter" OFF)
|
||||||
|
|
||||||
add_compile_options(-Wall)
|
add_compile_options(-Wall)
|
||||||
|
|
||||||
|
@ -79,17 +80,19 @@ if(SOCKET_INTERFACE)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# pig2vcd
|
if(PIG2VCD)
|
||||||
add_executable(pig2vcd pig2vcd.c command.c)
|
# pig2vcd
|
||||||
target_link_libraries(pig2vcd Threads::Threads)
|
add_executable(pig2vcd pig2vcd.c command.c)
|
||||||
|
target_link_libraries(pig2vcd Threads::Threads)
|
||||||
|
|
||||||
install(TARGETS pig2vcd
|
install(TARGETS pig2vcd
|
||||||
EXPORT ${PROJECT_NAME}Targets
|
EXPORT ${PROJECT_NAME}Targets
|
||||||
LIBRARY DESTINATION lib${LIB_SUFFIX}
|
LIBRARY DESTINATION lib${LIB_SUFFIX}
|
||||||
ARCHIVE DESTINATION lib${LIB_SUFFIX}
|
ARCHIVE DESTINATION lib${LIB_SUFFIX}
|
||||||
RUNTIME DESTINATION bin
|
RUNTIME DESTINATION bin
|
||||||
INCLUDES DESTINATION include
|
INCLUDES DESTINATION include
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Configure and install project
|
# Configure and install project
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue