-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
34 lines (28 loc) · 907 Bytes
/
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
cmake_minimum_required(VERSION 2.6)
project(ppcg.exe)
macro(use_cxx11)
if (CMAKE_VERSION VERSION_LESS "3.1")
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set (CMAKE_CXX_FLAGS "--std=gnu++11 -fpermissive -O3 ${CMAKE_CXX_FLAGS}")
endif ()
else ()
set (CMAKE_CXX_STANDARD 11)
endif ()
endmacro(use_cxx11)
set(CMAKE_CXX_STANDARD 11)
use_cxx11()
set(SOURCE_FILES
UncollapsedSampler/igmm.cpp
UncollapsedSampler/Restaurant.cpp
UncollapsedSampler/Restaurant.h
UncollapsedSampler/Table.cpp
UncollapsedSampler/Table.h)
INCLUDE_DIRECTORIES(../GMMBase/)
LINK_DIRECTORIES(../GMMBase)
INCLUDE_DIRECTORIES(../FastMat/)
LINK_DIRECTORIES(../FastMat)
find_package (Threads)
add_executable(ppcg.exe ${SOURCE_FILES})
TARGET_LINK_LIBRARIES(ppcg.exe FastMat)
TARGET_LINK_LIBRARIES (ppcg.exe ${CMAKE_THREAD_LIBS_INIT})
TARGET_LINK_LIBRARIES(ppcg.exe GMMBase)