This commit is contained in:
Qiwei Ye 2015-11-19 14:32:10 +09:00
Родитель ec0b01051c
Коммит 01044222ba
3 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -1,6 +1,7 @@
cmake_minimum_required(VERSION 3.1) cmake_minimum_required(VERSION 3.1)
PROJECT(MULTIVERSO) PROJECT(MULTIVERSO)
FIND_PACKAGE(Threads REQUIRED)
SET(THIRD_PARTY ${PROJECT_SOURCE_DIR}/third_party) SET(THIRD_PARTY ${PROJECT_SOURCE_DIR}/third_party)
SET(THIRD_PARTY_INC ${THIRD_PARTY}/include) SET(THIRD_PARTY_INC ${THIRD_PARTY}/include)

Просмотреть файл

@ -10,6 +10,6 @@ LINK_DIRECTORIES(${THIRD_PARTY_LIB})
ADD_LIBRARY(multiverso ${MULTIVERSO_SRC}) ADD_LIBRARY(multiverso ${MULTIVERSO_SRC})
TARGET_LINK_LIBRARIES(multiverso mpich mpl zmq) TARGET_LINK_LIBRARIES(multiverso mpich mpl zmq pthread)
SET_PROPERTY(TARGET multiverso PROPERTY CXX_STANDARD 11) SET_PROPERTY(TARGET multiverso PROPERTY CXX_STANDARD 11)

Просмотреть файл

@ -14,4 +14,4 @@ ADD_EXECUTABLE(multiverso.server ${MULTIVERSO_SERVER_SRC})
TARGET_LINK_LIBRARIES(multiverso.server mpich mpl zmq multiverso) TARGET_LINK_LIBRARIES(multiverso.server mpich mpl zmq multiverso)
SET_PROPERTY(TARGET multiverso.server PROPERTY CXX_STANDARD 11) SET_PROPERTY(TARGET multiverso.server PROPERTY CXX_STANDARD 11)