Skip to content

Commit

Permalink
Add instalation with CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
Dolfost committed Aug 23, 2024
1 parent 1a87162 commit cacae7f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ if (NOT DEFINED TARTAN_TESTING AND
enable_testing()
add_subdirectory(tests)
endif()

add_subdirectory(install)
17 changes: 17 additions & 0 deletions install/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
include(GNUInstallDirs)

install(TARGETS tt_borad
EXPORT tt_board_export
)
install(TARGETS tt_chess
EXPORT tt_chess_export
)

install(EXPORT tt_board_export
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/board
NAMESPACE tt::
)
install(EXPORT tt_chess_export
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/chess
NAMESPACE tt::
)

0 comments on commit cacae7f

Please sign in to comment.