-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
61 lines (48 loc) · 1.51 KB
/
CMakeLists.txt
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
60
61
cmake_minimum_required (VERSION 3.0)
project (kuickshow VERSION 0.2.1)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_BUILD_WITH_INSTALL_RPATH ON)
find_package(KDE1 REQUIRED)
find_package(X11 REQUIRED)
find_package(GIF REQUIRED)
find_package(JPEG REQUIRED)
include_directories (
${KDE1_INCLUDE_DIR}
src
)
include(CMakePackageConfigHelpers)
include(Qt1Macros)
include(KDE1Macros)
include(KDE1InstallDirs)
option(ENABLE_SANITIZERS "Enable runtime sanitizing (for development)")
if (ENABLE_SANITIZERS)
message("Enabling asan and ubsan")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=undefined")
endif()
if (CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-write-strings")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive -std=c++98 -Wno-write-strings")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
endif()
add_subdirectory(src)
install_icon(src/kuickshow.xpm)
install(FILES src/kuickshow.kdelnk DESTINATION ${KDE1_APPSDIR}/Graphics/)
install(FILES
pics/logo.gif
pics/eqx2.gif
DESTINATION ${KDE1_DATADIR}/kuickshow/pics/
)
install(FILES
etc/im_palette.pal
DESTINATION ${KDE1_DATADIR}/kuickshow/
)
install(FILES
#pics/toolbar/help.xpm # already in kdelibs
pics/toolbar/ksconfig.xpm
pics/toolbar/ksexit.xpm
pics/toolbar/ksslide.xpm
#pics/toolbar/reload.xpm # already in kdelibs
pics/toolbar/topic.xpm
DESTINATION ${KDE1_TOOLBARDIR}
)