more
[gluon-bt:btcomponents.git] / testapp / CMakeLists.txt
1 project(btcomponents-testapp)
2 cmake_minimum_required(VERSION 2.6)
3
4 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_INSTALL_PREFIX}/share/kde4/apps/cmake/modules/)
5
6 find_package(Qt4 REQUIRED)
7 if(APPLE)
8         
9         find_library(GluonCore NAMES GluonCore)
10         message("-- Found GluonCore:" ${GluonCore})
11
12         find_library(GluonEngine NAMES GluonEngine)
13         message("-- Found GluonEngine:" ${GluonEngine})
14         
15         
16         include_directories(${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR} ${PROJECT_SOURCE_DIR} ${GluonEngine}/Headers/ ${GLUON_CORE_INCLUDES}/Headers/ ${QT_QTSCRIPT_INCLUDES})
17
18 else()
19         find_package(GluonCore REQUIRED)
20         find_package(GluonEngine REQUIRED)
21
22         include_directories(${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR} ${PROJECT_SOURCE_DIR} ${GLUON_ENGINE_INCLUDES} ${GLUON_CORE_INCLUDES})
23 endif()
24
25 set(btcomponents-testapp_SRCS btcomponents-testapp.cpp main.cpp)
26 qt4_automoc(${btcomponents-testapp_SRCS})
27 add_executable(btcomponents-testapp ${btcomponents-testapp_SRCS})
28 target_link_libraries(btcomponents-testapp ${GLUON_CORE_LIBS} ${GLUON_ENGINE_LIBS} ${QT_QTCORE_LIBRARY})