Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ project(openlase)
cmake_minimum_required(VERSION 2.8.9)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/Modules/")
SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")

if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(BITS 64)
Expand Down
12 changes: 12 additions & 0 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,37 @@ link_directories (${CMAKE_BINARY_DIR}/libol)

add_executable(circlescope circlescope.c)
target_link_libraries(circlescope ${JACK_LIBRARIES} m)
install(TARGETS circlescope RUNTIME DESTINATION bin)
set_target_properties(circlescope PROPERTIES OUTPUT_NAME "ol-circlescope")

add_executable(scope scope.c)
target_link_libraries(scope ${JACK_LIBRARIES} m)
install(TARGETS scope RUNTIME DESTINATION bin)
set_target_properties(scope PROPERTIES OUTPUT_NAME "ol-scope")

add_executable(simple simple.c)
target_link_libraries(simple ol)
install(TARGETS simple RUNTIME DESTINATION bin)
set_target_properties(simple PROPERTIES OUTPUT_NAME "ol-simple")

add_executable(pong pong.c)
target_link_libraries(pong ol)
install(TARGETS pong RUNTIME DESTINATION bin)
set_target_properties(pong PROPERTIES OUTPUT_NAME "ol-pong")

if(ALSA_FOUND)
add_executable(midiview midiview.c)
target_link_libraries(midiview ol ${ALSA_LIBRARIES})
install(TARGETS midiview RUNTIME DESTINATION bin)
set_target_properties(midiview PROPERTIES OUTPUT_NAME "ol-midiview")
else()
message(STATUS "Will NOT build midiview (ALSA missing)")
endif()

add_executable(harp harp.c)
target_link_libraries(harp ol)
install(TARGETS harp RUNTIME DESTINATION bin)
set_target_properties(harp PROPERTIES OUTPUT_NAME "ol-harp")

#add_subdirectory(27c3_slides)

Expand Down
2 changes: 2 additions & 0 deletions output/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ if(Qt5Widgets_FOUND)

add_executable(output output.cpp output_settings.cpp ${output_UIS_H} ${output_MOCS})
target_link_libraries(output ${JACK_LIBRARIES} Qt5::Widgets)
install(TARGETS output RUNTIME DESTINATION bin)
set_target_properties(output PROPERTIES OUTPUT_NAME "ol-output")
else()
message(STATUS "Will NOT build output (Qt4 missing)")
endif()
8 changes: 8 additions & 0 deletions tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,18 @@ link_directories (${CMAKE_BINARY_DIR}/libol)

add_executable(playilda playilda.c)
target_link_libraries(playilda ${JACK_LIBRARIES})
install(TARGETS playilda RUNTIME DESTINATION bin)
set_target_properties(playilda PROPERTIES OUTPUT_NAME "ol-playilda")

add_executable(invert invert.c)
target_link_libraries(invert ${JACK_LIBRARIES})
install(TARGETS invert RUNTIME DESTINATION bin)
set_target_properties(invert PROPERTIES OUTPUT_NAME "ol-invert")

add_executable(cal cal.c)
target_link_libraries(cal ${JACK_LIBRARIES} m)
install(TARGETS cal RUNTIME DESTINATION bin)
set_target_properties(cal PROPERTIES OUTPUT_NAME "ol-cal")

#if(FFMPEG_FOUND AND BUILD_TRACER)
# include_directories(${FFMPEG_INCLUDE_DIR})
Expand All @@ -40,6 +46,8 @@ if(OPENGL_FOUND AND GLUT_FOUND)
add_executable(simulator simulator.c)
include_directories(${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIRS})
target_link_libraries(simulator m ${OPENGL_LIBRARIES} ${GLUT_LIBRARY} ${JACK_LIBRARIES})
install(TARGETS simulator RUNTIME DESTINATION bin)
set_target_properties(simulator PROPERTIES OUTPUT_NAME "ol-simulator")
else()
message(STATUS "Will NOT build simulator (OpenGL or GLUT missing)")
endif()
Expand Down
2 changes: 2 additions & 0 deletions tools/qplayvid/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ if(Qt5Widgets_FOUND AND FFMPEG_FOUND AND SWSCALE_FOUND AND BUILD_TRACER)

add_executable(qplayvid qplayvid.c qplayvid_gui.cpp ${qplayvid_MOCS})
target_link_libraries(qplayvid ol ${FFMPEG_LIBRARIES} ${SWSCALE_LIBRARIES} Qt5::Widgets avresample)
install(TARGETS qplayvid RUNTIME DESTINATION bin)
set_target_properties(qplayvid PROPERTIES OUTPUT_NAME "ol-qplayvid")
else()
message(STATUS "Will NOT build qplayvid (Qt5 or FFmpeg or tracer missing)")
endif()