Skip to content

Commit

Permalink
added cmake alias
Browse files Browse the repository at this point in the history
  • Loading branch information
Husenap committed Jul 12, 2021
1 parent ab0a6f9 commit fc70846
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions dubu_rect_pack/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ set(src_files

# Project
add_library(${target_name} STATIC ${src_files})
add_library(dubu::rect_pack ALIAS ${target_name})
set_target_properties(${target_name} PROPERTIES LINKER_LANGUAGE CXX)

target_link_libraries(${target_name}
Expand Down
2 changes: 1 addition & 1 deletion dubu_rect_pack_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set(src_files
add_executable(${target_name} ${src_files})

target_link_libraries(${target_name}
dubu_rect_pack
dubu::rect_pack
gmock_main)

set_target_properties(${target_name} PROPERTIES FOLDER ${${PROJECT_NAME}_FOLDER}/test)
Expand Down

0 comments on commit fc70846

Please sign in to comment.