mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-03-09 17:05:14 +00:00
Refactor Windows defines with generator expression
This commit is contained in:
committed by
Kai Blaschke
parent
8b67eac528
commit
91bc04d780
@ -1,19 +1,15 @@
|
||||
add_compile_definitions(
|
||||
DATADIR_PATH="${PROJECTM_DATADIR_PATH}"
|
||||
$<IF:$<PLATFORM_ID:Darwin>,GL_SILENCE_DEPRECATION,>
|
||||
$<IF:$<PLATFORM_ID:Windows>,NOMINMAX,>
|
||||
$<IF:$<PLATFORM_ID:Windows>,WIN32_LEAN_AND_MEAN,>
|
||||
$<IF:$<PLATFORM_ID:Windows>,STBI_NO_DDS,>
|
||||
)
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||
# dirent.h support
|
||||
set(MSVC_EXTRA_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/msvc")
|
||||
include_directories("${MSVC_EXTRA_INCLUDE_DIR}")
|
||||
|
||||
# Additional preprocessor definitions for Windows builds
|
||||
add_compile_definitions(
|
||||
NOMINMAX
|
||||
WIN32_LEAN_AND_MEAN
|
||||
STBI_NO_DDS
|
||||
)
|
||||
endif()
|
||||
|
||||
# List of targets used in export().
|
||||
|
||||
Reference in New Issue
Block a user