Skip to content

Commit

Permalink
Sync to PR Cmake build2 #348 (replaces #348)
Browse files Browse the repository at this point in the history
  • Loading branch information
neteler committed Dec 5, 2022
1 parent 98cb9a0 commit a1c304b
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 18 deletions.
2 changes: 1 addition & 1 deletion cmake/ctypesgen.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ set(ENV{LC_ALL} C)
set(LIBRARIES)
foreach(LIB ${LIBS})
if(WIN32)
list(APPEND LIBRARIES "--library=${BIN_DIR}/bin/${LIB}.dll")
list(APPEND LIBRARIES "--library=${BIN_DIR}/lib/${LIB}.dll")
elseif(APPLE)
list(APPEND LIBRARIES "--library=${BIN_DIR}/lib/lib${LIB}.so")
else()
Expand Down
2 changes: 1 addition & 1 deletion cmake/modules/build_library_in_subdir.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ macro(build_library_in_subdir dir_name)
#message("dir_name=${dir_name} |g_name= ${g_name}")
build_module(NAME grass_${g_name} SRCDIR ${CMAKE_CURRENT_SOURCE_DIR}/${dir_name} ${ARGN})
endif()
endmacro()
endmacro()
2 changes: 1 addition & 1 deletion cmake/modules/build_program.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# Read the file COPYING that comes with GRASS for details.
macro(build_program)
build_module(${ARGN} EXE)
endmacro()
endmacro()
2 changes: 1 addition & 1 deletion cmake/modules/get_versions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ set(${var_major} ${version_major} PARENT_SCOPE)
set(${var_minor} ${version_minor} PARENT_SCOPE)
set(${var_release} ${version_release} PARENT_SCOPE)
set(${var_date} ${version_date} PARENT_SCOPE)
endfunction()
endfunction()
2 changes: 1 addition & 1 deletion cmake/modules/repo_status.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ execute_process(

set(${version_git_var} "${GRASS_VERSION_GIT}" PARENT_SCOPE)

endfunction() #repo_status
endfunction() #repo_status
2 changes: 1 addition & 1 deletion cmake/modules/set_compiler_flags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ endif()
set(CMAKE_CXX_FLAGS "${GRASS_CXX_FLAGS} ${CMAKE_CXX_FLAGS}")
set(CMAKE_C_FLAGS "${GRASS_C_FLAGS} ${CMAKE_C_FLAGS}")

endmacro()
endmacro()
7 changes: 5 additions & 2 deletions gui/icons/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,15 @@ endforeach()
foreach(ICON ${GRASS_ICONS})
get_filename_component(FILE_NAME ${ICON} NAME)
add_custom_command(OUTPUT ${GISBASE}/gui/icons/grass/${FILE_NAME}
COMMAND ${CMAKE_COMMAND} -E copy ${ICON} ${GISBASE}/gui/icons/grass/
COMMAND ${CMAKE_COMMAND} -E copy ${ICON} ${GISBASE}/docs/html/icons/)
COMMAND ${CMAKE_COMMAND} -E copy ${ICON} ${GISBASE}/gui/icons/grass/)
list(APPEND output_icons ${GISBASE}/gui/icons/grass/${FILE_NAME})

add_custom_command(OUTPUT ${GISBASE}/docs/html/icons/${FILE_NAME}
COMMAND ${CMAKE_COMMAND} -E copy ${ICON} ${GISBASE}/docs/html/icons/)
list(APPEND output_icons ${GISBASE}/docs/html/icons/${FILE_NAME})
endforeach()


foreach(ICON ${FLAGS_ICONS})
get_filename_component(FILE_NAME ${ICON} NAME)
add_custom_command(OUTPUT ${GISBASE}/gui/icons/flags/${FILE_NAME}
Expand Down
12 changes: 6 additions & 6 deletions gui/images/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ add_custom_target(gui_images
DEPENDS gui_icons ${output_images})

install(FILES ${GUI_IMAGES} DESTINATION gui/images/)
install(DIRECTORY basic DESTINATION gui/images/symbols/)
install(DIRECTORY demo DESTINATION gui/images/symbols/)
install(DIRECTORY extra DESTINATION gui/images/symbols/)
install(DIRECTORY geology DESTINATION gui/images/symbols/)
install(DIRECTORY legend DESTINATION gui/images/symbols/)
install(DIRECTORY n_arrows DESTINATION gui/images/symbols/)
install(DIRECTORY symbols/basic DESTINATION gui/images/symbols/)
install(DIRECTORY symbols/demo DESTINATION gui/images/symbols/)
install(DIRECTORY symbols/extra DESTINATION gui/images/symbols/)
install(DIRECTORY symbols/geology DESTINATION gui/images/symbols/)
install(DIRECTORY symbols/legend DESTINATION gui/images/symbols/)
install(DIRECTORY symbols/n_arrows DESTINATION gui/images/symbols/)
4 changes: 2 additions & 2 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ build_library_in_subdir(arraystats DEPENDS grass_gis)

if(WITH_OPENGL)
build_library_in_subdir(ogsf
DEPENDS grass_raster grass_raster3d OPENGL TIFF)
DEPENDS grass_raster grass_raster3d grass_vector grass_bitmap OPENGL TIFF)

build_library_in_subdir(nviz
DEPENDS grass_display grass_raster grass_vector grass_bitmap OPENGL TIFF)
DEPENDS grass_display grass_raster grass_vector grass_bitmap grass_ogsf OPENGL TIFF)
endif()

add_subdirectory(temporal)
Expand Down
2 changes: 1 addition & 1 deletion lib/init/license.txt.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Geographic Resources Analysis Support System (GRASS) is Copyright,
1999-@GRASS_VERSION_DATE@ by the GRASS Development Team, and licensed under terms of the
GNU General Public License (GPL) version >=2.

This GRASS GIS @GRASS_VERSION_NUMBER@ release is coordinated and produced by
the GRASS Development Team with contributions from all over the world.

Expand Down
1 change: 1 addition & 0 deletions python/libgrass_interface_generator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ foreach(module ${MODULES})
-DHDRS=${${module}_HDRS}
-DLIBS=${${module}_LIBS}
-DOUT_FILE=${output_file}
-DGRASS_VERSION_NUMBER=${GRASS_VERSION_NUMBER}
-P ${CMAKE_SOURCE_DIR}/cmake/ctypesgen.cmake
COMMENT "Generating ${output_file}"
VERBATIM)
Expand Down
2 changes: 1 addition & 1 deletion vector/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -209,4 +209,4 @@ build_program_in_subdir(v.out.postgis DEPENDS grass_gis grass_vector PRIMARY_DEP

if(WITH_OPENDWG)
build_program_in_subdir(v.in.dwg DEPENDS grass_gis grass_vector)
endif()
endif()

0 comments on commit a1c304b

Please sign in to comment.