@@ -716,189 +716,4 @@ if (smokeview_ini_status_code)
716
716
message (FATAL_ERROR "Could not download smokeview.ini ${smokeview_ini_status_code} " )
717
717
endif ()
718
718
719
- # parse_smv_benchmark
720
- add_executable (parse_smv_benchmark Tests/parse_smv_benchmark.c
721
- Source /shared/getdata.c
722
- Source /shared/dmalloc.c
723
- Source /smokeview/menus.c
724
- Source /smokeview/IOscript.c
725
- Source /smokeview/IOshooter.c
726
- Source /shared/csphere.c
727
- Source /smokeview/colortimebar.c
728
- Source /smokeview/camera.c
729
- Source /smokeview/IOgeometry.c
730
- Source /smokeview/IOwui.c
731
- Source /smokeview/IOobjects.c
732
- Source /smokeview/IOtour.c
733
- Source /smokeview/getdatacolors.c
734
- Source /smokeview/smokeview.c
735
- Source /smokeview/output.c
736
- Source /smokeview/renderimage.c
737
- Source /smokeview/renderhtml.c
738
- Source /shared/isobox.c
739
- Source /smokeview/getdatabounds.c
740
- Source /smokeview/readsmv.c
741
- Source /smokeview/scontour2d.c
742
- Source /shared/dmalloc.c
743
- Source /shared/compress.c
744
- Source /smokeview/IOvolsmoke.c
745
- Source /smokeview/IOsmoke.c
746
- Source /smokeview/IOplot3d.c
747
- Source /smokeview/IOplot2d.c
748
- Source /smokeview/IOslice.c
749
- Source /smokeview/IOhvac.c
750
- Source /smokeview/IOboundary.c
751
- Source /smokeview/IOpart.c
752
- Source /smokeview/IOzone.c
753
- Source /smokeview/IOiso.c
754
- Source /smokeview/callbacks.c
755
- Source /smokeview/drawGeometry.c
756
- Source /smokeview/skybox.c
757
- Source /shared/file_util.c
758
- Source /shared/string_util.c
759
- Source /smokeview/startup.c
760
- Source /smokeview/shaders.c
761
- Source /smokeview/unit.c
762
- Source /shared/threader.c
763
- Source /shared/histogram.c
764
- Source /shared/translate.c
765
- Source /smokeview/update.c
766
- Source /smokeview/viewports.c
767
- Source /smokeview/smv_geometry.c
768
- Source /smokeview/showscene.c
769
- Source /smokeview/infoheader.c
770
- Source /shared/md5.c
771
- Source /shared/sha1.c
772
- Source /shared/sha256.c
773
- Source /shared/stdio_m.c
774
- Source /shared/stdio_buffer.c
775
- Source /shared/getdata.c
776
- Source /shared/color2rgb.c
777
- Source /smokeview/colortable.c
778
- Source /smokeview/command_args.c
779
-
780
- Source /smokeview/glui_smoke.cpp
781
- Source /smokeview/glui_clip.cpp
782
- Source /smokeview/glui_stereo.cpp
783
- Source /smokeview/glui_geometry.cpp
784
- Source /smokeview/glui_motion.cpp
785
- Source /smokeview/glui_bounds.cpp
786
- Source /smokeview/glui_colorbar.cpp
787
- Source /smokeview/glui_display.cpp
788
- Source /smokeview/glui_tour.cpp
789
- Source /smokeview/glui_trainer.cpp
790
- Source /smokeview/glui_objects.cpp
791
- Source /smokeview/glui_shooter.cpp
792
- )
793
-
794
- target_include_directories (parse_smv_benchmark PRIVATE
795
- Source /shared
796
- Source /glew
797
- Source /smokeview
798
- Source /glui_v2_1_beta
799
- Source /glui_gl
800
- )
801
-
802
- find_package (json-c CONFIG )
803
- if (NOT json-c_FOUND )
804
- if (PKG_CONFIG_FOUND )
805
- pkg_check_modules (json-c json-c )
806
- endif ()
807
- if (NOT json-c_FOUND )
808
- FetchContent_Declare (
809
- json-c-git
810
- EXCLUDE_FROM_ALL
811
- SOURCE_DIR ${CMAKE_CURRENT_BINARY_DIR} /json-c/json-c
812
- GIT_REPOSITORY https://github.com/json-c/json-c.git
813
- GIT_TAG 33337523f5cff82e659ecbe94b2fac19c7761a42
814
- FIND_PACKAGE_ARGS CONFIG NAMES json-c
815
- )
816
- FetchContent_MakeAvailable (json-c-git )
817
- target_link_libraries (parse_smv_benchmark PRIVATE json-c-static )
818
- target_include_directories (parse_smv_benchmark PRIVATE ${CMAKE_CURRENT_BINARY_DIR} /json-c )
819
- else ()
820
- message ("${json-c_INCLUDE_DIRS}" )
821
- target_link_libraries (parse_smv_benchmark PRIVATE ${json-c_LIBRARIES} )
822
- target_include_directories (parse_smv_benchmark PRIVATE ${json-c_INCLUDE_DIRS} )
823
- target_compile_options (parse_smv_benchmark PUBLIC ${json-c_CFLAGS_OTHER} )
824
- endif ()
825
- else ()
826
- target_link_libraries (parse_smv_benchmark PRIVATE json-c::json-c )
827
- endif ()
828
-
829
- # These include directories are an existing workaround that would be good to
830
- # remove.Because of this custom code and the potential conflict with native libs
831
- # this needs to be early in the include order.
832
- if (WIN32 )
833
- target_include_directories (parse_smv_benchmark PRIVATE Source /glut_gl )
834
- else ()
835
- target_include_directories (parse_smv_benchmark PRIVATE Source /glui_gl )
836
- endif ()
837
- # GLUI can be provided natively, but there are modifications in the code
838
- # vendored with Smokeview that we rely on. Because of this custom code and the
839
- # potential conflict with native libs this needs to be early in the include order.
840
- target_link_libraries (parse_smv_benchmark PRIVATE glui_static )
841
- target_include_directories (parse_smv_benchmark PRIVATE Source /glui_v2_1_beta )
842
- if (WIN32 )
843
- if (PThreads4W_FOUND )
844
- target_link_libraries (parse_smv_benchmark PRIVATE PThreads4W::PThreads4W )
845
- else ()
846
- target_include_directories (parse_smv_benchmark PRIVATE Source /pthreads )
847
- target_link_libraries (parse_smv_benchmark PRIVATE pthread_static )
848
- endif ()
849
- endif ()
850
- # Selecting which GLUT version to use is the most platform-dependent part of the
851
- # build.
852
- if (MACOSX )
853
- add_definitions (-Dpp_NOQUARTZ )
854
- target_link_libraries (parse_smv_benchmark PRIVATE "-framework OpenGL" "-framework GLUT" )
855
- set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99" )
856
- elseif (GLUT_FOUND )
857
- target_link_libraries (parse_smv_benchmark PRIVATE GLUT::GLUT )
858
- else ()
859
- target_link_libraries (parse_smv_benchmark PRIVATE glut32_static )
860
- endif ()
861
- if (GLEW_FOUND )
862
- target_link_libraries (parse_smv_benchmark PRIVATE GLEW::GLEW )
863
- # This line is a hack to work around the fact the code includes "glew.h"
864
- # rather than <GL/glew.h>
865
- target_include_directories (parse_smv_benchmark PRIVATE ${GLEW_INCLUDE_DIRS} /GL )
866
- else ()
867
- target_sources (parse_smv_benchmark PRIVATE
868
- Source /glew/glew.c
869
- )
870
- target_include_directories (parse_smv_benchmark PRIVATE Source /glew )
871
- endif ()
872
- if (JPEG_FOUND )
873
- target_link_libraries (parse_smv_benchmark PRIVATE JPEG::JPEG )
874
- else ()
875
- target_link_libraries (parse_smv_benchmark PRIVATE jpeg_static )
876
- endif ()
877
- if (PNG_FOUND )
878
- target_link_libraries (parse_smv_benchmark PRIVATE PNG::PNG )
879
- else ()
880
- target_link_libraries (parse_smv_benchmark PRIVATE png_static )
881
- endif ()
882
- if (ZLIB_FOUND )
883
- target_link_libraries (parse_smv_benchmark PRIVATE ZLIB::ZLIB )
884
- else ()
885
- target_link_libraries (parse_smv_benchmark PRIVATE zlib_static )
886
- endif ()
887
- if (LIBGD_FOUND )
888
- target_link_libraries (parse_smv_benchmark PRIVATE PkgConfig::LIBGD )
889
- else ()
890
- target_link_libraries (parse_smv_benchmark PRIVATE gd_static )
891
- endif ()
892
- target_link_libraries (parse_smv_benchmark PRIVATE OpenGL::GL OpenGL::GLU )
893
-
894
-
895
- if (WIN32 )
896
- target_include_directories (parse_smv_benchmark PRIVATE Source /pthreads )
897
- endif ()
898
- if ((NOT MACOSX ) AND UNIX )
899
- target_link_libraries (parse_smv_benchmark PRIVATE m )
900
- endif ()
901
- if (LINUX )
902
- add_definitions (-Dpp_LINUX )
903
- target_link_libraries (parse_smv_benchmark PRIVATE pthread X11 Xmu GLU GL m stdc++ )
904
- endif ()
719
+ add_subdirectory (Source /smvq )
0 commit comments