# Put all executables into the same top level build directory, regardless of
# which subdirectory they are declared
-set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
+set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
##############################################################################
##############################################################################
# Common libraries / utilities
+include_directories (${CMAKE_CURRENT_SOURCE_DIR})
+
add_custom_command (
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/glproc.hpp
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/glproc.py > ${CMAKE_CURRENT_BINARY_DIR}/glproc.hpp
set (glws glws_glx.cpp)
endif (WIN32)
-add_library (trace trace_model.cpp trace_parser.cpp trace_writer.cpp trace_model_writer.cpp ${os})
+add_library (common
+ trace_model.cpp
+ trace_parser.cpp
+ trace_writer.cpp
+ trace_model_writer.cpp
+ image.cpp
+ image_bmp.cpp
+ image_pnm.cpp
+ image_png.cpp
+ ${os}
+)
add_executable (tracedump tracedump.cpp)
-target_link_libraries (tracedump trace)
+target_link_libraries (tracedump common)
install (TARGETS tracedump RUNTIME DESTINATION bin)
glsnapshot.cpp
trace_writer.cpp
image.cpp
+ image_png.cpp
os_posix.cpp
)
)
target_link_libraries (glretrace
- trace
+ common
)
if (WIN32)
##############################################################################
# Packaging
-install (FILES LICENSE README TODO DESTINATION doc)
+install (FILES LICENSE README.markdown TODO.markdown DESTINATION doc)
set (CPACK_PACKAGE_VERSION_MAJOR "1")
set (CPACK_PACKAGE_VERSION_MINOR "0")