
include_directories(../../Bindings/C++)
include_directories(../../Dependencies/Include)

IF(MSVC)
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /ENTRY:mainCRTStartup ")
ENDIF(MSVC)

add_executable(BareBasics WIN32 MACOSX_BUNDLE
	main.cpp
	)


target_link_libraries(BareBasics Horde3D Horde3DUtils glfw)


if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
       FIND_LIBRARY(CARBON_LIBRARY Carbon)
       FIND_LIBRARY(APPLICATION_SERVICES_LIBRARY ApplicationServices)
       FIND_LIBRARY(AGL_LIBRARY AGL)
       target_link_libraries(BareBasics ${CARBON_LIBRARY} ${APPLICATION_SERVICES_LIBRARY} ${AGL_LIBRARY})
endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
