Skip to content

Commit 67b0737

Browse files
修正cmakelist工程,保证使用cmake建立的工程足够的简洁
1 parent a9ee1e9 commit 67b0737

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

qt_clion/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ add_executable(${PROJECT_NAME}
6767
mainwindow.cpp)
6868

6969
target_include_directories(${PROJECT_NAME}
70-
PUBLIC ./)
70+
PUBLIC ./
71+
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}_autogen/include)
7172

7273

7374
find_package(Qt${QT_VERSION} COMPONENTS ${REQUIRED_LIBS} REQUIRED)

0 commit comments

Comments
 (0)