From 4abd92e139b8d7ad22289b2b8ff5df0add54b0df Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Wed, 5 Jul 2023 13:11:18 +0200 Subject: [PATCH] Make ovni.h a public header of ovni target --- include/CMakeLists.txt | 2 -- src/emu/CMakeLists.txt | 4 ++-- src/rt/CMakeLists.txt | 5 +++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt index 958e128..5744b59 100644 --- a/include/CMakeLists.txt +++ b/include/CMakeLists.txt @@ -2,5 +2,3 @@ # SPDX-License-Identifier: GPL-3.0-or-later include_directories(${CMAKE_CURRENT_SOURCE_DIR}) - -install(FILES ovni.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) diff --git a/src/emu/CMakeLists.txt b/src/emu/CMakeLists.txt index 86ef689..14782cc 100644 --- a/src/emu/CMakeLists.txt +++ b/src/emu/CMakeLists.txt @@ -79,10 +79,10 @@ if(USE_MPI) find_package(MPI REQUIRED) add_executable(ovnisync ovnisync.c) target_link_libraries(ovnisync m MPI::MPI_C) - install(TARGETS ovnisync RUNTIME) + install(TARGETS ovnisync) else() message(STATUS "Disabling ovnisync as MPI is disabled") endif() -install(TARGETS ovniemu ovnidump ovnisort ovnitop RUNTIME) +install(TARGETS ovniemu ovnidump ovnisort ovnitop) install(FILES ovnitop.1 DESTINATION "${CMAKE_INSTALL_MANDIR}/man1") diff --git a/src/rt/CMakeLists.txt b/src/rt/CMakeLists.txt index d916de0..7dd429f 100644 --- a/src/rt/CMakeLists.txt +++ b/src/rt/CMakeLists.txt @@ -8,10 +8,11 @@ target_link_libraries(ovni parson common) target_include_directories(ovni PUBLIC "${CMAKE_SOURCE_DIR}/include") set_target_properties(ovni PROPERTIES VERSION 1.2.0 - SOVERSION 1) + SOVERSION 1 + PUBLIC_HEADER "${CMAKE_SOURCE_DIR}/include/ovni.h") add_library(ovni-static STATIC ovni.c) target_link_libraries(ovni-static parson-static common-static) target_include_directories(ovni-static PUBLIC "${CMAKE_SOURCE_DIR}/include") -install(TARGETS ovni LIBRARY) +install(TARGETS ovni)