21 lines
440 B
CMake
21 lines
440 B
CMake
PROJECT(liblcms2 C)
|
|
#
|
|
INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}/include")
|
|
#
|
|
FILE(GLOB SRCS src/*.c)
|
|
FILE(GLOB HDRS include/*.h)
|
|
#
|
|
SET(LIBTARGET "lcms2")
|
|
#
|
|
ADD_LIBRARY(${LIBTARGET} STATIC ${SRCS} ${HDRS})
|
|
#
|
|
IF(MSVC)
|
|
SET_TARGET_PROPERTIES(${LIBTARGET} PROPERTIES PREFIX "lib")
|
|
ENDIF(MSVC)
|
|
#
|
|
SET_TARGET_PROPERTIES(${LIBTARGET}
|
|
PROPERTIES
|
|
OUTPUT_NAME "${LIBTARGET}"
|
|
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/thirdparty/lib)
|
|
#
|