17a0a8a195
Inspired from https://github.com/InsightSoftwareConsortium/ITK/blob/master/Utilities/Maintenance/HowToCreateTheCMakeCaseConversion.txt This needs vim 7.3 and fails with vim 7.4 This also fixes a number of : - missing empty line at end of files - useless space at end of lines
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)
|
|
#
|