summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
blob: f188f669f6f46eb5741096933a6fa8fbc952eaae (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
cmake_minimum_required(VERSION 2.8.12)

# project name
project(slxbrowser)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -Wall -Wextra -Werror -Wno-multichar -std=c++11")
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -Wno-multichar -std=c++11")

set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)

file(GLOB_RECURSE SLXBROWSER_SOURCES src/*.cpp)
#file(GLOB_RECURSE SLXBROWSER_MOC_HEADERS src/*.h)
#file(GLOB_RECURSE SLXBROWSER_UIS src/ui/*.ui)
#file(GLOB_RECURSE SLXBROWSER_RESOURCES src/*.qrc)

#include_directories(${CMAKE_CURRENT_BINARY_DIR} ./)

#
# Qt4
#
find_package(Qt5WebKitWidgets)

#if(Qt5_FOUND)
#  message(STATUS "Qt5 found")
#else(Qt5_FOUND)
#  message(FATAL_ERROR "Qt5 not found")
#endif(Qt5_FOUND)

#set(QT_USE_QTXML TRUE)
#set(QT_USE_QTSVG TRUE)
#set(QT_USE_QTNETWORK TRUE)
#set(QT_USE_QTWEBKIT TRUE)

#include(${QT_USE_FILE})

#QT4_ADD_RESOURCES(SLXBROWSER_RC_SOURCES ${SLXBROWSER_RESOURCES})
#QT5_WRAP_UI(SLXBROWSER_UI_HEADERS ${SLXBROWSER_UIS})
#QT5_WRAP_CPP(SLXBROWSER_MOC_SOURCES ${SLXBROWSER_MOC_HEADERS})

#
# build slxbrowser
#
add_executable(slxbrowser
  ${SLXBROWSER_SOURCES}
#  ${SLXBROWSER_MOC_SOURCES}
#  ${SLXBROWSER_UI_HEADERS}
# ${SLXBROWSER_RC_SOURCES}
# ${SLXBROWSER_QMS}
)

target_link_libraries(slxbrowser
  Qt5::WebKitWidgets
)

install(TARGETS slxbrowser RUNTIME DESTINATION bin)
install(DIRECTORY themes DESTINATION /usr/local/share/slxbrowser)