diff options
author | Jonathan Bauer | 2011-06-16 16:36:14 +0200 |
---|---|---|
committer | Jonathan Bauer | 2011-06-16 16:36:14 +0200 |
commit | 0b99cfa6550c1828294aaca9b64eb7517f1e729f (patch) | |
tree | 75452cd1d3c7b696db9dc7c9ced3019c053ed642 /CMakeLists.txt | |
parent | initial import (diff) | |
download | fbsplash-0b99cfa6550c1828294aaca9b64eb7517f1e729f.tar.gz fbsplash-0b99cfa6550c1828294aaca9b64eb7517f1e729f.tar.xz fbsplash-0b99cfa6550c1828294aaca9b64eb7517f1e729f.zip |
CMakeLists, main class and build/run scripts
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..6ee8d65 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,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}) |