CLion
CLion is a cross-platform IDE by JetBrains that support builds based on CMake file in Linux, Mac OSx, Windows.
How to create an out-of-tree source directory?
How to build an out-of-tree cmake file? (using CLion 1.2.1)
- source directory contains the source tree
- workspaces/clion contains the source project file
. ├── source │ └── main.cpp ├── test.txt └── workspaces └── clion └── CMakeLists.txt
Content of the CMakeLists.txt:
cmake_minimum_required(VERSION 3.3) project(Viodeo4LinuxV1) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") set(SOURCE_DIR ${PROJECT_SOURCE_DIR}./../../source) set(SOURCE_FILES ${SOURCE_DIR}/main.cpp) add_executable(Viodeo4LinuxV1 ${SOURCE_FILES})