Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,17 @@ endif()
################################################################################
# GPGMM's public and common "configs"
################################################################################
set(GPGMM_INCLUDE_DIRS
"${GPGMM_ROOT_DIR}/src"
"${GPGMM_INCLUDE_DIR}"
)

# Where GPGMM public .h files can be found.
# Sets directory for header files to be searched.
include_directories(${GPGMM_INCLUDE_DIRS})

add_library(gpgmm_public_config INTERFACE)
target_include_directories(gpgmm_public_config INTERFACE
"${GPGMM_ROOT_DIR}/src"
"${GPGMM_ROOT_DIR}/src/include"
)
target_include_directories(gpgmm_public_config INTERFACE "${GPGMM_INCLUDE_DIRS}")

add_library(gpgmm_common_config INTERFACE)
target_link_libraries(gpgmm_common_config INTERFACE gpgmm_public_config)
Expand Down
6 changes: 3 additions & 3 deletions src/gpgmm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ if (BUILD_SHARED_LIBS)
endif()

target_link_libraries(gpgmm
PRIVATE gpgmm_utils
gpgmm_common
gpgmm_common_config
PUBLIC gpgmm_utils
gpgmm_common
gpgmm_common_config
)

# Only win32 app needs to link with user32.lib
Expand Down