2016-03-26 04:26:51 +00:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
2016-03-26 18:34:03 +00:00
|
|
|
project(kabufuda)
|
2016-06-27 04:28:48 +00:00
|
|
|
|
|
|
|
if(NOT TARGET urde)
|
|
|
|
if(NOT MSVC)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2016-03-26 04:26:51 +00:00
|
|
|
include_directories(include)
|
2016-06-27 04:28:48 +00:00
|
|
|
set(KABUFUDA_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include CACHE PATH "kabufuda include path" FORCE)
|
2016-03-26 04:26:51 +00:00
|
|
|
|
2016-03-26 18:34:03 +00:00
|
|
|
add_library(kabufuda STATIC
|
2016-06-27 04:28:48 +00:00
|
|
|
include/kabufuda/Card.hpp lib/Card.cpp
|
|
|
|
include/kabufuda/Util.hpp lib/Util.cpp
|
|
|
|
include/kabufuda/SRAM.hpp lib/SRAM.cpp
|
|
|
|
include/kabufuda/WideStringConvert.hpp lib/WideStringConvert.cpp)
|
2016-03-26 04:26:51 +00:00
|
|
|
|
2016-06-27 04:28:48 +00:00
|
|
|
if (NOT TARGET urde)
|
|
|
|
add_subdirectory(test)
|
|
|
|
endif()
|