cmake_minimum_required(VERSION 2.6)
project(wxBKEditor CXX)

SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake-scripts)
find_package(wxwidgets3)
find_package(shadowdive)

set(CMAKE_CXX_FLAGS "-Wall -std=c++11 -Werror ${WX_OPTS}")
set(CMAKE_CXX_FLAGS_DEBUG "-ggdb")
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -march=native -s")

add_executable(wxbkeditor 
    src/gui.cpp
    src/app.cpp
    src/editorframe.cpp
    src/animationdialog.cpp
    src/spritedialog.cpp
    src/animationtreedataitem.cpp
)

set(COREINCS
    src/
    ${WXWIDGETS_INCLUDE_DIR} 
    ${SHADOWDIVE_INCLUDE_DIR} 
)

set(CORELIBS
    ${WXWIDGETS_LIBRARY}
    ${SHADOWDIVE_LIBRARY}
)

IF(MINGW)
    set(CORELIBS mingw32 ${CORELIBS} comctl32)
ENDIF(MINGW)

include_directories(${COREINCS})
target_link_libraries(wxbkeditor ${CORELIBS})

cmake_minimum_required(VERSION 2.6)
project(wxBKEditor CXX)

SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake-scripts)
find_package(wxwidgets3)
find_package(shadowdive)

set(CMAKE_CXX_FLAGS "-Wall -std=c++11 -Werror ${WX_OPTS}")
set(CMAKE_CXX_FLAGS_DEBUG "-ggdb")
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -march=native -s")

add_executable(wxbkeditor 
    src/wxbkeditor/gui.cpp
    src/wxbkeditor/app.cpp
    src/wxbkeditor/editorframe.cpp
    src/wxbkeditor/animationdialog.cpp
    src/wxbkeditor/spritedialog.cpp
    src/wxbkeditor/animationtreedataitem.cpp
)

set(COREINCS
    src/wxbkeditor/
    ${WXWIDGETS_INCLUDE_DIR} 
    ${SHADOWDIVE_INCLUDE_DIR} 
)

set(CORELIBS
    ${WXWIDGETS_LIBRARY}
    ${SHADOWDIVE_LIBRARY}
)

IF(MINGW)
    set(CORELIBS mingw32 ${CORELIBS} comctl32)
ENDIF(MINGW)

include_directories(${COREINCS})
target_link_libraries(wxbkeditor ${CORELIBS})

Fix cmakelists.txt paths to reflect changes.
Fix cmakelists.txt paths to reflect changes.
