Skip to content

Instantly share code, notes, and snippets.

@returnwellbeing
Last active December 16, 2018 09:57
Show Gist options
  • Save returnwellbeing/30484f4759959fb959074d57cdb0d9c1 to your computer and use it in GitHub Desktop.
Save returnwellbeing/30484f4759959fb959074d57cdb0d9c1 to your computer and use it in GitHub Desktop.
CMakeLists.txt 예제
cmake_minimum_required(VERSION 3.0)
project(codeforce_practice)

# Set the output folder where your program will be created
set(CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/bin)
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)

# The following folder will be included
include_directories("${PROJECT_SOURCE_DIR}")
add_executable(9938.out ${PROJECT_SOURCE_DIR}/9938.cpp)

# c-family semantic completion
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

# debug symbols will be included
set(CMAKE_BUILD_TYPE Debug)

#cmake . -Bbuild && cmake --build build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment