Sha256: 9d6fc6da1262cdb0df5fa88e28c78987c2ecab26eb8cfa4dd5c4d0f38dd115ef

Contents?: true

Size: 1.1 KB

Versions: 17

Compression:

Stored size: 1.1 KB

Contents

cmake_minimum_required(VERSION 3.0)
project(pixo)

if (APPLE)
  set(CMAKE_FIND_FRAMEWORK LAST)
  set(CMAKE_FIND_APPBUNDLE LAST)
endif()

include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/libpixgem/include )
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/pixo EXCLUDE_FROM_ALL)
include_directories(${PIXLIB_INCLUDE})

foreach(inc ${PIXLIB_INCLUDE})
  message(STATUS ${inc})
endforeach()

find_package(Ruby REQUIRED)
include_directories(BEFORE ${RUBY_INCLUDE_DIRS})


set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -fPIC -fpermissive")

add_library(pixgem SHARED
  libpixgem/src/gem.cpp
  libpixgem/src/holder.cpp
  libpixgem/src/application.cpp
  libpixgem/src/pattern.cpp
  libpixgem/src/fade_candy.cpp
  libpixgem/src/camera.cpp
  )


if (APPLE)
  set_target_properties(pixgem
    PROPERTIES
    SUFFIX ".bundle"
    LINK_FLAGS "-flat_namespace" )
endif()


target_link_libraries(pixgem glfw libglew_static pthread  pixlib ${RUBY_LIBRARY})

# Ruby gems require a install target.
install(TARGETS pixgem
            RUNTIME DESTINATION lib/
            ARCHIVE DESTINATION lib/
            LIBRARY DESTINATION lib/
        )

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
pixo-0.4.5 ext/CMakeLists.txt
pixo-0.4.4 ext/CMakeLists.txt
pixo-0.4.3 ext/CMakeLists.txt
pixo-0.4.2 ext/CMakeLists.txt
pixo-0.4.1 ext/CMakeLists.txt
pixo-0.4.0 ext/CMakeLists.txt
pixo-0.3.2 ext/CMakeLists.txt
pixo-0.3.1 ext/CMakeLists.txt
pixo-0.3.0 ext/CMakeLists.txt
pixo-0.2.6 ext/CMakeLists.txt
pixo-0.2.5 ext/CMakeLists.txt
pixo-0.2.4 ext/CMakeLists.txt
pixo-0.2.3 ext/CMakeLists.txt
pixo-0.2.2 ext/CMakeLists.txt
pixo-0.2.1 ext/CMakeLists.txt
pixo-0.2.0 ext/CMakeLists.txt
pixo-0.1.4 ext/CMakeLists.txt