Skip to content

Commit

Permalink
Merge pull request #64 from evpobr/fix-install-headers
Browse files Browse the repository at this point in the history
Fix headers installation with CMake
  • Loading branch information
JeromeMartinez authored Jul 4, 2017
2 parents 8e07fae + 3151605 commit 2d1978f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Project/CMake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,15 @@ target_include_directories(zen PUBLIC
set_target_properties(zen PROPERTIES
VERSION ${ZenLib_VERSION}}
SOVERSION ${ZenLib_VERSION_MAJOR}
PUBLIC_HEADER "${ZenLib_HDRS}"
)

if(MSVC)
install(FILES $<TARGET_PDB_FILE:zen> DESTINATION ${BIN_INSTALL_DIR} CONFIGURATIONS "Debug;RelWithDebInfo" OPTIONAL)
endif()

install(TARGETS zen EXPORT zen-export
PUBLIC_HEADER DESTINATION ${INCLUDE_INSTALL_DIR}/ZenLib
RUNTIME DESTINATION ${BIN_INSTALL_DIR}
ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
LIBRARY DESTINATION ${LIB_INSTALL_DIR})
Expand Down

0 comments on commit 2d1978f

Please sign in to comment.