Skip to content

Commit

Permalink
fix install
Browse files Browse the repository at this point in the history
  • Loading branch information
prudhomm committed Nov 13, 2023
1 parent e092e06 commit eaf7401
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
)

INSTALL(DIRECTORY ./ DESTINATION include/ )
include(GNUInstallDirs)
INSTALL(DIRECTORY ./ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/specx )

if(SPECX_DO_INSTALL)
INSTALL( FILES "${SPECX_BINARY_DIR}/Src/Config/SpConfig.hpp" DESTINATION include/Src/Config/ )
INSTALL( FILES "${SPECX_BINARY_DIR}/Src/Config/SpConfig.hpp" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/specx/Config )
endif()


Expand Down Expand Up @@ -47,8 +47,8 @@ add_library(
)

if(SPECX_DO_INSTALL)
target_include_directories(specx INTERFACE $<INSTALL_INTERFACE:include>)
INSTALL(TARGETS specx EXPORT specx DESTINATION lib )
INSTALL(EXPORT specx DESTINATION lib )
target_include_directories(specx INTERFACE $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/specx>)
INSTALL(TARGETS specx EXPORT specx DESTINATION ${CMAKE_INSTALL_LIBDIR})
INSTALL(EXPORT specx DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif()

0 comments on commit eaf7401

Please sign in to comment.