123456789101112131415161718192021222324252627282930313233343536373839 |
- cmake_minimum_required(VERSION 2.8)
- project (ImageLabeler)
- FIND_PACKAGE(Qt4 REQUIRED)
- # The version number.
- set (ImageLabeler_VERSION_MAJOR 1)
- set (ImageLabeler_VERSION_MINOR 0)
-
- SET(ImageLabeler_SOURCES main.cpp functions.cpp ImageHolder.cpp ImageLabeler.cpp LineEditForm.cpp OptionsForm.cpp)
- SET(ImageLabeler_HEADERS ImageHolder.h ImageLabeler.h LineEditForm.h OptionsForm.h)
- SET(ImageLabeler_FORMS ui/ImageLabeler.ui)
- SET(QT_USE_QTXML TRUE)
- QT4_WRAP_CPP(ImageLabeler_HEADERS_MOC ${ImageLabeler_HEADERS})
- QT4_WRAP_UI(ImageLabeler_HEADERS_FORMS ${ImageLabeler_FORMS})
-
- # add the binary tree to the search path for include files
- # so that we will find TutorialConfig.h
- #include_directories ("${PROJECT_BINARY_DIR}")
- INCLUDE(${QT_USE_FILE})
- ADD_DEFINITIONS(${QT_DEFINITIONS})
- # add the executable
- add_executable (ImageLabeler ${ImageLabeler_SOURCES} ${ImageLabeler_HEADERS_MOC} ${ImageLabeler_HEADERS_FORMS})
- #target_link_libraries (Tutorial ${EXTRA_LIBS})
- INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
- TARGET_LINK_LIBRARIES(ImageLabeler ${QT_LIBRARIES})
- # add the install targets
- install (TARGETS ImageLabeler DESTINATION bin)
- #install (FILES "${PROJECT_BINARY_DIR}/TutorialConfig.h"
- # DESTINATION include)
|