-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
53 lines (42 loc) · 1.22 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
project(pspin)
cmake_minimum_required(VERSION 2.6)
set(CMAKE_BUILD_TYPE Release)
set(PACKAGE "pspin")
set(PRODUCT "pspin")
set(VERSION "0.1")
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
include(TargetDistclean)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wall -Wno-unused -DDEBUG -g")
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -UDEBUG -O3")
find_package(MPI REQUIRED)
find_package(Dia REQUIRED)
find_package(Inkscape REQUIRED)
find_package(Plotutils REQUIRED)
find_package(LATEX REQUIRED)
include(UseLATEX)
find_package(Gnuplot REQUIRED)
include(UseGnuplot)
add_subdirectory(src/pspin)
add_subdirectory(graphics)
add_subdirectory(data/plots)
add_subdirectory(articles)
add_subdirectory(thesis)
find_package(Ctags)
if(CTAGS_FOUND AND CTAGS_FLAVOR MATCHES Exuberant)
set(TAGS_DIR ${CMAKE_SOURCE_DIR})
add_custom_target(ctags
${CTAGS_EXECUTABLE} -R src
WORKING_DIRECTORY ${TAGS_DIR}
COMMENT "Generating tags..."
)
add_custom_target(etags
${CTAGS_EXECUTABLE} -eR src
WORKING_DIRECTORY ${TAGS_DIR}
COMMENT "Generating Emacs tags..."
)
endif()
enable_distclean()
generate_distclean_target()
include(FeatureSummary)
print_enabled_features()