call resource compiler to include icon files into LAMMPS shell on Windows
This commit is contained in:
@ -34,7 +34,16 @@ if(BUILD_LAMMPS_SHELL)
|
||||
if(NOT LAMMPS_EXCEPTIONS)
|
||||
message(WARNING "The LAMMPS shell needs LAMMPS_EXCEPTIONS enabled for full functionality")
|
||||
endif()
|
||||
add_executable(lammps-shell ${LAMMPS_TOOLS_DIR}/lammps-shell/lammps-shell.cpp)
|
||||
|
||||
# include resource compiler to embed icons into the executable on Windows
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||
enable_language(RC)
|
||||
set(ICON_RC_FILE ${LAMMPS_TOOLS_DIR}/lammps-shell/lmpicons.rc)
|
||||
endif()
|
||||
|
||||
add_executable(lammps-shell ${LAMMPS_TOOLS_DIR}/lammps-shell/lammps-shell.cpp ${ICON_RC_FILE})
|
||||
target_include_directories(lammps-shell PRIVATE ${LAMMPS_TOOLS_DIR}/lammps-shell)
|
||||
|
||||
# workaround for broken readline pkg-config file on FreeBSD
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
|
||||
target_include_directories(lammps-shell PRIVATE /usr/local/include)
|
||||
|
||||
BIN
tools/lammps-shell/icons/lammps.ico
Normal file
BIN
tools/lammps-shell/icons/lammps.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 204 KiB |
BIN
tools/lammps-shell/icons/lmpfile.ico
Normal file
BIN
tools/lammps-shell/icons/lmpfile.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 186 KiB |
2
tools/lammps-shell/lmpicons.rc
Normal file
2
tools/lammps-shell/lmpicons.rc
Normal file
@ -0,0 +1,2 @@
|
||||
id1 ICON icons/lammps.ico
|
||||
id2 ICON icons/lmpfile.ico
|
||||
Reference in New Issue
Block a user