You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
810 B
CMake
45 lines
810 B
CMake
PROJECT(nvcore)
|
|
|
|
SET(CORE_SRCS
|
|
nvcore.h
|
|
Algorithms.h
|
|
Containers.h
|
|
Debug.h Debug.cpp
|
|
DefsGnucDarwin.h
|
|
DefsGnucLinux.h
|
|
DefsGnucWin32.h
|
|
DefsVcWin32.h
|
|
FileSystem.h FileSystem.cpp
|
|
Library.h Library.cpp
|
|
Memory.h Memory.cpp
|
|
Ptr.h
|
|
RefCounted.h RefCounted.cpp
|
|
StrLib.h StrLib.cpp
|
|
Stream.h
|
|
StdStream.h
|
|
TextReader.h TextReader.cpp
|
|
TextWriter.h TextWriter.cpp
|
|
Timer.h)
|
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
# targets
|
|
ADD_DEFINITIONS(-DNVCORE_EXPORTS)
|
|
|
|
IF(UNIX)
|
|
SET(LIBS ${LIBS} ${CMAKE_DL_LIBS})
|
|
ENDIF(UNIX)
|
|
|
|
IF(NVCORE_SHARED)
|
|
ADD_LIBRARY(nvcore SHARED ${CORE_SRCS})
|
|
ELSE(NVCORE_SHARED)
|
|
ADD_LIBRARY(nvcore ${CORE_SRCS})
|
|
ENDIF(NVCORE_SHARED)
|
|
|
|
TARGET_LINK_LIBRARIES(nvcore ${LIBS})
|
|
|
|
INSTALL(TARGETS nvcore
|
|
RUNTIME DESTINATION bin
|
|
LIBRARY DESTINATION lib
|
|
ARCHIVE DESTINATION lib/static)
|