Skip to content

Instantly share code, notes, and snippets.

@uyjulian
Created March 28, 2025 13:39
Show Gist options
  • Save uyjulian/fac67fad032782b749d887c025426d02 to your computer and use it in GitHub Desktop.
Save uyjulian/fac67fad032782b749d887c025426d02 to your computer and use it in GitHub Desktop.
cmake_minimum_required(VERSION 3.0)
project(csvParser)
list(APPEND SOURCES
Main.cpp
Krkr2DrawDeviceWrapper.cpp
BasicDrawDevice.cpp
)
list(APPEND INCFLAGS
-Isimplebinder
-Idrawdevicebase
-Isrc
)
list(APPEND LDLIBS
-lwinmm
-lgdi32
)
list(APPEND CFLAGS
-DABCDE
)
if((${CMAKE_SYSTEM_PROCESSOR} STREQUAL "i686") OR (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "amd64"))
list(APPEND CFLAGS
-DWEBP_HAVE_SSE2
-DWEBP_HAVE_SSE41
)
list(APPEND SOURCES
${WEBP_SSE2_SOURCES}
${WEBP_SSE41_SOURCES}
)
set_source_files_properties(${WEBP_SSE2_SOURCES} PROPERTIES COMPILE_FLAGS -msse2)
set_source_files_properties(${WEBP_SSE41_SOURCES} PROPERTIES COMPILE_FLAGS -msse4.1)
endif()
if((${CMAKE_SYSTEM_PROCESSOR} STREQUAL "arm") OR (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "arm64"))
list(APPEND SOURCES
${WEBP_NEON_SOURCES}
)
endif()
if((NOT DEFINED RC_DESC) OR (NOT RC_DESC) OR (RC_DESC STREQUAL ""))
set(RC_DESC "CSV Parser for TVP(KIRIKIRI) (2/Z)")
endif()
if((NOT DEFINED RC_PRODUCTNAME) OR (NOT RC_PRODUCTNAME) OR (RC_PRODUCTNAME STREQUAL ""))
set(RC_PRODUCTNAME "CSV Parser for TVP(KIRIKIRI) (2/Z)")
endif()
if((NOT DEFINED RC_LEGALCOPYRIGHT) OR (NOT RC_LEGALCOPYRIGHT) OR (RC_LEGALCOPYRIGHT STREQUAL ""))
set(RC_LEGALCOPYRIGHT "Copyright (C) 2005-2008 Go Watanabe; Copyright (C) 2008-2009 W.Dee; Copyright (C) 2011-2016 miahmie; Copyright (C) 2019-2020 Julian Uy; See details of license at license.txt, or the source code location.")
endif()
set(USE_TVPSND 1)
include(${CMAKE_CURRENT_SOURCE_DIR}/external/ncbind/Rules.lib.cmake)
set(NCBIND_BASE ${CMAKE_CURRENT_SOURCE_DIR}/../external/ncbind/)
include(${NCBIND_BASE}/external/ncbind/Rules.lib.cmake)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment