Skip to content

Commit

Permalink
修复 cmake 错误
Browse files Browse the repository at this point in the history
  • Loading branch information
cathaysia committed May 22, 2021
1 parent 89d4e21 commit 457965a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
set(CMAKE_CXX_STANDARD 20)

set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

add_subdirectory(FlowLayout)
include_directories(FlowLayout)
Expand Down
2 changes: 1 addition & 1 deletion src/FlowLayout/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ find_package(Qt5 COMPONENTS Widgets REQUIRED)
add_library(FlowLayout STATIC flowlayout.cpp)

target_link_libraries(FlowLayout PRIVATE Qt5::Widgets)
target_include_directories(FlowLayout PUBLIC INTERFACE flowlayout.h)
target_include_directories(FlowLayout PUBLIC INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})

0 comments on commit 457965a

Please sign in to comment.