Skip to content

Commit

Permalink
cmake: install library and executables
Browse files Browse the repository at this point in the history
  • Loading branch information
1ace committed Aug 24, 2019
1 parent 5df2be0 commit 7b45e50
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Expand Up @@ -14,13 +14,15 @@ add_library(altrace_record SHARED
altrace_common.c
)
target_link_libraries(altrace_record dl)
install(TARGETS altrace_record)

add_executable(altrace_cli
altrace_cli.c
altrace_playback.c
altrace_common.c
)
target_link_libraries(altrace_cli dl)
install(TARGETS altrace_cli)

option(ALTRACE_WX "Build wxWidgets-based GUI" TRUE)
if(ALTRACE_WX)
Expand All @@ -40,6 +42,7 @@ if(ALTRACE_WX)
)
include(${wxWidgets_USE_FILE})
target_link_libraries(altrace_wx "dl;${wxWidgets_LIBRARIES}")
install(TARGETS altrace_wx)
else()
MESSAGE(STATUS "wxWidgets not found. GUI support is disabled.")
endif()
Expand Down

0 comments on commit 7b45e50

Please sign in to comment.