diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index 4af855b..db3f464 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -1,7 +1,5 @@ include_directories(${CMAKE_SOURCE_DIR}/include) -set(SOURCE_EXAMPLE - ${CMAKE_SOURCE_DIR}/include/nameof.hpp - example.cpp) - -add_executable(${PROJECT_NAME}_example ${SOURCE_EXAMPLE}) +add_executable(${PROJECT_NAME}_example + ${CMAKE_SOURCE_DIR}/include/nameof.hpp + example.cpp)