36 lines
582 B
CMake
36 lines
582 B
CMake
|
|
||
|
project(Mustache)
|
||
|
|
||
|
set(MUSTACHE_INCLUDE_DIR ${CMAKE_CURRENT_LIST_DIR}/include CACHE STRING "Mustache include directory")
|
||
|
|
||
|
include_directories(include)
|
||
|
|
||
|
set(Mustache_VERSION 1.0.0)
|
||
|
set(Mustache_RELEASE 1)
|
||
|
|
||
|
configure_file(include/version.h.in include/version.h @ONLY)
|
||
|
|
||
|
file(
|
||
|
GLOB_RECURSE
|
||
|
lib_files
|
||
|
src/*
|
||
|
)
|
||
|
|
||
|
|
||
|
if(CMAKE_BUILD_TYPE EQUAL "Debug")
|
||
|
add_library(
|
||
|
mustache
|
||
|
SHARED
|
||
|
${lib_files}
|
||
|
)
|
||
|
else()
|
||
|
add_library(
|
||
|
mustache
|
||
|
STATIC
|
||
|
${lib_files}
|
||
|
)
|
||
|
endif()
|
||
|
|
||
|
|
||
|
link_directories(/lib/${CMAKE_BUILD_TYPE})
|