From 22903a35be8cc2c1c3a378e1113c49fcd8fbb0f0 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Wed, 5 Feb 2014 10:37:03 +0000 Subject: [PATCH] Add an install target. Installs the library into the "right" place and installs the headers into the include/xpdev directory. This will make for a more unixy install someday maybe perhaps. --- src/xpdev/CMakeLists.txt | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/src/xpdev/CMakeLists.txt b/src/xpdev/CMakeLists.txt index 54b16e6041..3c390f44d7 100644 --- a/src/xpdev/CMakeLists.txt +++ b/src/xpdev/CMakeLists.txt @@ -155,3 +155,38 @@ CHECK_INCLUDE_FILES(alsa/asoundlib.h USE_ALSA_SOUND) if(HAS_INTTYPES_H) target_compile_definitions(xpdev PRIVATE USE_ALSA_SOUND) endif() + +set(INSTALL_HEADERS + conwrap.h + dat_file.h + datewrap.h + dirwrap.h + eventwrap.h + filewrap.h + gen_defs.h + genwrap.h + ini_file.h + link_list.h + msg_queue.h + multisock.h + netwrap.h + semfile.h + semwrap.h + sockwrap.h + str_list.h + strwrap.h + threadwrap.h + wrapdll.h + xp_dl.h + xp_syslog.h + xpbeep.h + xpdatetime.h + xpendian.h + xpevent.h + xpmap.h + xpprintf.h + xpsem.h +) + +install(TARGETS xpdev DESTINATION bin) +install(FILES ${INSTALL_HEADERS} DESTINATION include/xpdev) -- GitLab