Friday, July 21, 2017

VSCode + java

task.json

{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"taskName": "build",
"command": "javac",
"args": [
"-g",
"${file}"
]
}
]
}

Saturday, July 8, 2017

CMake + SDL2

cmake_minimum_required(VERSION 3.8)
project(SDL_test)

set(CMAKE_CXX_STANDARD 11)

include_directories(C:/SDL2mingw64/include)
link_directories(C:/SDL2mingw64/lib)

set(SOURCE_FILES main.cpp)
add_executable(SDL_test ${SOURCE_FILES})

target_link_libraries(SDL_test mingw32 SDL2main SDL2)