Skip to content
This repository was archived by the owner on Apr 14, 2018. It is now read-only.

Commit

Permalink
Set LIBEMOKIT_HEADERS so they're correctly installed
Browse files Browse the repository at this point in the history
  • Loading branch information
olorin committed Mar 3, 2014
1 parent d990371 commit e502471
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ IF($ENV{EMOKIT_BUILD_SHARED_LIBS})
SET(BUILD_SHARED_LIBS true)
ENDIF()

SET(LIBEMOKIT_HEADERS
${CMAKE_SOURCE_DIR}/include/emokit/emokit.h
)

LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake_modules)
SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
SET(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)
Expand Down
9 changes: 6 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ INSTALL (TARGETS emokit
ARCHIVE DESTINATION lib
)

INSTALL(FILES
IF(BUILD_SHARED_LIBS)
INSTALL (FILES
${LIBEMOKIT_HEADERS}
DESTINATION include/libemokit
)
DESTINATION include/emokit
)
ENDIF()

0 comments on commit e502471

Please sign in to comment.