qcross/libqnono/CMakeLists.txt

35 lines
732 B
CMake

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
nonogramimage.cpp
nonogrammarker.cpp
nonogramnumbers.cpp
nonogramproblem.cpp
nonogramsolver.cpp
)
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}
)