Browse Source

Added template for cMake Projects

master
Peter Kolski 9 years ago
parent
commit
ca2db7652d
  1. 45
      example-camera/CMakeLists.txt
  2. 45
      example/CMakeLists.txt

45
example-camera/CMakeLists.txt

@ -0,0 +1,45 @@
#THIS FILE SHOULD BE PUT INTO THE OF PROJECT FOLDER
# ========================================================
# ===================== CMake Settings ===================
# ========================================================
cmake_minimum_required( VERSION 3.3 )
project( openframeworks )
# ========================================================
# ===================== User Settings ====================
# ========================================================
# ---------------------- App name -----------------------
set( APP_NAME ofApp )
# ------------------------ OF Path -----------------------
# --- If outside the OF stucture, set an absolute OF path
set( OF_DIRECTORY_BY_USER "../../.." )
# --------------------- Source Files ---------------------
set( ${APP_NAME}_SOURCE_FILES
src/main.cpp
src/ofApp.cpp )
# ------------------------ AddOns -----------------------
set( OFX_ADDONS_ACTIVE
# ofxXmlSettings
# ofxOsc
# ofxGui
# ofxNetwork
# ofxVectorGraphics
# ofxThreadedImageLoader
# ofxAssimpModelLoader
# ofxKinect
# ofxOpenCv
# ofxSvg
# ofxEmscripten (untested)
)
# =========================================================================
# ============================== OpenFrameworks ===========================
# =========================================================================
include( ${OF_DIRECTORY_BY_USER}/addons/ofxCMake/modules/main.cmake )
# =========================================================================

45
example/CMakeLists.txt

@ -0,0 +1,45 @@
#THIS FILE SHOULD BE PUT INTO THE OF PROJECT FOLDER
# ========================================================
# ===================== CMake Settings ===================
# ========================================================
cmake_minimum_required( VERSION 3.3 )
project( openframeworks )
# ========================================================
# ===================== User Settings ====================
# ========================================================
# ---------------------- App name -----------------------
set( APP_NAME ofApp )
# ------------------------ OF Path -----------------------
# --- If outside the OF stucture, set an absolute OF path
set( OF_DIRECTORY_BY_USER "../../.." )
# --------------------- Source Files ---------------------
set( ${APP_NAME}_SOURCE_FILES
src/main.cpp
src/ofApp.cpp )
# ------------------------ AddOns -----------------------
set( OFX_ADDONS_ACTIVE
# ofxXmlSettings
# ofxOsc
# ofxGui
# ofxNetwork
# ofxVectorGraphics
# ofxThreadedImageLoader
# ofxAssimpModelLoader
# ofxKinect
# ofxOpenCv
# ofxSvg
# ofxEmscripten (untested)
)
# =========================================================================
# ============================== OpenFrameworks ===========================
# =========================================================================
include( ${OF_DIRECTORY_BY_USER}/addons/ofxCMake/modules/main.cmake )
# =========================================================================
Loading…
Cancel
Save