# Setup the additional targets for Windows: swipl-win.exe and plterm.dll set(SWIPL_C_STACK_SIZE 4194304) # build plterm.dll add_subdirectory(win32/console) # build swipl-win.exe set(SWIPLWIN_LIBRARIES libswipl libplterm) if(MULTI_THREADED) set(SWIPLWIN_LIBRARIES ${SWIPLWIN_LIBRARIES} Threads::Threads) endif() add_executable(swipl-win WIN32 pl-ntmain.c swipl.rc) target_c_stack(swipl-win ${SWIPL_C_STACK_SIZE}) target_link_libraries(swipl-win ${SWIPLWIN_LIBRARIES}) target_include_directories(swipl-win BEFORE PRIVATE ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})