diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b70a2f6..3385033 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,8 +1,10 @@ -file(GLOB HEADER_LIST CONFIGURE_DEPENDS "${ModernCMakeExample_SOURCE_DIR}/include/Vector/*.hpp") +file(GLOB HEADER_LIST CONFIGURE_DEPENDS "${PROJECT_SOURCE_DIR}/include/Vector/*") add_library(vector vector3.cpp ${HEADER_LIST}) -target_include_directories(vector PUBLIC "../include") +target_include_directories(vector PUBLIC "${PROJECT_SOURCE_DIR}/include") + +target_include_directories(vector PUBLIC "${PROJECT_SOURCE_DIR}/include") source_group( TREE "${PROJECT_SOURCE_DIR}/include"