Skip to content

Commit

Permalink
Organized files under different categories in CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
denizdiktas committed Jul 3, 2023
1 parent 7571f9a commit d97f1cf
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Arrangement_on_surface_2/demo/earth/Aos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ void Aos::check(const Kml::Placemarks& placemarks)

// add curves
int num_points = sphere_points.size();
for (int i = 0; i < sphere_points.size()-1; i++)
for (int i = 0; i < num_points -1; i++)
{
num_counted_arcs++;
const auto p1 = sphere_points[i];
Expand Down
39 changes: 29 additions & 10 deletions Arrangement_on_surface_2/demo/earth/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,28 +45,47 @@ set(SHAPELIB_LIB_DIR "" CACHE PATH "DEFINE ME!!!")
link_directories(earth PRIVATE ${SHAPELIB_LIB_DIR})


# AOS
file(GLOB source_files_aos
Aos.h Aos.cpp
Geodesic_arcs.h Geodesic_arcs.cpp
)
source_group( "Aos" FILES ${source_files_aos} )


# GEOMETRY (Graphics-related)
file(GLOB source_files_geometry
Line_strips.h Line_strips.cpp
Sphere.h Sphere.cpp
Vertices.h Vertices.cpp
World_coordinate_axes.h World_coordinate_axes.cpp
)
source_group( "geometry" FILES ${source_files_geometry} )
source_group( "Geometry" FILES ${source_files_geometry} )
# GRAPHICS
file(GLOB source_files_graphics
Camera.h Camera.cpp
Shader_program.h Shader_program.cpp
)
source_group( "Graphics" FILES ${source_files_graphics} )


#SOURCE FILES (NOT CATEGORIZED YET)
file(GLOB source_files
Common_defs.h
Kml_reader.h Kml_reader.cpp
main.cpp
Main_widget.h Main_widget.cpp
Tools.h Tools.cpp
)
source_group( "Source Files" FILES ${source_files} )

qt_standard_project_setup()

qt_add_executable(earth
Aos.h Aos.cpp
Camera.h Camera.cpp
Common_defs.h
Geodesic_arcs.h Geodesic_arcs.cpp
Kml_reader.h Kml_reader.cpp
main.cpp
Main_widget.h Main_widget.cpp
Shader_program.h Shader_program.cpp
Tools.h Tools.cpp
${source_files_aos}
${source_files_geometry}
${source_files_graphics}
${source_files}
)


Expand Down

0 comments on commit d97f1cf

Please sign in to comment.