This adds solution folders that properly group gtest/glslang/hlsl. This also marks gtest options as advanced so they don't show up in cmake-gui by default.
18 lines
480 B
CMake
18 lines
480 B
CMake
set(SOURCES ossource.cpp ../osinclude.h)
|
|
|
|
add_library(OSDependent STATIC ${SOURCES})
|
|
set_property(TARGET OSDependent PROPERTY FOLDER glslang)
|
|
|
|
# MinGW GCC complains about function pointer casts to void*.
|
|
# Turn that off with -fpermissive.
|
|
if(${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
|
|
target_compile_options(OSDependent PRIVATE -fpermissive)
|
|
endif()
|
|
|
|
if(WIN32)
|
|
source_group("Source" FILES ${SOURCES})
|
|
endif(WIN32)
|
|
|
|
install(TARGETS OSDependent
|
|
ARCHIVE DESTINATION lib)
|