]> git.treefish.org Git - phys/latlib.git/blob - CMakeLists.txt
0521c1fa7e7d73326bac7db15540ac0cb8537a3d
[phys/latlib.git] / CMakeLists.txt
1 project(latlib)
2
3 #PROFILING
4 #set(CMAKE_CXX_FLAGS -pg)
5 #set(CMAKE_EXE_LINKER_FLAGS -pg)
6 #set(CMAKE_SHARED_LINKER_FLAGS -pg)
7
8 cmake_minimum_required(VERSION 2.8)
9
10 find_package(Boost 1.49 COMPONENTS filesystem iostreams REQUIRED)
11 include_directories(${Boost_INCLUDE_DIRS}) 
12
13 add_library(lat_configcache configcache.cpp)
14 target_link_libraries(lat_configcache ${Boost_LIBRARIES} lat_writeout)
15
16 add_library(lat_hypercache hypercache.cpp)
17 target_link_libraries(lat_hypercache lat_configcache lat_writeout)
18
19 add_library(lat_neigh neigh.cpp)
20
21 add_library(lat_writeout writeout.cpp)
22 target_link_libraries(lat_writeout ${Boost_LIBRARIES})
23
24 add_library(lat_paraq paraq.cpp)
25
26 add_library(lat_progress progress.cpp)
27
28 find_package(OpenGL)
29 find_package(GLUT)
30 if (OPENGL_FOUND AND GLUT_FOUND)
31     include_directories( ${OPENGL_INCLUDE_DIRS}  ${GLUT_INCLUDE_DIRS} ../ )
32     add_library(lat_culooks culooks.cpp culooks_cube.cpp culooks_drawing.cpp)
33     target_link_libraries(lat_culooks ${OPENGL_LIBRARIES} ${GLUT_LIBRARY} pthread)
34     add_executable(culooks_test culooks_test.cpp)
35     target_link_libraries(culooks_test lat_culooks)
36 endif ()
37
38 add_executable(neigh_test neigh_test.cpp)
39 target_link_libraries(neigh_test lat_neigh)
40
41 add_subdirectory(o815)