Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
durswd committed Oct 23, 2023
1 parent df377ba commit 740bd6b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Dev/Cpp/Effekseer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ foreach (file ${effekseer_public_h})
install(FILES ${file} DESTINATION include/Effekseer/${dir})
endforeach()

target_include_directories(${PROJECT_NAME} INTERFACE
target_include_directories(${PROJECT_NAME} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:include/Effekseer>)

install(
Expand Down
5 changes: 4 additions & 1 deletion Dev/Cpp/EffekseerRendererDX11/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ target_include_directories(${PROJECT_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/../Effe
set_target_properties(${PROJECT_NAME} PROPERTIES PUBLIC_HEADER "${PublicHeaders}")
target_link_libraries(${PROJECT_NAME} PUBLIC Effekseer EffekseerRendererCommon)

target_include_directories(${PROJECT_NAME} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:include/EffekseerRendererDX11>)

if(CLANG_FORMAT_ENABLED)
clang_format(${PROJECT_NAME})
endif()
Expand All @@ -48,7 +52,6 @@ endforeach()
install(
TARGETS ${PROJECT_NAME}
EXPORT ${PROJECT_NAME}-export
INCLUDES DESTINATION include
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib)

Expand Down
2 changes: 1 addition & 1 deletion Script/Test_Install/src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <Effekseer.h>

#ifdef _WIN32
#include <EffekseerRendererDX11/EffekseerRendererDX11.h>
#include <EffekseerRendererDX11.h>
#endif

int main()
Expand Down

0 comments on commit 740bd6b

Please sign in to comment.