Skip to content

Commit

Permalink
[CMake] fix Sample
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s committed Aug 25, 2021
1 parent f25df59 commit 4bc5501
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sample/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ IF(BINDINGS_QT4)
ENDIF(BINDINGS_QT4)

INCLUDE_DIRECTORIES(
${libqgv_SOURCE_DIR}
${libqgv_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
)
Expand Down Expand Up @@ -63,6 +61,9 @@ SET_TARGET_PROPERTIES(sample PROPERTIES
OUTPUT_NAME "Sample")

TARGET_LINK_LIBRARIES(sample qgvcore)
TARGET_INCLUDE_DIRECTORIES(qgvcore PUBLIC
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/QGVCore>
$<INSTALL_INTERFACE:include/QGVCore>)
IF(BINDINGS_QT4)
TARGET_LINK_LIBRARIES(sample ${QT_LIBRARIES})
ENDIF(BINDINGS_QT4)
Expand Down

0 comments on commit 4bc5501

Please sign in to comment.