-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
60 lines (46 loc) · 2.05 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
cmake_minimum_required(VERSION 2.6)
project(egg C CXX)
if (NOT CMAKE_BUILD_TYPE)
message(STATUS "No build type selected, default to Release (-DCMAKE_BUILD_TYPE=...)")
set(CMAKE_BUILD_TYPE "Release")
endif()
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake")
find_package(vif)
set(EGG_SHARE_DIR ${CMAKE_INSTALL_PREFIX}/share/egg)
install(FILES
share/ir_lib_ce01.fits share/ir_lib_cs17.fits
share/mass_func_candels.fits share/opt_lib_fast.fits share/opt_lib_fast_noigm.fits
DESTINATION ${EGG_SHARE_DIR} COMPONENT data)
install(DIRECTORY share/filter-db
DESTINATION ${EGG_SHARE_DIR} COMPONENT data)
install(DIRECTORY share/skymaker-templates
DESTINATION ${EGG_SHARE_DIR} COMPONENT data)
install(DIRECTORY share/psfs
DESTINATION ${EGG_SHARE_DIR} COMPONENT data)
add_definitions(-DEGG_SHARE_DIR="${EGG_SHARE_DIR}")
add_definitions(-DFILTER_DB_DIR="${EGG_SHARE_DIR}/filter-db")
include_directories(${VIF_INCLUDE_DIRS})
message(STATUS ${VIF_INCLUDE_DIRS})
add_executable(egg-gencat src/egg-gencat.cpp)
target_link_libraries(egg-gencat ${VIF_LIBRARIES})
install(TARGETS egg-gencat DESTINATION bin)
if (NOT NO_GENMAP)
add_executable(egg-genmap src/egg-genmap.cpp)
target_link_libraries(egg-genmap ${VIF_LIBRARIES})
install(TARGETS egg-genmap DESTINATION bin)
add_executable(egg-gennoise src/egg-gennoise.cpp)
target_link_libraries(egg-gennoise ${VIF_LIBRARIES})
install(TARGETS egg-gennoise DESTINATION bin)
endif()
add_executable(egg-buildmf src/egg-buildmf.cpp)
target_link_libraries(egg-buildmf ${VIF_LIBRARIES})
install(TARGETS egg-buildmf DESTINATION bin)
add_executable(egg-2skymaker src/egg-2skymaker.cpp)
target_link_libraries(egg-2skymaker ${VIF_LIBRARIES})
install(TARGETS egg-2skymaker DESTINATION bin)
add_executable(egg-postskymaker src/egg-postskymaker.cpp)
target_link_libraries(egg-postskymaker ${VIF_LIBRARIES})
install(TARGETS egg-postskymaker DESTINATION bin)
add_executable(egg-getsed src/egg-getsed.cpp)
target_link_libraries(egg-getsed ${VIF_LIBRARIES})
install(TARGETS egg-getsed DESTINATION bin)