Skip to content

Commit

Permalink
Merge pull request #1 from rcari/rcari/fixForInclusion
Browse files Browse the repository at this point in the history
Allow inclusion in another project
  • Loading branch information
no1msd committed Oct 14, 2015
2 parents 8a7fb77 + 74ed09f commit 12a1399
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
find_package(Boost 1.54 REQUIRED)

include_directories(
${CMAKE_SOURCE_DIR}/include
${PROJECT_SOURCE_DIR}/include
${Boost_INCLUDE_DIR})

set(SRC
Expand Down Expand Up @@ -29,7 +29,7 @@ install(
ARCHIVE DESTINATION lib)

install(
FILES "${CMAKE_SOURCE_DIR}/include/mstch/mstch.hpp"
FILES "${PROJECT_SOURCE_DIR}/include/mstch/mstch.hpp"
DESTINATION include/mstch
COMPONENT Devel)

Expand All @@ -45,7 +45,7 @@ export(
NAMESPACE mstch::)

configure_file(
"${CMAKE_SOURCE_DIR}/cmake/mstch-config.cmake"
"${PROJECT_SOURCE_DIR}/cmake/mstch-config.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/mstch/mstch-config.cmake")

install(
Expand All @@ -55,7 +55,7 @@ install(
DESTINATION lib/cmake/mstch)

install(FILES
"${CMAKE_SOURCE_DIR}/cmake/mstch-config.cmake"
"${PROJECT_SOURCE_DIR}/cmake/mstch-config.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/mstch/mstch-config-version.cmake"
DESTINATION lib/cmake/mstch
COMPONENT Devel)

0 comments on commit 12a1399

Please sign in to comment.