From 8c392d6681ae61717350e17e07a9487ed3e15145 Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Sun, 28 Mar 2021 20:13:16 +0300 Subject: Porting to Haiku --- CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 75883966..9fe62ba4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -324,6 +324,9 @@ endif () if (UNIX) target_link_libraries (app PUBLIC m) endif () +if (HAIKU) + target_link_libraries (app PUBLIC m network bsd) +endif () # Deployment. if (MSYS) @@ -342,6 +345,13 @@ if (MSYS) if (INSTALL_THE_FOUNDATION) install (PROGRAMS $ DESTINATION .) endif () +elseif (HAIKU) + install (TARGETS app DESTINATION .) + if (NOT ENABLE_RESOURCE_EMBED) + target_compile_definitions (app PUBLIC + LAGRANGE_EMB_BIN="${CMAKE_INSTALL_PREFIX}/resources.lgr") + install (FILES ${EMB_BIN} DESTINATION .) + endif () elseif (UNIX AND NOT APPLE) set_target_properties (app PROPERTIES INSTALL_RPATH_USE_LINK_PATH YES -- cgit v1.2.3