2016-05-02 16:03:16 +02:00
|
|
|
project(liblcms2 C)
|
2011-03-20 23:45:24 +01:00
|
|
|
#
|
2016-05-02 16:03:16 +02:00
|
|
|
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include")
|
2011-03-20 23:45:24 +01:00
|
|
|
#
|
2016-05-02 16:03:16 +02:00
|
|
|
file(GLOB SRCS src/*.c)
|
|
|
|
file(GLOB HDRS include/*.h)
|
2011-03-20 23:45:24 +01:00
|
|
|
#
|
2016-05-02 16:03:16 +02:00
|
|
|
set(LIBTARGET "lcms2")
|
2011-03-20 23:45:24 +01:00
|
|
|
#
|
2016-05-02 16:03:16 +02:00
|
|
|
add_library(${LIBTARGET} STATIC ${SRCS} ${HDRS})
|
2011-03-20 23:45:24 +01:00
|
|
|
#
|
2016-05-02 16:03:16 +02:00
|
|
|
if(MSVC)
|
|
|
|
set_target_properties(${LIBTARGET} PROPERTIES PREFIX "lib")
|
|
|
|
endif(MSVC)
|
2011-03-20 23:45:24 +01:00
|
|
|
#
|
2016-05-02 16:03:16 +02:00
|
|
|
set_target_properties(${LIBTARGET}
|
2011-03-20 23:45:24 +01:00
|
|
|
PROPERTIES
|
|
|
|
OUTPUT_NAME "${LIBTARGET}"
|
|
|
|
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/thirdparty/lib)
|
|
|
|
#
|