Skip to content

Commit

Permalink
Update library name to lytroIO
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin TOUZOT committed Dec 21, 2023
1 parent 6387ac4 commit 1913bbb
Show file tree
Hide file tree
Showing 13 changed files with 30 additions and 30 deletions.
32 changes: 16 additions & 16 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Copyright (c) 2023 LytroIO authors distributed under the GPL-3.0 license (https://opensource.org/license/gpl-3-0/)
# Copyright (c) 2023 lytroIO authors distributed under the GPL-3.0 license (https://opensource.org/license/gpl-3-0/)

cmake_minimum_required(VERSION 3.10...3.21)

#------------------------------------------------------------
# Start LytroIO project
# Start lytroIO project
#------------------------------------------------------------
project(lytroio
project(lytroIO
VERSION "0.0.0"
DESCRIPTION "A C++ library to process Lytro files"
HOMEPAGE_URL "https://github.com/mtouzot/lytroIO"
LANGUAGES CXX)
message(STATUS "Building LytroIO v${CMAKE_PROJECT_VERSION}")
message(STATUS "Building lytroIO v${CMAKE_PROJECT_VERSION}")

include(GNUInstallDirs)

Expand Down Expand Up @@ -77,11 +77,11 @@ set(SOURCES
add_subdirectory(libs)

# Create the library target
add_library(LytroIO ${PUBLIC_HEADERS} ${PRIVATE_HEADERS} ${SOURCES})
target_link_libraries(LytroIO PRIVATE nlohmann_json::nlohmann_json)
add_library(lytroIO ${PUBLIC_HEADERS} ${PRIVATE_HEADERS} ${SOURCES})
target_link_libraries(lytroIO PRIVATE nlohmann_json::nlohmann_json)

# Add the include directories
target_include_directories(LytroIO
target_include_directories(lytroIO
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
Expand All @@ -90,7 +90,7 @@ target_include_directories(LytroIO
)

# Set the library version
set_target_properties(LytroIO PROPERTIES
set_target_properties(lytroIO PROPERTIES
VERSION ${PROJECT_VERSION}
SOVERSION 1
)
Expand All @@ -102,8 +102,8 @@ else()
endif()

# Install the library
install(TARGETS LytroIO
EXPORT LytroIOConfig
install(TARGETS lytroIO
EXPORT lytroIOConfig
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
RUNTIME DESTINATION bin
Expand All @@ -117,22 +117,22 @@ install(DIRECTORY include/lytroio
)

# Generate and install the CMake configuration files
install(EXPORT LytroIOConfig
NAMESPACE LytroIO::
DESTINATION lib/cmake/LytroIO
install(EXPORT lytroIOConfig
NAMESPACE lytroIO::
DESTINATION lib/cmake/lytroIO
)

# Create a package
include(CMakePackageConfigHelpers)
write_basic_package_version_file(
${CMAKE_CURRENT_BINARY_DIR}/LytroIOConfigVersion.cmake
${CMAKE_CURRENT_BINARY_DIR}/lytroIOConfigVersion.cmake
VERSION ${PROJECT_VERSION}
COMPATIBILITY SameMajorVersion
)

install(FILES
${CMAKE_CURRENT_BINARY_DIR}/LytroIOConfigVersion.cmake
DESTINATION lib/cmake/LytroIO
${CMAKE_CURRENT_BINARY_DIR}/lytroIOConfigVersion.cmake
DESTINATION lib/cmake/lytroIO
)

#------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions docs/custom/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
<meta name="viewport" content="width=device-width, initial-scale=1"/>

<!-- BEGIN opengraph metadata -->
<meta property="og:title" content="LytroIO" />
<meta property="og:title" content="lytroIO" />
<meta property="og:description" content="A simple to use C++ library to process Lytro files (.lfp, .lfr, .raw, ...)." />
<meta property="og:url" content="https://mtouzot.github.io/lytroIO/" />
<!-- END opengraph metadata -->

<!-- BEGIN twitter metadata -->
<meta name="twitter:title" content="LytroIO" />
<meta name="twitter:title" content="lytroIO" />
<meta name="twitter:description" content="A simple to use C++ library to process Lytro files (.lfp, .lfr, .raw, ...)." />
<!-- END twitter metadata -->

Expand Down
2 changes: 1 addition & 1 deletion examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Copyright (c) 2023 LytroIO authors distributed under the GPL-3.0 license (https://opensource.org/license/gpl-3-0/)
# Copyright (c) 2023 lytroIO authors distributed under the GPL-3.0 license (https://opensource.org/license/gpl-3-0/)

add_subdirectory(lytroreader)
4 changes: 2 additions & 2 deletions examples/lytroreader/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) 2023 LytroIO authors distributed under the GPL-3.0 license (https://opensource.org/license/gpl-3-0/)
# Copyright (c) 2023 lytroIO authors distributed under the GPL-3.0 license (https://opensource.org/license/gpl-3-0/)

add_executable(lytroreader lytroreader.cpp)

target_link_libraries(lytroreader LytroIO)
target_link_libraries(lytroreader lytroIO)
2 changes: 1 addition & 1 deletion examples/lytroreader/lytroreader.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023-present, Martin TOUZOT & LytroIO contributors.
// Copyright (c) 2023-present, Martin TOUZOT & lytroIO contributors.
// Distributed under the GPL-3.0 Licence
// (https://opensource.org/license/gpl-3-0/)

Expand Down
2 changes: 1 addition & 1 deletion include/lytroio/lytrostream/lytrodecoder.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023-present, Martin TOUZOT & LytroIO contributors.
// Copyright (c) 2023-present, Martin TOUZOT & lytroIO contributors.
// Distributed under the GPL-3.0 Licence
// (https://opensource.org/license/gpl-3-0/)
/** \file include/lytrioio/lytrostream/lytrodecoder.hpp
Expand Down
2 changes: 1 addition & 1 deletion include/lytroio/lytrostream/lytroelement.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023-present, Martin TOUZOT & LytroIO contributors.
// Copyright (c) 2023-present, Martin TOUZOT & lytroIO contributors.
// Distributed under the GPL-3.0 Licence
// (https://opensource.org/license/gpl-3-0/)
/** \file include/lytrioio/lytrostream/lytroelement.hpp
Expand Down
2 changes: 1 addition & 1 deletion include/lytroio/lytrostream/lytrofile.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023-present, Martin TOUZOT & LytroIO contributors.
// Copyright (c) 2023-present, Martin TOUZOT & lytroIO contributors.
// Distributed under the GPL-3.0 Licence
// (https://opensource.org/license/gpl-3-0/)
/** \file include/lytrioio/lytrostream/lytrofile.hpp
Expand Down
2 changes: 1 addition & 1 deletion libs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ set(JSON_Install OFF CACHE INTERNAL "")
add_subdirectory(nlohmann_json)
install(TARGETS nlohmann_json
DESTINATION lib
EXPORT LytroIOConfig)
EXPORT lytroIOConfig)
2 changes: 1 addition & 1 deletion src/lytrostream/lytrodecoder.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023-present, Martin TOUZOT & LytroIO contributors.
// Copyright (c) 2023-present, Martin TOUZOT & lytroIO contributors.
// Distributed under the GPL-3.0 Licence
// (https://opensource.org/license/gpl-3-0/)

Expand Down
2 changes: 1 addition & 1 deletion src/lytrostream/lytroelement.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023-present, Martin TOUZOT & LytroIO contributors.
// Copyright (c) 2023-present, Martin TOUZOT & lytroIO contributors.
// Distributed under the GPL-3.0 Licence
// (https://opensource.org/license/gpl-3-0/)

Expand Down
2 changes: 1 addition & 1 deletion src/lytrostream/lytrofile.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023-present, Martin TOUZOT & LytroIO contributors.
// Copyright (c) 2023-present, Martin TOUZOT & lytroIO contributors.
// Distributed under the GPL-3.0 Licence
// (https://opensource.org/license/gpl-3-0/)

Expand Down
2 changes: 1 addition & 1 deletion src/lytrostream/utils.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023-present, Martin TOUZOT & LytroIO contributors.
// Copyright (c) 2023-present, Martin TOUZOT & lytroIO contributors.
// Distributed under the GPL-3.0 Licence
// (https://opensource.org/license/gpl-3-0/)

Expand Down

0 comments on commit 1913bbb

Please sign in to comment.