Skip to content
Snippets Groups Projects
Commit 813a0a46 authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers
Browse files

ensure that demo is also installed

parent bee9f5a6
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ rm -rf $CACHE ...@@ -22,7 +22,7 @@ rm -rf $CACHE
# #
cmake -S . -B $BUILD_PATH -DCMAKE_BUILD_TYPE=debug cmake -S . -B $BUILD_PATH -DCMAKE_BUILD_TYPE=debug
cmake --build $BUILD_PATH cmake --build $BUILD_PATH
cmake --install $BUILD_PATH -v --prefix /tmp/fggl-lib cmake --install $BUILD_PATH --prefix /tmp/fggl-lib
# #
# additional stuff # additional stuff
......
...@@ -23,3 +23,13 @@ target_link_libraries(demo spdlog::spdlog) ...@@ -23,3 +23,13 @@ target_link_libraries(demo spdlog::spdlog)
# rssources # rssources
file(GLOB_RECURSE data data/*) file(GLOB_RECURSE data data/*)
file(COPY ${data} DESTINATION data ) file(COPY ${data} DESTINATION data )
install(
TARGETS demo
RUNTIME
DESTINATION ${CMAKE_INSTALL_BINDIR}
)
install(
DIRECTORY data
DESTINATION ${CMAKE_INSTALL_DATADIR}
)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment