summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
blob: 6ee8d65e9e4b71943e4a4d425d83000298d7fa70 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
cmake_minimum_required(VERSION 2.8)

project(fbsplash)

find_package(Qt4 REQUIRED)
if (QT4_FOUND)
  message(STATUS "QT4 found.")
else(QT4_FOUND)
  message(FATAL_ERROR "QT4 not found!")
endif(QT4_FOUND)

file(GLOB_RECURSE fbsplash_SOURCES src/*.cpp)
file(GLOB_RECURSE fbsplash_MOC_HEADERS src/*.h)
 
#set(fbsplash_SOURCES main.cpp fbsplash.cpp)
#set(fbsplash_HEADERS fbsplash.h)

QT4_WRAP_CPP(fbsplash_MOC_SOURCES ${fbsplash_MOC_HEADERS})

include(${QT_USE_FILE})
add_definitions(${QT_DEFINITIONS})

add_executable(fbsplash ${fbsplash_SOURCES}
  ${fbsplash_MOC_SOURCES})

target_link_libraries(fbsplash ${QT_LIBRARIES})

include_directories(${CMAKE_CURRENT_BINARY_DIR})