Skip to content

Commit

Permalink
misc: fix CMake to install headers to include/DMDUtil folder
Browse files Browse the repository at this point in the history
  • Loading branch information
jsm174 committed Jan 13, 2024
1 parent a5d9bc6 commit 795fe72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ if(BUILD_SHARED)
install(TARGETS dmdutil_shared
LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
)
install(FILES src/DMDUtil.h DESTINATION ${CMAKE_INSTALL_PREFIX}/include)
install(DIRECTORY include/DMDUtil DESTINATION ${CMAKE_INSTALL_PREFIX}/include)

if(PLATFORM STREQUAL "win" OR PLATFORM STREQUAL "macos" OR PLATFORM STREQUAL "linux")
add_executable(dmdutil_test
Expand Down Expand Up @@ -194,7 +194,7 @@ if(BUILD_STATIC)
install(TARGETS dmdutil_static
LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
)
install(FILES src/DMDUtil.h DESTINATION ${CMAKE_INSTALL_PREFIX}/include)
install(DIRECTORY include/DMDUtil DESTINATION ${CMAKE_INSTALL_PREFIX}/include)

if(PLATFORM STREQUAL "win" OR PLATFORM STREQUAL "macos" OR PLATFORM STREQUAL "linux")
add_executable(dmdutil_test_s
Expand Down

0 comments on commit 795fe72

Please sign in to comment.