cmake_minimum_required(VERSION 2.8)

project(wxTemplate)

set(exe_name "wxTemplate")

# now check for wxWidgets
find_package(wxWidgets REQUIRED base core adv gl)

# macros
add_definitions(${wxWidgets_DEFINITIONS})

message(STATUS "'${wxWidgets_DEFINITIONS}'")

# include dirs
include_directories(${wxWidgets_INCLUDE_DIRS})


message(STATUS "'${wxWidgets_INCLUDE_DIRS}'")

# add the application
add_executable(wxTemplate MACOSX_BUNDLE Main.cpp)


# link
target_link_libraries(${exe_name} 
	${wxWidgets_LIBRARIES}
	)