Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
hmatuschek committed Jul 12, 2018
1 parent 255e9d6 commit 3842958
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 14 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ project(kochmorse)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/cmake)
include(InstallHeadersWithDirectory)

option(WITH_QSOCHAT "Enabled build of QSO chat commandline test tool." OFF)
option(WITH_TEXTGEN "Enabled build of text generation test tool." OFF)

find_package(Qt5Core REQUIRED)
find_package(Qt5Widgets REQUIRED)
find_package(Qt5Multimedia REQUIRED)
Expand Down
33 changes: 20 additions & 13 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,27 @@ qt5_add_resources(kochmorse_RCC_SOURCES ../resources.qrc)
add_executable(kochmorse WIN32 ${kochmorse_SOURCES} ${kochmorse_MOC_SOURCES} ${kochmorse_RCC_SOURCES})
target_link_libraries(kochmorse ${LIBS})

set(textgen_SOURCES textgen_cli.cc textgen.cc)
set(textgen_MOC_HEADERS textgen.hh)
qt5_wrap_cpp(textgen_MOC_SOURCES ${textgen_MOC_HEADERS})
install(TARGETS kochmorse DESTINATION bin)

add_executable(textgen WIN32 ${textgen_SOURCES} ${textgen_MOC_SOURCES})
target_link_libraries(textgen ${LIBS})

set(qsochat_SOURCES qsochat_cli.cc textgen.cc qsochat.cc)
set(qsochat_MOC_HEADERS textgen.hh qsochat.hh)
qt5_wrap_cpp(qsochat_MOC_SOURCES ${qsochat_MOC_HEADERS})
if (WITH_TEXTGEN)
set(textgen_SOURCES textgen_cli.cc textgen.cc)
set(textgen_MOC_HEADERS textgen.hh)
qt5_wrap_cpp(textgen_MOC_SOURCES ${textgen_MOC_HEADERS})

add_executable(qsochat WIN32 ${qsochat_SOURCES} ${qsochat_MOC_SOURCES} ${kochmorse_RCC_SOURCES})
target_link_libraries(qsochat ${LIBS})
add_executable(textgen WIN32 ${textgen_SOURCES} ${textgen_MOC_SOURCES})
target_link_libraries(textgen ${LIBS})

install(TARGETS kochmorse DESTINATION bin)
install(TARGETS textgen DESTINATION bin)
install(TARGETS qsochat DESTINATION bin)
install(TARGETS textgen DESTINATION bin)
endif (WITH_TEXTGEN)

if (WITH_QSOCHAT)
set(qsochat_SOURCES qsochat_cli.cc textgen.cc qsochat.cc)
set(qsochat_MOC_HEADERS textgen.hh qsochat.hh)
qt5_wrap_cpp(qsochat_MOC_SOURCES ${qsochat_MOC_HEADERS})

add_executable(qsochat WIN32 ${qsochat_SOURCES} ${qsochat_MOC_SOURCES} ${kochmorse_RCC_SOURCES})
target_link_libraries(qsochat ${LIBS})

install(TARGETS qsochat DESTINATION bin)
endif (WITH_QSOCHAT)
2 changes: 1 addition & 1 deletion text/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<center>
<h1>Koch Morse</h1>
<h3>version 3.3.0</h3>
<h4>http://github.com/hmatuschek/KochMorse</h4>
<h4><h ref="http://github.com/hmatuschek/kochmorse">http://github.com/hmatuschek/kochmorse</a></h4>
<h5><i>Copyright (C) 2007-2018 Hannes Matuschek, DM3MAT, hmatuschek[at]gmail[dot]com</i></h5>
</center>

Expand Down

0 comments on commit 3842958

Please sign in to comment.