Skip to content

Commit

Permalink
refs #24: added bounding box files, create source tree in VS for bett…
Browse files Browse the repository at this point in the history
…er overview
  • Loading branch information
lukaswagner committed Jun 5, 2018
1 parent a96e331 commit 0686d60
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,14 @@ set_target_properties(JCVoronoi PROPERTIES LINKER_LANGUAGE CXX)
set(source_dir src)

set(sources
${source_dir}/main.cpp
${source_dir}/main.cpp
${source_dir}/mosaic.cpp
${source_dir}/algorithms/floyd-steinberg.cpp
${source_dir}/algorithms/voronoi.cpp
${source_dir}/mollusc.cpp
${source_dir}/mainwindow.cpp
${source_dir}/Webcam.cpp
${source_dir}/helpers/boundingbox.cpp
)

set(headers
Expand All @@ -56,7 +57,19 @@ set(headers
${source_dir}/mollusc.hpp
${source_dir}/mainwindow.hpp
${source_dir}/Webcam.hpp
${source_dir}/helpers/boundingbox.hpp
)

add_executable(${target} ${sources} ${headers})
target_link_libraries(${target} Qt5::Widgets Qt5::Multimedia)

if (NOT ${CMAKE_VERSION} VERSION_LESS "3.8.0")
option(VS_FILE_TREE_SPLIT_HEADER_AND_SOURCE "In the Visual Studio file list, headers and sources are normally split into two folders. Disable this to merge them." ON)

if(${VS_FILE_TREE_SPLIT_HEADER_AND_SOURCE})
source_group(TREE ${CMAKE_SOURCE_DIR}/${source_dir} PREFIX "Source Files" FILES ${sources})
source_group(TREE ${CMAKE_SOURCE_DIR}/${source_dir} PREFIX "Header Files" FILES ${headers})
else()
source_group(TREE ${CMAKE_SOURCE_DIR}/${source_dir} PREFIX "Source Files" FILES ${sources} ${headers})
endif()
endif()
Empty file added src/helpers/boundingbox.cpp
Empty file.
Empty file added src/helpers/boundingbox.hpp
Empty file.

0 comments on commit 0686d60

Please sign in to comment.