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
|
|
|
|
2016-06-30 09:53:13 +00:00
|
|
|
if(NOT TARGET hecl)
|
2016-06-27 04:28:48 +00:00
|
|
|
if(NOT MSVC)
|
2016-06-30 09:53:13 +00:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
|
2016-06-27 04:28:48 +00:00
|
|
|
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-06-30 19:40:35 +00:00
|
|
|
unset(PLAT_SRCS)
|
|
|
|
if(WIN32)
|
|
|
|
list(APPEND PLAT_SRCS lib/kabufuda/winsupport.cpp include/kabufuda/winsupport.hpp)
|
|
|
|
endif()
|
|
|
|
|
2016-03-26 18:34:03 +00:00
|
|
|
add_library(kabufuda STATIC
|
2016-06-28 18:53:37 +00:00
|
|
|
include/kabufuda/Constants.hpp
|
|
|
|
include/kabufuda/BlockAllocationTable.hpp lib/kabufuda/BlockAllocationTable.cpp
|
|
|
|
include/kabufuda/Card.hpp lib/kabufuda/Card.cpp
|
|
|
|
include/kabufuda/Directory.hpp lib/kabufuda/Directory.cpp
|
|
|
|
include/kabufuda/File.hpp lib/kabufuda/File.cpp
|
|
|
|
include/kabufuda/Util.hpp lib/kabufuda/Util.cpp
|
|
|
|
include/kabufuda/SRAM.hpp lib/kabufuda/SRAM.cpp
|
2016-06-30 19:40:35 +00:00
|
|
|
include/kabufuda/WideStringConvert.hpp lib/kabufuda/WideStringConvert.cpp
|
|
|
|
${PLAT_SRCS})
|
2016-03-26 04:26:51 +00:00
|
|
|
|
2016-06-30 09:53:13 +00:00
|
|
|
add_subdirectory(test)
|