CMakeLists.txt 644 Bytes
cmake_minimum_required(VERSION 2.8)

project(Heisenwave)
set(APP Heisenwave)

set(OF_ROOT "$ENV{OF_ROOT}")
if("${OF_ROOT}" STREQUAL "")
  message(FATAL_ERROR "You have to set OF_ROOT")
endif()

list(APPEND CMAKE_MODULE_PATH ${OF_ROOT})

include(openFrameworks)

ofxaddon(ofxGui)

set(SOURCES
    src/main.cpp
    src/ofApp.cpp
    src/inoUtils.cpp
    src/inoControl.cpp
    src/inoChannel.cpp
)

add_executable(
    ${APP}
    ${SOURCES}
    ${OFXADDONS_SOURCES}
)

target_link_libraries(
    ${APP}
    ${OPENFRAMEWORKS_LIBRARIES}
)

if(UNIX AND NOT APPLE)
target_link_libraries(
    ${APP}
    tiff
    IlmThread
)
endif()


cotire(${APP})