From 2b8dfe43f8ef0da96e91958b6ec2016c173795a9 Mon Sep 17 00:00:00 2001 From: Hoernchen Date: Tue, 17 Jul 2012 22:46:43 +0200 Subject: [PATCH] fix win32 build Signed-off-by: Steve Markgraf --- src/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a7a4d5c..02076a0 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -67,7 +67,10 @@ endif() add_executable(rtl_sdr rtl_sdr.c) add_executable(rtl_tcp rtl_tcp.c) add_executable(rtl_test rtl_test.c) +set(INSTALL_TARGETS rtlsdr_shared rtlsdr_static rtl_sdr rtl_tcp rtl_test) + if(UNIX) +LIST(APPEND INSTALL_TARGETS rtl_fm) add_executable(rtl_fm rtl_fm.c) endif() @@ -102,7 +105,7 @@ endif() ######################################################################## # Install built library files & utilities ######################################################################## -install(TARGETS rtlsdr_shared rtlsdr_static rtl_sdr rtl_tcp rtl_test rtl_fm +install(TARGETS ${INSTALL_TARGETS} LIBRARY DESTINATION lib${LIB_SUFFIX} # .so/.dylib file ARCHIVE DESTINATION lib${LIB_SUFFIX} # .lib file RUNTIME DESTINATION bin # .dll file