cmake_minimum_required(VERSION 2.6.2)
project(Register3D_wx)
 
set(CMAKE_MODULE_PATH "F:\\Register3D_wx\\Register3D_wx\\CMakeModules")
set(EXECUTABLE_OUTPUT_PATH "F:\\Register3D_wx\\Register3D_wx\\bin")

find_package(wxWidgets COMPONENTS core base html gl richtext REQUIRED)
find_package(ZLIB REQUIRED)
find_package(GSL REQUIRED)
find_package(GLEW REQUIRED)

##---------------------------------------------------
## Actual config file starts here
##--------------------------------------------------- 
 
include_directories(${wxWidgets_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIR} ${GSL_INCLUDE_DIR} ${GLEW_INCLUDE_PATH} ann_1.1.2/include)
add_definitions(${wxWidgets_DEFINITIONS})

set(SRCS 
About.cc     Global.h      ICP.h          Math2.h    MyANN.h        PointOP.h
About.h      Help.cc       ICPPoint.h     Matrix.cc  OGLWrapper.cc  ZPR.cc
Cylinder.cc  Help.h        main.cc        Matrix.h   OGLWrapper.h   ZPR.h
Cylinder.h   ICP.cc        MainWindow.cc  Misc.cc    Point.cc
GLCanvas.cc  ICPDialog.cc  MainWindow.h   Misc.h     Point.h
GLCanvas.h   ICPDialog.h   Math2.cc       MyANN.cc   PointOP.cc
)

add_subdirectory(ann_1.1.2/src)

set(EXTERNAL_LIBS ANN)

set(EXECUTEABLE_OUTPUT_PATH bin)
add_executable(Register3D_wx ${SRCS})

target_link_libraries(Register3D_wx ${wxWidgets_LIBRARIES} ${ZLIB_LIBRARIES} ${GSL_LIBRARIES} ${GLEW_LIBRARY} ${EXTERNAL_LIBS} )
