Skip to content

Commit

Permalink
Use the lxqt-build-tools/lxqt_create_portable_headers
Browse files Browse the repository at this point in the history
Drop the local version.
  • Loading branch information
luis-pereira committed Oct 14, 2016
1 parent e902734 commit 4d5c839
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 38 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Expand Up @@ -27,6 +27,7 @@ find_package(lxqt REQUIRED QUIET)

include(LXQtTranslate)
include(LXQtCreatePkgConfigFile)
include(LXQtCreatePortableHeaders)
include(LXQtCompilerSettings NO_POLICY_SCOPE)

include(GNUInstallDirs) # Standard directories for installation
Expand Down
8 changes: 4 additions & 4 deletions client/CMakeLists.txt
Expand Up @@ -172,11 +172,11 @@ target_compile_definitions(${PROJECT_NAME}

export(TARGETS ${PROJECT_NAME} FILE "${CMAKE_BINARY_DIR}/${PROJECT_NAME}-targets.cmake")

include(create_portable_headers)

create_portable_headers(${PROJECT_NAME}_PORTABLE_HEADERS
NAMESPACE "${${PROJECT_NAME}_NAMESPACE}/"
FILENAMES ${${PROJECT_NAME}_PUBLIC_CLASSES}
lxqt_create_portable_headers(${PROJECT_NAME}_PORTABLE_HEADERS
PATH_PREFIX ".."
NAME_PREFIX "${${PROJECT_NAME}_NAMESPACE}"
HEADER_NAMES ${${PROJECT_NAME}_PUBLIC_CLASSES}
)

# Copy public headers for intree building
Expand Down
30 changes: 0 additions & 30 deletions cmake/create_portable_headers.cmake

This file was deleted.

7 changes: 3 additions & 4 deletions ui/CMakeLists.txt
Expand Up @@ -153,10 +153,9 @@ target_compile_definitions(${PROJECT_NAME}

export(TARGETS ${PROJECT_NAME} APPEND FILE "${CMAKE_BINARY_DIR}/${PROJECT_NAME}-targets.cmake")

include(create_portable_headers)
create_portable_headers(${PROJECT_NAME}_PORTABLE_HEADERS
NAMESPACE "${${PROJECT_NAME}_HEADER_NAMESPACE}/"
FILENAMES ${${PROJECT_NAME}_PUBLIC_CLASSES}
lxqt_create_portable_headers(${PROJECT_NAME}_PORTABLE_HEADERS
PATH_PREFIX ".."
HEADER_NAMES ${${PROJECT_NAME}_PUBLIC_CLASSES}
)

# Copy public headers for intree building
Expand Down

0 comments on commit 4d5c839

Please sign in to comment.