2010-06-16 12:53:56 +00:00
|
|
|
project(qnono)
|
|
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
|
|
|
|
find_package(Qt4 COMPONENTS QtCore QtGui REQUIRED)
|
|
|
|
|
|
|
|
include_directories(${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_SOURCE_DIR})
|
|
|
|
include(${QT_USE_FILE})
|
|
|
|
|
|
|
|
set(SOURCES_MOC_H
|
|
|
|
cnonogramsolver.h
|
|
|
|
ccrosspackagemodel.h
|
|
|
|
ccrosspackagelistmodel.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(SOURCES_CPP
|
|
|
|
cnonogram.cpp
|
|
|
|
cnonogramsolver.cpp
|
|
|
|
ccrosspackage.cpp
|
|
|
|
ccrosspackagemodel.cpp
|
|
|
|
ccrosspackagelistmodel.cpp
|
2012-04-19 15:30:54 +00:00
|
|
|
nonogramimage.cpp
|
|
|
|
nonogrammarker.cpp
|
|
|
|
nonogramnumbers.cpp
|
|
|
|
nonogramproblem.cpp
|
|
|
|
nonogramsolver.cpp
|
2010-06-16 12:53:56 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
qt4_wrap_cpp(SOURCES_MOC_CPP ${SOURCES_MOC_H})
|
|
|
|
|
|
|
|
add_library(${PROJECT_NAME} STATIC ${SOURCES_CPP} ${SOURCES_MOC_CPP})
|
|
|
|
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
)
|