Skip to content

Commit

Permalink
Set project layout for IDEs
Browse files Browse the repository at this point in the history
  • Loading branch information
deniskovalchuk committed Sep 12, 2023
1 parent e4bfae2 commit 80e7506
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apps/cmdline/src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_executable(${PROJECT_NAME}
set(sources
cmdline_exception.hpp
cmdline_interface.cpp
cmdline_interface.hpp
Expand All @@ -13,6 +13,12 @@ add_executable(${PROJECT_NAME}
utils.cpp
utils.hpp)

# Set project layout for IDEs.
get_filename_component(parent_dir "${CMAKE_CURRENT_SOURCE_DIR}" DIRECTORY)
source_group(TREE "${parent_dir}" FILES ${sources})

add_executable(${PROJECT_NAME} ${sources})

target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17)

target_link_libraries(${PROJECT_NAME} PRIVATE ftp Boost::boost)
Expand Down

0 comments on commit 80e7506

Please sign in to comment.