Revision b212fba208df4f7184efa63b6c037d998ab18cd5 authored by Brad King on 02 March 2021, 13:45:37 UTC, committed by Kitware Robot on 02 March 2021, 13:45:59 UTC
fb4b2ed0d3 FindOpenGL: handle GLX without GLVND

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5861
2 parent s f957966 + fb4b2ed
Raw File
CMakeLists.txt
cmake_minimum_required(VERSION 3.10)
project(MocOnly)
include("../AutogenCoreTest.cmake")

add_executable(mocOnly
  main.cpp
  # Test different Q_OBJECT position styles
  StyleA.cpp
  StyleB.cpp
  # Test different moc_/.moc include positions
  IncA.cpp
  IncB.cpp
)
# XXX(xcode-per-cfg-src): Drop the NO_PER_CONFIG_SOURCES exclusion
# when the Xcode generator supports per-config sources.
if(NOT NO_PER_CONFIG_SOURCES)
  target_sources(mocOnly PRIVATE
    "$<$<CONFIG:Debug>:${CMAKE_CURRENT_SOURCE_DIR}/CfgDebug.cpp>"
    "$<$<NOT:$<CONFIG:Debug>>:${CMAKE_CURRENT_SOURCE_DIR}/CfgOther.cpp>"
    )
  target_compile_definitions(mocOnly PRIVATE
    "$<$<CONFIG:Debug>:HAVE_CFG_DEBUG>"
    "$<$<NOT:$<CONFIG:Debug>>:HAVE_CFG_OTHER>"
    )
endif()
set_property(TARGET mocOnly PROPERTY AUTOMOC ON)
target_link_libraries(mocOnly ${QT_LIBRARIES})
# Add compile definitions with unusual characters
target_compile_definitions(mocOnly PUBLIC "TOKEN=\"hello\;\"" )
back to top