Blame thirdparty/lzo/driver/CMakeLists.txt
|
kusano |
7d535a |
project(lzotools)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if (WIN32)
|
|
kusano |
7d535a |
# use pre-built 2.03
|
|
kusano |
7d535a |
get_filename_component(LZO_PATH ${SDKROOT}/lzo/2.03 ABSOLUTE)
|
|
kusano |
7d535a |
link_directories(${LZO_PATH}/LZO_lib/)
|
|
kusano |
7d535a |
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
|
|
kusano |
7d535a |
set(PREFIX _64)
|
|
kusano |
7d535a |
endif (CMAKE_SIZEOF_VOID_P EQUAL 8)
|
|
kusano |
7d535a |
else ()
|
|
kusano |
7d535a |
get_filename_component(LZO_PATH ${SDKROOT}/lzo/lzo-2.09 ABSOLUTE)
|
|
kusano |
7d535a |
link_directories(${LZO_PATH}/src/.libs/)
|
|
kusano |
7d535a |
endif ()
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
include_directories(${LZO_PATH} ${LZO_PATH}/include)
|
|
kusano |
7d535a |
add_definitions(-DLZO_USE_ASM)
|
|
kusano |
7d535a |
add_executable(lzocompress lzocompress.c)
|
|
kusano |
7d535a |
target_link_libraries(lzocompress lzo2${PREFIX})
|
|
kusano |
7d535a |
add_executable(lzodecompress lzodecompress.c)
|
|
kusano |
7d535a |
target_link_libraries(lzodecompress lzo2${PREFIX})
|