if (WIN32)
set (os os_win32.cpp)
- set (glws glws_wgl.cpp)
+ set (glws_os glws_wgl.cpp)
else (WIN32)
set (os os_posix.cpp)
- set (glws glws_glx.cpp)
+ set (glws_os glws_glx.cpp)
endif (WIN32)
-add_library (common
+add_library (common STATIC
common/trace_file.cpp
common/trace_snappyfile.cpp
common/trace_model.cpp
set_target_properties (common PROPERTIES
# Ensure it can be statically linked in shared libraries
- COMPILE_FLAGS "${CMAKE_SHARED_LIBRARY_C_FLAGS}"
+ COMPILE_FLAGS "${CMAKE_SHARED_LIBRARY_CXX_FLAGS}"
)
link_libraries (common)
add_custom_command (
OUTPUT glretrace_gl.cpp
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/glretrace.py > ${CMAKE_CURRENT_BINARY_DIR}/glretrace_gl.cpp
- DEPENDS glretrace.py retrace.py codegen.py specs/glapi.py specs/gltypes.py specs/stdapi.py
+ DEPENDS glretrace.py retrace.py specs/glapi.py specs/gltypes.py specs/stdapi.py
)
add_custom_command (
glstate.cpp
glstate_params.cpp
retrace.cpp
- ${glws}
+ glws.cpp
+ ${glws_os}
${CMAKE_CURRENT_BINARY_DIR}/glproc.hpp
)