aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorPhilip Muzzall <[email protected]>2019-06-30 22:01:04 -0700
committerkcat <[email protected]>2019-06-30 22:01:04 -0700
commit7affe3d78d5473027104cb3b3008d5afb7ac47ea (patch)
tree3682d7b0ba66dec9f02ffac3f5362d7d2a2327d2 /CMakeLists.txt
parente9bf7e4b15460139c0474a97b9619c9e9fb3177f (diff)
Added rc scripts for dll (#306)
* Added rc scripts for dll * Reverted numbering scheme in CMakeLists
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 13a714ac..a2150846 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -109,6 +109,7 @@ SET(LIB_MAJOR_VERSION "1")
SET(LIB_MINOR_VERSION "19")
SET(LIB_REVISION "1")
SET(LIB_VERSION "${LIB_MAJOR_VERSION}.${LIB_MINOR_VERSION}.${LIB_REVISION}")
+SET(LIB_VERSION_NUM ${LIB_MAJOR_VERSION},${LIB_MINOR_VERSION},${LIB_REVISION},0)
SET(EXPORT_DECL "")
@@ -1131,6 +1132,7 @@ IF(GIT_FOUND AND EXISTS "${OpenAL_SOURCE_DIR}/.git")
ADD_CUSTOM_TARGET(build_version
${CMAKE_COMMAND} -D GIT_EXECUTABLE=${GIT_EXECUTABLE}
-D LIB_VERSION=${LIB_VERSION}
+ -D LIB_VERSION_NUM=${LIB_VERSION_NUM}
-D SRC=${OpenAL_SOURCE_DIR}/version.h.in
-D DST=${OpenAL_BINARY_DIR}/version.h
-P ${OpenAL_SOURCE_DIR}/version.cmake
@@ -1283,8 +1285,10 @@ ELSE()
ENDIF()
ENDIF()
+ SET(RC_CONFIG resources/openal32.rc)
IF(WIN32 AND ALSOFT_BUILD_ROUTER)
ADD_LIBRARY(OpenAL SHARED
+ resources/router.rc
router/router.cpp
router/router.h
router/alc.cpp
@@ -1312,9 +1316,10 @@ ELSE()
SET(LIBNAME "soft_oal")
SET(IMPL_TARGET soft_oal)
+ SET(RC_CONFIG resources/soft_oal.rc)
ENDIF()
- ADD_LIBRARY(${IMPL_TARGET} SHARED ${COMMON_OBJS} ${OPENAL_OBJS} ${ALC_OBJS})
+ ADD_LIBRARY(${IMPL_TARGET} SHARED ${COMMON_OBJS} ${OPENAL_OBJS} ${ALC_OBJS} ${RC_CONFIG})
IF(WIN32)
SET_TARGET_PROPERTIES(${IMPL_TARGET} PROPERTIES PREFIX "")
ENDIF()