Skip to content

Commit

Permalink
Remove windows related lines in modeler main cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Dec 24, 2024
1 parent 5bda772 commit 0dc1f63
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/solver/modeler/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,6 @@ add_subdirectory(ortoolsImpl)
add_subdirectory(loadFiles)
add_subdirectory(parameters)


#
# Resource file for Windows
#
if (WIN32)
file(REMOVE "${CMAKE_CURRENT_SOURCE_DIR}/win32/modeler.o")
FILE(COPY "${CMAKE_CURRENT_SOURCE_DIR}/win32/modeler.ico" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/win32/")
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/win32/modeler.rc.cmake"
"${CMAKE_CURRENT_SOURCE_DIR}/win32/modeler.rc")

if (MINGW)
# resource compilation for mingw
add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/win32/modeler.o"
COMMAND windres.exe "-I${CMAKE_CURRENT_SOURCE_DIR}"
"-i${CMAKE_CURRENT_SOURCE_DIR}/win32/modeler.rc"
-o "${CMAKE_CURRENT_BINARY_DIR}/win32/modeler.o")
set(SRCS ${SRCS} "${CMAKE_CURRENT_BINARY_DIR}/win32/modeler.o")
else ()
set(SRCS ${SRCS} "win32/modeler.rc")
endif ()
endif ()

OMESSAGE(" :: modeler")

set(exec_name "antares-modeler")
Expand Down

0 comments on commit 0dc1f63

Please sign in to comment.