Skip to content

Commit

Permalink
Push docs to remote
Browse files Browse the repository at this point in the history
  • Loading branch information
cbuahin committed Dec 20, 2023
1 parent 834460f commit de89ab1
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
44 changes: 21 additions & 23 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Author: Caleb Buahin
#
# This file is part of HydroCouple.
#
#
# HydroCouple is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option) any
Expand All @@ -17,15 +17,15 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with HydroCouple. If not, see <http://www.gnu.org/licenses/>.
#
#
# Copyright: 2004-2023
#

cmake_minimum_required (VERSION 3.14)

project(
HydroCouple
VERSION 2.0.0
HydroCouple
VERSION 2.0.0
LANGUAGES C CXX
HOMEPAGE_URL "https://hydrocouple.org"
DESCRIPTION "HydroCouple Interface Definitions for C++ and Python"
Expand All @@ -40,7 +40,6 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core)


add_library(
${PROJECT_NAME}
INTERFACE
Expand All @@ -53,50 +52,49 @@ add_library(
src/stdafx.cpp
)


target_include_directories(HydroCouple
PUBLIC INTERFACE
$<BUILD_INTERFACE:${HYDROCOUPLE_BINARY_DIR}/include>
$<INSTALL_INTERFACE:/include>
target_include_directories(${PROJECT_NAME}
PUBLIC INTERFACE
$<BUILD_INTERFACE:${HYDROCOUPLE_BINARY_DIR}/include>
$<INSTALL_INTERFACE:/include>
)

target_link_libraries(HydroCouple PUBLIC INTERFACE Qt${QT_VERSION_MAJOR}::Core)
target_link_libraries(${PROJECT_NAME} PUBLIC INTERFACE Qt${QT_VERSION_MAJOR}::Core)

target_compile_definitions(HydroCouple PUBLIC INTERFACE HYDROCOUPLE_LIBRARY)
target_compile_definitions(${PROJECT_NAME} PUBLIC INTERFACE HYDROCOUPLE_LIBRARY)

install(
TARGETS HydroCouple
EXPORT HydroCoupleTargets
TARGETS ${PROJECT_NAME}
EXPORT ${PROJECT_NAME}Targets
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
RUNTIME DESTINATION bin
INCLUDES DESTINATION include
)

install(
EXPORT HydroCoupleTargets
FILE HydroCoupleTargets.cmake
NAMESPACE HydroCouple::
DESTINATION lib/cmake/HydroCouple
EXPORT ${PROJECT_NAME}Targets
FILE ${PROJECT_NAME}Targets.cmake
NAMESPACE ${PROJECT_NAME}::
DESTINATION lib/cmake/${PROJECT_NAME}
)

include(GNUInstallDirs)
include(CMakePackageConfigHelpers)

write_basic_package_version_file(
${PROJECT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake
VERSION ${PACKAGE_VERSION}
VERSION ${PROJECT_VERSION}
COMPATIBILITY SameMajorVersion
)

configure_package_config_file(
${PROJECT_SOURCE_DIR}/${PROJECT_NAME}Config.cmake.in
${PROJECT_SOURCE_DIR}/cmake/${PROJECT_NAME}Config.cmake.in
${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake
INSTALL_DESTINATION lib/cmake/${PROJECT_NAME}Library
INSTALL_DESTINATION lib/cmake/${PROJECT_NAME}
)

install(
FILES
FILES
${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake
${PROJECT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake
License.md
Expand All @@ -112,7 +110,7 @@ install(
add_custom_target(my_package
COMMAND ${CMAKE_MAKE_PROGRAM} package
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
DEPENDS HydroCouple
DEPENDS ${PROJECT_NAME}
)

include(CMakeFindDependencyMacro)
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ The HydroCouple interface definition header files.

Use of the HydroCouple header files requires the following frameworks and libraries:

* Qt 5.x.x or Qt 6.x.x
* CMake 3.10 or higher

## Documentation
Expand Down
3 changes: 3 additions & 0 deletions cmake/HydroCoupleConfig.cmake.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@PACKAGE_INIT@

check_required_components(HydroCouple)

0 comments on commit de89ab1

Please sign in to comment.