Fix "make install" on Unix and add tests for it to CI scripts
Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
parent
58e91c4304
commit
29f0ef6e17
3 changed files with 28 additions and 12 deletions
|
@ -120,12 +120,18 @@ if(BUILD_TESTING)
|
|||
add_subdirectory(tests)
|
||||
endif()
|
||||
|
||||
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/include/os/${system_name}/os_platform_public.h")
|
||||
set(os_platform_public_h "${CMAKE_CURRENT_SOURCE_DIR}/include/os/${system_name}/os_platform_public.h")
|
||||
else()
|
||||
set(os_platform_public_h "${CMAKE_CURRENT_SOURCE_DIR}/include/os/posix/os_platform_public.h")
|
||||
endif()
|
||||
|
||||
install(
|
||||
FILES
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/include/os/os_public.h"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/include/os/os_decl_attributes.h"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/include/os/os_decl_attributes_sal.h"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/include/os/${system_name}/os_platform_public.h"
|
||||
"${os_platform_public_h}"
|
||||
DESTINATION
|
||||
"${CMAKE_INSTALL_INCLUDEDIR}/ddsc/os"
|
||||
COMPONENT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue