From 70a77cbe41c5dd2c4af639e30c0cce3cd5106be9 Mon Sep 17 00:00:00 2001 From: Matthew Budd Date: Sat, 20 Jun 2020 00:53:18 -0400 Subject: [PATCH] Added install target to cmake. --- pipelines/linux_build.sh | 3 ++- src/CMakeLists.txt | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pipelines/linux_build.sh b/pipelines/linux_build.sh index e48bacb1..f4a979ab 100755 --- a/pipelines/linux_build.sh +++ b/pipelines/linux_build.sh @@ -87,10 +87,11 @@ echo "Num CPU: `nproc`"; mkdir build; cd build; cmake \ -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX/usr \ -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \ .. make -j `nproc` -#DESTDIR=$INSTALL_PREFIX make -j `nproc` install +make install # Debug via ssh if necessary if [ ! -z $APPVEYOR_SSH_BLOCK ]; then diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index fb877146..46c677c6 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -352,3 +352,6 @@ target_link_libraries( fceux ${LUA_LDFLAGS} ${SYS_LIBS} ) + +install( TARGETS fceux + RUNTIME bin )