Skip to content

Commit

Permalink
Install trn
Browse files Browse the repository at this point in the history
Start building up install image for packaging with the base trn
executable.
  • Loading branch information
LegalizeAdulthood committed Mar 6, 2024
1 parent baeaa33 commit 3cd9cdf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

include(CTest)
include(GnuInstallDirs)

if(WIN32)
find_package(pdcurses REQUIRED)
Expand All @@ -18,6 +19,8 @@ endif()

set_property(GLOBAL PROPERTY USE_FOLDERS ON)

set(CMAKE_INSTALL_PREFIX "install")

set(trn_text_files
HACKERSGUIDE.txt
INIT.txt
Expand All @@ -36,6 +39,7 @@ source_group("CMake Scripts" REGULAR_EXPRESSION "^.*\\.cmake$")
source_group("VcPkg Files" FILES vcpkg.json)
source_group("Text Files" FILES ${trn_text_files})
target_link_libraries(trn PUBLIC libtrn)
install(TARGETS trn DESTINATION ${CMAKE_INSTALL_BINDIR})

add_subdirectory(config)
add_subdirectory(inews)
Expand Down

0 comments on commit 3cd9cdf

Please sign in to comment.