mirror of https://github.com/CGAL/cgal
Organized files under different categories in CMakeLists.txt
This commit is contained in:
parent
7571f9a5d0
commit
d97f1cfd2b
|
|
@ -104,7 +104,7 @@ void Aos::check(const Kml::Placemarks& placemarks)
|
||||||
|
|
||||||
// add curves
|
// add curves
|
||||||
int num_points = sphere_points.size();
|
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++;
|
num_counted_arcs++;
|
||||||
const auto p1 = sphere_points[i];
|
const auto p1 = sphere_points[i];
|
||||||
|
|
|
||||||
|
|
@ -45,28 +45,47 @@ set(SHAPELIB_LIB_DIR "" CACHE PATH "DEFINE ME!!!")
|
||||||
link_directories(earth PRIVATE ${SHAPELIB_LIB_DIR})
|
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
|
file(GLOB source_files_geometry
|
||||||
Line_strips.h Line_strips.cpp
|
Line_strips.h Line_strips.cpp
|
||||||
Sphere.h Sphere.cpp
|
Sphere.h Sphere.cpp
|
||||||
Vertices.h Vertices.cpp
|
Vertices.h Vertices.cpp
|
||||||
World_coordinate_axes.h World_coordinate_axes.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_standard_project_setup()
|
||||||
|
|
||||||
qt_add_executable(earth
|
qt_add_executable(earth
|
||||||
Aos.h Aos.cpp
|
${source_files_aos}
|
||||||
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_geometry}
|
${source_files_geometry}
|
||||||
|
${source_files_graphics}
|
||||||
|
${source_files}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue