MESSAGE(STATUS "LINKING FOR WINDOWS x64 USING SDL2 AND OPENGL ")

target_link_libraries(GdzlEngine ${LIBRARIES})
target_link_libraries(GdzlEngine ${CMAKE_SOURCE_DIR}/thirdparty/zlib/lib/zlibstatic.lib)
target_link_libraries(GdzlEngine ${CMAKE_SOURCE_DIR}/thirdparty/libpng/lib/libpng16_static.lib)
target_link_libraries(GdzlEngine ${CMAKE_SOURCE_DIR}/thirdparty/libjpeg/lib/libjpeg.lib)
target_link_libraries(GdzlEngine ${CMAKE_SOURCE_DIR}/thirdparty/SDL2/lib/x64/SDL2.lib)
target_link_libraries(GdzlEngine ${CMAKE_SOURCE_DIR}/thirdparty/SDL2/lib/x64/SDL2main.lib)
set_target_properties(GdzlEngine PROPERTIES LINK_FLAGS "${ldflags}")
set_target_properties(GdzlEngine PROPERTIES COTIRE_CXX_PREFIX_HEADER_INIT "include/stdafx.h")
set_target_properties(GdzlEngine PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/resources")
set_property(TARGET GdzlEngine PROPERTY VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/resources")


#SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /subsystem:windows /ENTRY:mainCRTStartup")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /subsystem:console /ENTRY:mainCRTStartup")
