build nvthread properly
This commit is contained in:
parent
9e7651e2d5
commit
e462e3ef58
@ -1,6 +1,6 @@
|
|||||||
PROJECT(nvthreads)
|
PROJECT(nvthread)
|
||||||
|
|
||||||
SET(THREADS_SRCS
|
SET(THREAD_SRCS
|
||||||
nvthread.h nvthread.cpp
|
nvthread.h nvthread.cpp
|
||||||
Atomic.h
|
Atomic.h
|
||||||
Event.h Event.cpp
|
Event.h Event.cpp
|
||||||
@ -12,17 +12,17 @@ SET(THREADS_SRCS
|
|||||||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
|
||||||
# targets
|
# targets
|
||||||
ADD_DEFINITIONS(-DNVTHREADS_EXPORTS)
|
ADD_DEFINITIONS(-DNVTHREAD_EXPORTS)
|
||||||
|
|
||||||
IF(NVTHREADS_SHARED)
|
IF(NVTHREAD_SHARED)
|
||||||
ADD_LIBRARY(nvthreads SHARED ${THREADS_SRCS})
|
ADD_LIBRARY(nvthread SHARED ${THREAD_SRCS})
|
||||||
ELSE(NVTHREADS_SHARED)
|
ELSE(NVTHREAD_SHARED)
|
||||||
ADD_LIBRARY(nvthreads ${THREADS_SRCS})
|
ADD_LIBRARY(nvthread ${THREAD_SRCS})
|
||||||
ENDIF(NVTHREADS_SHARED)
|
ENDIF(NVTHREAD_SHARED)
|
||||||
|
|
||||||
TARGET_LINK_LIBRARIES(nvthreads ${LIBS} nvcore)
|
TARGET_LINK_LIBRARIES(nvthread ${LIBS} nvcore)
|
||||||
|
|
||||||
INSTALL(TARGETS nvthreads
|
INSTALL(TARGETS nvthread
|
||||||
RUNTIME DESTINATION bin
|
RUNTIME DESTINATION bin
|
||||||
LIBRARY DESTINATION lib
|
LIBRARY DESTINATION lib
|
||||||
ARCHIVE DESTINATION lib/static)
|
ARCHIVE DESTINATION lib/static)
|
||||||
|
Loading…
Reference in New Issue
Block a user