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
|
||||
Atomic.h
|
||||
Event.h Event.cpp
|
||||
@ -12,17 +12,17 @@ SET(THREADS_SRCS
|
||||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
# targets
|
||||
ADD_DEFINITIONS(-DNVTHREADS_EXPORTS)
|
||||
ADD_DEFINITIONS(-DNVTHREAD_EXPORTS)
|
||||
|
||||
IF(NVTHREADS_SHARED)
|
||||
ADD_LIBRARY(nvthreads SHARED ${THREADS_SRCS})
|
||||
ELSE(NVTHREADS_SHARED)
|
||||
ADD_LIBRARY(nvthreads ${THREADS_SRCS})
|
||||
ENDIF(NVTHREADS_SHARED)
|
||||
IF(NVTHREAD_SHARED)
|
||||
ADD_LIBRARY(nvthread SHARED ${THREAD_SRCS})
|
||||
ELSE(NVTHREAD_SHARED)
|
||||
ADD_LIBRARY(nvthread ${THREAD_SRCS})
|
||||
ENDIF(NVTHREAD_SHARED)
|
||||
|
||||
TARGET_LINK_LIBRARIES(nvthreads ${LIBS} nvcore)
|
||||
TARGET_LINK_LIBRARIES(nvthread ${LIBS} nvcore)
|
||||
|
||||
INSTALL(TARGETS nvthreads
|
||||
INSTALL(TARGETS nvthread
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib/static)
|
||||
|
Loading…
Reference in New Issue
Block a user