kabufuda/CMakeLists.txt

27 lines
940 B
CMake
Raw Normal View History

2017-11-13 18:53:04 -10:00
cmake_minimum_required(VERSION 3.10 FATAL_ERROR) # because of c++17
2016-03-26 11:34:03 -07:00
project(kabufuda)
2017-11-12 20:18:30 -10:00
set(CMAKE_CXX_STANDARD 17)
2017-06-17 16:52:19 -10:00
set(CMAKE_CXX_STANDARD_REQUIRED ON)
2016-03-25 21:26:51 -07:00
include_directories(include)
set(KABUFUDA_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include CACHE PATH "kabufuda include path" FORCE)
2016-03-25 21:26:51 -07:00
2016-06-30 09:40:35 -10:00
unset(PLAT_SRCS)
if(WIN32)
list(APPEND PLAT_SRCS lib/kabufuda/winsupport.cpp include/kabufuda/winsupport.hpp)
endif()
2016-03-26 11:34:03 -07:00
add_library(kabufuda STATIC
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 09:40:35 -10:00
include/kabufuda/WideStringConvert.hpp lib/kabufuda/WideStringConvert.cpp
${PLAT_SRCS})
2016-03-25 21:26:51 -07:00
2016-06-30 02:53:13 -07:00
add_subdirectory(test)